yukkcat/chatgpt2api

ChatGPT官网接口纯协议的逆向实现,支持注册机维持号池额度,支持GPT-Image-2模型、文本模型,兼容OpenAI接口协议,在线批量生图/编辑图,号池管理,支持可编辑PPT/PSD文件逆向,支持导入CPA、sub2api号池 、支持接入Cherry Studio、New Api 等软件

What it solves

ChatGPT2API bridges the gap between the official ChatGPT web interface and standard developer tools. It allows you to use ChatGPT’s advanced capabilities—such as text generation, web searching, image creation, and file editing—through an OpenAI-compatible API, making these features accessible to your own applications or custom workflows.

How it works

It acts as a reverse-engineered gateway that translates standard API requests into actions on the ChatGPT website. It includes a management console where you can add and manage multiple ChatGPT accounts, configure proxy settings for different accounts, and monitor usage logs. The system handles the heavy lifting of session management, account rotation, and concurrency, storing your data in a local database (SQLite or PostgreSQL) and managing generated files locally or via WebDAV.

Who it’s for

This project is for developers and power users who want to integrate ChatGPT’s web-based features (like DALL-E image generation or web browsing) into their own software or automation pipelines. It is designed for those comfortable with self-hosting and managing account credentials, as it requires manual setup and carries the inherent risks of using non-official, reverse-engineered interfaces.

Highlights

  • Broad Capability Support: Access text, web search, image generation, image editing, and editable file tasks (PPT/PSD) via a unified API.
  • Multi-Account Management: Easily manage, group, and rotate multiple ChatGPT accounts to handle high-volume requests.
  • Built-in Monitoring: Includes a dashboard to view real-time logs, request metrics, and account health.
  • Flexible Deployment: Supports one-click installation and Docker Compose setups with optional PostgreSQL integration.
  • Proxy & Concurrency Control: Fine-grained control over network exits and concurrent request limits per account.

Related

  • Project
  • Project
  • Project
  • Project