Agent skill · software engineering · aradotso
gpt2api-openai-gateway
OpenAI-compatible SaaS gateway that reverse-engineers chatgpt.com to provide GPT Image 2, multi-account pooling, batch image generation, and billing management.
Why this skill is useful
Adds executable scripts for setting up a self-hosted OpenAI-compatible API gateway with multi-account pooling and batch image generation capabilities.
What it needs
Requires docker installed locally. Requires openai account access. About 7k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.
What this skill does
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) Edit .env — these three are required: Generate secrets: Start services: On startup the server automatically: 1. Waits for MySQL health check 2. Runs goose up database migrations 3. Starts HTTP on :8080 Default admin credentials (change immediately): URL: http://<server-ip>:8080/ Email: admin@example.com Password: admin123 --- Configuration Main config file: configs/config.yaml (override with GPT2API env vars in Docker). Environment variable override pattern (Docker): --- Quick Start: First Image Generation 1. Add a Proxy Via admin dashboard → Proxy Management → New Proxy, or via API: SOCKS5 example: 2. Import ChatGPT Accounts Batch import via admin dashboard → GPT Accounts → Batch Import. Supported formats — JSON session: Or AT/RT/ST plain text (one per line in the UI). 3. Create an API Key Admin dashboard → User Management → select user → API Keys → Create Key. Or programmatically: 4. Generate an Image Response: --- API Reference Image Generation Image Edit (img2img) Check Task Status List Models Chat Completions (preserved, UI disabled) --- Using with OpenAI SDK Python Node.js / TypeScript Go --- Key Concepts IMG2 Grayscale Hit IMG2 is a grayscale (A/B test) feature on chatgpt.com that returns multiple high-res final images in a single call. The gateway: 1. Sends the generation request 2. Detects previewonly in the tool message response 3. Automatically retries up to 3 times within the same conversation to capture IMG2 output 4. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aradotso/gpt2api-openai-gateway