Skip to content
ChatGPT API
Documentation

Documentation

ChatGPT API — what it is and how to start using the OpenAI API in 2026

Last updated:

What is the ChatGPT API?

The ChatGPT API is a third-party, OpenAI-compatible gateway that gives you access to the latest OpenAI models — plus Claude models — through a single API key. It speaks the official OpenAI request and response format, so any existing OpenAI integration keeps working after you change one setting: the base URL.

ChatGPT API is an independent provider and is not affiliated with or endorsed by OpenAI.

What does ChatGPT API provide?

ChatGPT API gives access to every OpenAI model through one key. It uses the official OpenAI format, so you can connect it to any SDK, code editor, agent, or automation tool — only the base URL changes.

CapabilityDescription
OpenAI-compatiblePOST /v1/chat/completions, POST /v1/responses, GET /v1/models with SSE streaming
OpenAI modelsGPT-5.5, GPT-5.5-pro, GPT-5.4, mini, nano, pro and GPT-5.3-codex
IntegrationsCursor, GitHub Copilot, Codex CLI, VS Code, SDK, cURL
Payments20% cheaper than official OpenAI rates, pay with crypto

ChatGPT API vs the official OpenAI API

You keep the same code, SDKs and request format. The differences are commercial:

Official OpenAIChatGPT API
PricingList per-token rates20% below official, per token
BillingSubscription or card requiredPay-as-you-go, credits never expire
PaymentCardCrypto — BTC, ETH, USDT, USDC
Setupapi.openai.comChange only the base URL
ModelsOpenAI onlyOpenAI + Claude, one key

How to get a ChatGPT API key

  1. Register a free account and open your dashboard.
  2. Click Generate key to create your ChatGPT API key.
  3. Set it as your API key and point the base URL at our endpoint — no approval queue, no waiting.

Recommended model IDs

ChatGPT API exposes the full OpenAI model lineup through one key and the official OpenAI format, so you choose a model purely by the speed, cost and quality your task needs. Flagship gpt-5.5 handles complex reasoning and coding, the gpt-5.4 family — including mini and nano — trades some capability for lower latency and price, and gpt-5.3-codex is tuned specifically for code. Pass any of these IDs in the `model` field; switching between them is a one-line change.

gpt-5.5flagship, best all-round balance
gpt-5.5-promost powerful for hard tasks
gpt-5.4best price/quality
gpt-5.4-minifast and cheap
gpt-5.4-nanofastest and cheapest
gpt-5.3-codextuned for code

Codex API: models for vibe coding

For coding, refactoring and agentic workflows, use the Codex-tuned gpt-5.3-codex or the flagship gpt-5.5. They work through the same OpenAI format, so you can plug them into Codex CLI, Cursor, GitHub Copilot or your own agent by changing only the base URL and the model ID.

How much does the ChatGPT API cost?

Pricing is pay-as-you-go and mirrors the official OpenAI per-token rates minus 20%, on both input and output tokens. There is no subscription and no minimum spend — you buy credits once, they are consumed only when a request runs, and they never expire.

Payment and access without official billing

Because top-ups are paid with cryptocurrency, you can use the OpenAI API even where official card billing isn't available. Buy credits once, use them across every model, and track token-level spend in your dashboard.

Frequently asked questions

How much does the ChatGPT API cost?

The ChatGPT API is pay-as-you-go and priced 20% below the official per-token list price. There is no subscription and no minimum spend — you buy credits once and they are only consumed when a request actually runs. Every request is metered at token level in your dashboard, so a small project can cost just a few cents. Pricing mirrors the official OpenAI per-token rates exactly, minus 20%, on both input and output tokens, and cached input is billed at the same discounted ratio. Because billing is usage-based rather than seat- or tier-based, your costs fall to near zero while your app is idle and scale up smoothly as traffic grows. You can see the full per-model breakdown on the pricing page and track spend in real time from your dashboard.

Is the ChatGPT API free?

There is a free quick start so you can generate a key and send your first requests without paying. Beyond the free quota you simply top up your balance with crypto. There is no subscription, and credits you buy never expire.

Which models are available?

You get drop-in access to all the latest OpenAI models — such as GPT-5.5, GPT-5.4-pro and GPT-5.3-codex — plus Claude models, through the official OpenAI format. Because we are API-format compatible, the model names you already use keep working. You pass the model ID in the standard `model` field of your request, exactly as with the official API, so switching between models is a one-line change. The OpenAI lineup covers flagship, mini, nano, pro and Codex variants for different speed-versus-quality trade-offs, while Claude models such as Claude Opus 4.8, Sonnet 4.6 and Haiku 4.5 are available for coding and agentic work. The full list of model IDs, with a short note on when to use each, is on the Models page in the docs.

Which model is best for coding?

For the hardest coding, refactoring and agentic tasks, gpt-5.5 is the strongest choice — or gpt-5.5-pro when you need maximum capability. gpt-5.3-codex is tuned specifically for code and pairs well with Codex CLI, Cursor and GitHub Copilot. For faster, cheaper day-to-day coding and high-volume completions, gpt-5.4-mini and gpt-5.4-nano give the best balance of speed and cost.

How do I get a ChatGPT API key?

Register for a free account, open your dashboard, and click “Generate key”. Your ChatGPT API key works immediately — set it as your API key and point the base URL at our endpoint. No approval queue and no waiting.

Which base URL do I use?

Set the base URL in your SDK or tool to https://api.chatgpt-api.dev/v1.

Ready to start building?

Get API access to every OpenAI model in 2 minutes.

Sign up