Skip to main content

The python package for api.qewertyy.me

Project description

Available Models

from openapi 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" },
    ],
    chat: [
      { id: 1, name: "models/chat-bison-001" },
    ],
    image: [
      { id: 2, name: "MeinaMix" },
      { id: 3, name: "AnyLora" },
      { id: 4, name: "AnyThingV4" }
    ]
  }

Usage for palm

from openapi import Client

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

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

Usage for upscaling an image.

from openapi 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

sdk-openapi-0.0.8.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

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