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
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 details)
File details
Details for the file aitoolsAPI-0.2.tar.gz.
File metadata
- Download URL: aitoolsAPI-0.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5af7f8c8346520bce84357e5cc9fddfaab099a6e6f9fb3a6337306e94025e5c1
|
|
| MD5 |
450c214f16c85d6a76a805505f501ef8
|
|
| BLAKE2b-256 |
8082dce7842d5de31d521d1767a7d3869c30864ccf51e479781140a524cda755
|