yukkcat/chatgpt2api

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

What it solves

ChatGPT2API provides a way to access the capabilities of the official ChatGPT website through an OpenAI-compatible API. This allows users to integrate ChatGPT's text, image, and file generation features into other applications while providing a centralized management console for handling multiple accounts, proxy settings, and usage monitoring.

How it works

The project acts as an API gateway that reverse-engineers the official ChatGPT web interface. It translates requests from an OpenAI-compatible API format into interactions with the ChatGPT website. It includes a scheduler to manage account rotation, concurrency, and proxy exits to avoid rate limits and bans. Data is stored in an Application Database (SQLite or PostgreSQL 18) for accounts and logs, while generated images and files are stored locally or via WebDAV.

Who it’s for

Developers and administrators who want to use ChatGPT's web-based features (like image generation and search) via an API without using official OpenAI API keys, or those managing a pool of multiple ChatGPT accounts for high-availability AI services.

Highlights

  • OpenAI Compatible API: Supports Chat Completions, Responses, and Messages (Anthropic compatible) endpoints.
  • Multi-Account Management: Supports adding accounts via OAuth, Access Tokens, Session JSON, and batch processing.
  • Advanced Scheduling: Features automatic account switching upon failure, concurrency control, and proxy group rotation.
  • Comprehensive Tooling: Includes a Vue-based management console for real-time monitoring, log analysis, and prompt library management.
  • Multimodal Capabilities: Supports text dialogue, web search, image generation (text-to-image, image-to-image), and the creation of editable PPT/PSD files.
  • Flexible Storage: Supports SQLite, PostgreSQL 18, and R2 backups for data, with local or WebDAV options for assets.

Related

  • Project
  • Project
  • Project
  • Dispatch
  • Project