๐ ZeroGPT โ Lightweight Python Library for Text & Image Generation via AI API
Hi there! ๐
I often found that working with AI APIs requires a lot of boilerplate code, consumes resources, and is often limited in flexibility. So I created ZeroGPT โ a lightweight and flexible library for interacting with AI.
It wraps API functionality into a simple interface and offers interesting modes like uncensored, think, and Dummy for memory optimization.
โจ Key Features
- ๐ Support for text and image generation via AI API
- ๐ง Special modes:
-
uncensoredโ minimal filtering -
thinkโ multithreaded high-quality generation
-
- โ๏ธ Simple and clear interface
- ๐ธ Completely free to use
- ๐ Suitable for both production projects and testing
๐ Project Status
Current version: 1.3.0
ZeroGPT is already stable and ready for real-world use.
The default model used is DeepSeek.
โก๏ธ Installation
pip install zerogpt
๐งช Usage Examples
๐ Text generation:
from zerogpt import Client
client = Client()
print(client.send_message('hello!'))
๐ผ๏ธ Image generation:
request_id = client.create_image('hatsune miku')['data']['request_id']
resp = client.get_image(request_id)
resp.download(['./image.png']) # list is optional
๐ Links
- ๐ง GitHub: github.com/RedPiarOfficial/ZeroGPT
- ๐ PyPI: pypi.org/project/zerogpt
- ๐ Documentation: red-3.gitbook.io/zerogpt
๐ฌ Iโd love to hear your feedback, ideas, and see your GitHub stars!
If you use the library or want to suggest improvements โ feel free to reach out, Iโd be happy to chat ๐
Top comments (0)