The GPT API gateway for coding agents, at a fraction of the official price.

A third-party gateway for GPT models only — not affiliated with OpenAI or Anthropic.

Get more GPT API credit with every plan. Use your existing SDK or connect your coding agent in one command.

  • 30% welcome offer for eligible new customers
  • Published token rates
  • One-command setup
Explore Business

Pay less. Get more credit.

Standard USD prices before welcome offers and promotions. See plan details for current offers and payment options.

PlanYou payAPI credit
  • Trial$3$30

    One-time payment · valid for 7 days

  • Plus$9.90$100

    Per month · renews until canceled

  • Pro$39.90$500

    Per month · renews until canceled

  • Ultra$99.90$1,500

    Per month · renews until canceled

Up to 93% below the included credit value

Ultra Membership (Monthly) includes $1,500 of API credit for $99.90 per month. Savings compare the standard plan price with its included credit value, rounded down. Usage is billed at the published token rates.

View plan details

All GPT models, one key

  • GPT-6.2 Astra
  • GPT-6.2 Sol
  • GPT-6 Astra
  • GPT-6.1 Sol
  • GPT-6.1 Terra
  • GPT-6 Sol
  • GPT-5.6 Sol
  • GPT-5.6 Terra
Explore GPT models

Drop-in for your SDK

Just change the base URL

base_url = "https://www.codeilab.com/api/codex"

Use the OpenAI-compatible endpoint above. Claude Code uses the Anthropic-compatible protocol to access GPT models.

Connect your agents in one click

Copy the setup command to configure an installed client. The script writes your configuration using your API key.

Claude Code · Codex CLI · OpenCode

Get the setup command

Works with the tools you use

GPT API token pricing

Current published token rates. Plan credit gives you more spending power at these rates.

USD per 1 million tokens
ModelInput tokensOutput tokens
gpt-6.1-terra$1$5
gpt-6.1-sol$2$10
gpt-6.2-sol$2$10
gpt-6.2-astra$8$40
gpt-6-astra$10$50

For GPT-6.2 Astra, GPT-6.2 Sol, GPT-6 Astra, GPT-6 Sol, GPT-6.1 Sol, and GPT-6.1 Terra, requests over 272K input tokens cost 2× the input and cache rates and 1.5× the output rate for the entire request.

One-line setup

Write your client's configuration in one command — endpoint, API key and model mapping for the agent you pick.

Claude CodeCodex CLIOpenCode

Prefer to do it by hand? The docs walk through the same steps, including the flags for non-interactive installs.

See all setup flags
curl -fsSL https://www.codeilab.com/setup.sh | sh

Protocol compatibility

Use OpenAI models through the Claude protocol

A client that only speaks the Anthropic Messages API is no longer locked to a single model family. Point it at CodeI Lab and the same endpoint reaches OpenAI models — same request shape, same SDK, no adapter in between.

  • Protocol compatible: /v1/messages and /v1/messages/count_tokens are served natively, so streaming and token counting behave the way the client expects.
  • Model mapping: requests for claude-sonnet, claude-opus, and claude-haiku are routed to the matching model tier automatically.
  • Identical billing: token pricing and quota are shared across both protocols — no separate subscription for OpenAI models.

GPT-6.2 models, GPT-6 Astra, GPT-6.1 Sol, and GPT-6.1 Terra require the Responses API for tools.

Set up Claude Code

Point the Anthropic SDK at CodeI Lab

export ANTHROPIC_BASE_URL=https://www.codeilab.com/api/anthropic
export ANTHROPIC_AUTH_TOKEN=sk-...

GPT API FAQ: models, pricing, protocols and setup

Answers about discounted GPT API credit, OpenAI and Anthropic protocols, and one-command coding agent setup.

What is CodeI Lab, and how do I connect?
CodeI Lab is a third-party GPT API gateway. It is not an official OpenAI or Anthropic service and it does not ship a CodeI CLI of its own. Create an API key, then point an existing client at the OpenAI-compatible /api/codex endpoint or the Anthropic-compatible /api/anthropic endpoint. The setup script writes the client configuration; it does not install the client. No OpenAI account or ChatGPT subscription is needed.
Which models run behind the gateway, and what do the two protocols mean?
CodeI Lab serves GPT models only: GPT-6.2 Astra, GPT-6.2 Sol, GPT-6 Astra, GPT-6 Sol, GPT-6.1 Sol, GPT-6.1 Terra, and the GPT-5.6 family. /api/codex is OpenAI-compatible, covering Responses, Chat Completions and image generation, while /api/anthropic is Anthropic Messages-compatible. A Claude client such as Claude Code can keep sending claude-* model IDs because the gateway maps them to GPT models; the backend does not run Claude models.
Which clients can use CodeI Lab?
Claude Code, Codex CLI, Cursor, OpenCode and other clients that accept an OpenAI-compatible or Anthropic-compatible base URL and an API key. Claude Code uses ANTHROPIC_BASE_URL, Codex CLI uses openai_base_url, and Cursor or OpenCode is added as an OpenAI-compatible provider. The one-command script only writes configuration; it does not install a client and you do not need a CodeI-specific tool.
How do plan credit, resets and top-ups work?
Plans are sold as dollars of usage credit at the published per-token rates, not as a token or message count. Subscription credit is drawn down as requests are billed, and the usage cycle restarts every 30 days from the subscription start date. Pay-as-you-go top-ups are separate credit: they are valid for one month from purchase, are consumed before subscription credit, apply across the account's API keys, and do not raise an individual key's own cap. Unused credit does not become a permanent balance or transferable tokens. Current balances and reset dates are in the dashboard.
Which platforms and programming languages are supported?
The gateway is an HTTP API, so it is not tied to one operating system: Claude Code, Codex CLI, Cursor and OpenCode run on Windows, macOS and Linux, and any language that can make HTTPS requests can call the endpoints, including Python, JavaScript/TypeScript, Java, C++, Go, Rust, PHP and Ruby. Available models and client features still depend on the endpoint and protocol you use.
How do I check pricing and compare costs?
The pricing page publishes plan prices, included usage credit, top-up terms and per-token input, cached-input and output rates. The GPT API page explains the endpoints and request examples, and the cost calculator estimates monthly cost from your request and token assumptions. Compare plans by the dollars of usage credit they include; the live catalog and token rates are the source of truth, so re-check them before purchasing.

Still have questions?

Contact our support team