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)