DEV Community

Cover image for ZeroGPT: A lightweight AI library for text and image generation with an uncensored mode
Red Piar
Red Piar

Posted on

ZeroGPT: A lightweight AI library for text and image generation with an uncensored mode

πŸš€ 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
Enter fullscreen mode Exit fullscreen mode

πŸ§ͺ Usage Examples

πŸ“„ Text generation:

    from zerogpt import Client

    client = Client()
    print(client.send_message('hello!'))
Enter fullscreen mode Exit fullscreen mode

πŸ–ΌοΈ 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
Enter fullscreen mode Exit fullscreen mode

πŸ”— Links

πŸ’¬ 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)