lexica-api
v1.0.2
Published
API wrapper around Lexica.art for searching Stable Diffusion images.
Downloads
17
Readme
Lexica
API wrapper around Lexica for searching Stable Diffusion images.
Intro
This package is a simple Node.js wrapper around the Lexica API for searching Stable Diffusion images.
It uses got
and TypeScript.
Install
npm install --save lexica-api
# or
yarn add lexica-api
# or
pnpm add lexica-api
Usage
import { LexicaAPI } from 'lexica-api'
const lexica = new LexicaAPI()
// normal search
const results0 = await lexica.search('apples')
// reverse image search
const results1 = await lexica.reverseImageSearch(
'https://media.gettyimages.com/photos/crete-senesi-countryside-in-summer-tuscany-italy-picture-id1411845730'
)
Docs
See the auto-generated docs.
License
MIT © Travis Fischer
Support my open source work by following me on twitter