
Gpt2api Openai Gateway
This is a self-hosted gateway that reverse-engineers chatgpt.com to expose GPT Image 2 and DALL·E 3 through standard OpenAI API endpoints. You get multi-account pooling, proxy rotation, rate limiting, and a billing dashboard, all packaged in Docker Compose with MySQL and Redis. The main appeal is turning ChatGPT's image generation into something you can call from the OpenAI SDK without dealing with web sessions manually. It handles account rotation automatically and includes img2img edits via multipart uploads. Setup requires generating AES keys for encrypting stored tokens and adding ChatGPT accounts via JSON import. If you need batch image generation at scale or want to abstract away ChatGPT account management, this does the plumbing work.
- skills.sh installs
- 276
- GitHub stars
- 26
- last updated
- Jun 3, 2026
Install
$ npx -y skills add aradotso/trending-skills --skill gpt2api-openai-gateway --agent claude-codeInstalls into .claude/skills of the current project.
Files
gpt2api OpenAI Gateway
Skill by ara.so — Daily 2026 Skills collection.
gpt2api is a self-hosted OpenAI-compatible API gateway that reverse-engineers chatgpt.com to expose GPT Image 2 / DALL·E 3 / IMG2 grayscale capabilities via standard /v1/images/generations, /v1/images/edits, and /v1/chat/completions endpoints. It provides multi-account pooling, proxy pooling, rate limiting, credit billing, and an admin dashboard.
Installation & Deployment
Docker Compose (Recommended)
git clone https://github.com/432539/gpt2api.git
cd gpt2api/deploy
cp .env.example .env
Edit .env — these three are required:
JWT_SECRET=<generate with: openssl rand -base64 48 | tr -d '=/+' | cut -c1-48>
CRYPTO_AES_KEY=<generate with: openssl rand -hex 32>
MYSQL_ROOT_PASSWORD=<strong-password>
MYSQL_PASSWORD=<strong-password>
Generate secrets:
# CRYPTO_AES_KEY (must be exactly 64 hex chars = 32 bytes AES-256)
openssl rand -hex 32
# JWT_SECRET (>=32 chars)
openssl rand -base64 48 | tr -d '=/+' | cut -c1-48
Start services:
docker compose up -d --build
docker compose logs -f server
Sponsors
Details
- Repository
- github.com/aradotso/trending-skills
- Categories
- Backend & APIs, AI & Agent Building
- First seen
- Jun 3, 2026
More from aradotso/trending-skills
All 251- Opengame Agentic Game Creation268
- Oransim Causal Marketing Twin267
- Aglais Xqvm Quantum Vm266
- Cairn Ai Pentest265
- Flashkda Delta Attention261
- Openai Privacy Filter261
- Masterhttprelayvpn Proxy259
- Crabtrap Llm Proxy257
- Masterhttprelayvpn Rust256
- Tilekernels Gpu Kernels256
- Text To Cad Harness250
- Freellmapi Proxy212
- Superlevels Chrome Extension211
- Gpt Image 2 Skill207
- Ppt Image First Workflow207
- Flowdriver Covert Transport206
- Future Agi Platform206
- Pi Computer Use206
- Privacy Parser Pii Extraction201
- Token Dashboard Claude Analytics201
- Wanman Agent Matrix200
- Awawausb Webusb Firefox195
- Humanize Korean Ai Text191
- Oh Story Claudecode Writing186