# basketikun/chatgpt2api

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

Repository: https://github.com/basketikun/chatgpt2api
Canonical: https://ross.abutalabs.com/products/chatgpt2api
Homepage: https://linux.do
Language: Python
License: MIT
License Family: permissive
Last push: 2026-07-29T08:56:51+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 92, longevity 9
- inputs: {"age_days": 136, "days_push": 35, "days_rel": 59, "gap_med": 0, "n_releases_24m": 20}
- flags: young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6012, forks 1598 (observed 2026-08-28T04:09:34.223644+00:00)

## What it is
A self-hosted reverse-engineered implementation of ChatGPT's official web interfaces, exposing OpenAI-compatible API endpoints for text generation, image generation, and image editing (including GPT-Image models). It includes a web panel, account pool management, imports from CPA/sub2api pools, and Docker-based deployment with optional WARP/FlareSolverr proxy support.

## Use cases
- expose ChatGPT as an OpenAI-compatible API endpoint
- batch generate and edit images online via GPT image models
- manage a pool of ChatGPT accounts for API access
- connect Cherry Studio or New API to ChatGPT capabilities
- self-host a ChatGPT-to-API proxy with Docker
- bypass Cloudflare blocks with WARP and FlareSolverr proxies
- generate editable PPT/PSD files from ChatGPT

## When to choose
- you need an OpenAI-compatible API backed by ChatGPT web accounts
- you want self-hosted image generation/editing with account pool management
- you already use tools like Cherry Studio or New API and want to plug in ChatGPT

## When to avoid
- you need a production-grade, ToS-compliant LLM API (use the official OpenAI API)
- you cannot accept the risk of account bans from reverse-engineered access
- you need commercial or high-volume usage, which the license explicitly forbids

## Facets
- artifact type: service
- maturity: active
- function: llm-inference, http-server, api-framework, proxy, image-processing, auth, self-hosted
- domain: large-language-models, artificial-intelligence, image-processing, apis, self-hosted, reverse-engineering
- platform: self-hosted, python, cross-platform
- tags: chatgpt-reverse-engineering, openai-compatible-api, account-pool-management, image-generation, image-editing, api-proxy, gpt-image, cherry-studio, new-api, docker, web-server

## Member repositories
- basketikun/chatgpt2api (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.223644+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:49:46.531247+00:00, confidence not recorded.
  - readme: https://github.com/basketikun/chatgpt2api (fetched 2026-08-28T04:09:34.223644+00:00, sha 31b00a2ab982)
- Data as of 2026-08-30T08:39:29.467469+00:00.
