Skip to main content

A lightweight library that makes it easy to use Stable Diffusion XL and GPT.

Project description

aitoolsAPI

This is a simple async API client library for aitoolsAPI.

Installation

You can install the library using pip:

pip install aitoolsAPI

Using

Since this library is asynchronous, you should write the code like this:

GPT request:

import asyncio
import aitoolsAPI

async def main(prompt):
  print(await aitoolsAPI.gpt(prompt)) # Will send a response as text

asyncio.run(main("What package of sanctions was imposed on Russia last time?"))

SDXL request:

import asyncio
import aitoolsAPI

async def main(prompt):
  print(await aitoolsAPI.sdxl(prompt)) # Will send the answer in the form of a link

asyncio.run(main("Red ball flies among the clouds, 4K, realistic, no blur"))

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

aitoolsAPI-0.2.tar.gz (2.0 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