Skip to main content

The python package for api.qewertyy.me

Project description

Available Models

from lexica import Client

def main() -> dict:
    client = Client()
    response = client.getModels()
    return response

if __name__ == "__main__":
    print(main())

output

{
  "text": [
    {
      "id": 0,
      "name": "models/text-bison-001",
      "baseModel": "PaLM"
    }
  ],
  "chat": [
    {
      "id": 1,
      "name": "models/chat-bison-001",
      "baseModel": "PaLM"
    },
    {
      "id": 5,
      "name": "gpt-3.5-turbo",
      "baseModel": "GPT"
    }
  ],
  "image": [
    {
      "id": 2,
      "name": "MeinaMix",
      "baseModel": "SD"
    },
    {
      "id": 3,
      "name": "AnyLora",
      "baseModel": "SD"
    },
    {
      "id": 4,
      "name": "AnyThingV4",
      "baseModel": "SD"
    },
    {
      "id": 6,
      "name": "Bing",
      "baseModel": "Dall-E"
    },
    {
      "id": 7,
      "name": "DarkSushi",
      "baseModel": "SD"
    },
    {
      "id": 8,
      "name": "MeinaHentai",
      "baseModel": "SD"
    },
    {
      "id": 9,
      "name": "DarkSushiMix",
      "baseModel": "SD"
    }
  ]
}

palm

from lexica import Client

def main(prompt: str) -> dict:
    client = Client()
    response = client.palm(prompt)
    return response

if __name__ == "__main__":
    print(main("hello world"))

upscaling an image.

from lexica import Client

def main(image: bytes) -> bytes:
    client = Client()
    imageBytes = client.upscale(image)
    with open('upscaled.png', 'wb') as f:
        f.write(imageBytes)

if __name__ == "__main__":
    image = open('examples/images/image.png', 'rb').read()
    main(image)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lexica-api-1.3.5.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file lexica-api-1.3.5.tar.gz.

File metadata

  • Download URL: lexica-api-1.3.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for lexica-api-1.3.5.tar.gz
Algorithm Hash digest
SHA256 7261dca3f95f8656fedd09a063cfffe999db0aa54f1dcea94191f4ffab493ed6
MD5 8eabae1c9a3757f3918a09ab649b134c
BLAKE2b-256 b168f9283888f7158841dae5b70b77cb242ea9598d5a52d49902cfd51394da00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page