lexica-api

API wrapper around Lexica.art for searching Stable Diffusion images.

MIT License

Downloads
14
Stars
16
Committers
1

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