π 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)