Skip to content
reason-machines avatar

Gpt2api Openai Gateway

OpenAI-compatible self-hosted gateway that pools ChatGPT accounts to serve image generation and editing endpoints.

CCM score
46 of 100
skills.sh installs
276
GitHub stars
99
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Docker Compose deployment, YAML and env-var configuration, proxy and account pooling, API key quotas, and image generation and edits
  • Includes an admin dashboard, batch account import (JSON or AT/RT/ST text), and endpoints for /v1/images/generations, /v1/images/edits, and /v1/models
  • Enforces per-account scheduling with min_interval_sec, a daily usage cap ratio, and a cooldown after upstream 429 responses
  • Designed for teams that want OpenAI SDK compatibility for GPT Image 2 and IMG2 grayscale generation on their own infrastructure

Install

$ npx -y skills add reason-machines/trending-skills --skill gpt2api-openai-gateway -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/reason-machines/trending-skills
Categories
AI Image, Video & Voice, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the gpt2api-openai-gateway skill do?

The gpt2api-openai-gateway skill sets up a self-hosted OpenAI-compatible gateway that exposes GPT Image 2 image generation and editing through standard /v1/images endpoints. It also adds multi-account pooling, proxy pooling, rate limiting and credit billing for the gateway.

How do I install the gpt2api-openai-gateway skill?

Run npx -y skills add reason-machines/trending-skills --skill gpt2api-openai-gateway -y in a project to install it. Once installed, the gpt2api-openai-gateway skill lets the agent deploy the gateway with Docker Compose and configure its accounts and API keys.

What does the gpt2api-openai-gateway skill need to run?

The gpt2api-openai-gateway skill needs Docker Compose, MySQL and Redis, plus generated JWT_SECRET and CRYPTO_AES_KEY values in its .env file. It also needs ChatGPT accounts and optional proxies to pool for image generation.

Which category is the gpt2api-openai-gateway skill in, and what sets it apart?

The gpt2api-openai-gateway skill is in the AI Image, Video & Voice category on Claude Marketplaces. It stands out by pooling multiple ChatGPT accounts behind an OpenAI-compatible endpoint, so existing OpenAI SDK code can generate batch images through it.

More from reason-machines/trending-skills

All 251

Similar to Gpt2api Openai Gateway

More AI Image, Video & Voice