Skip to content
One AI API Key

OpenAI · GPT · Flagship

Codex GPT-5

FreeNew

The Codex-tuned GPT-5 for coding agents, free: $0 per token, counted in the daily free allowance.

Model id

codex-gpt-5:free

Price per 1M tokens

Input
$0.00
Output
$0.00
Cached input
Not offered

Free while the promotion runs.Models on the free lane (ids ending in :free) carry no rate of their own and share one allowance: 100 requests and 5,000,000 tokens a day for every account, in Chat and through the API. No balance and no card are needed: the $10 sign-up credit pays for priced models first, and once it is gone the models that bill $0 keep their daily requests. A paid subscription, a coupon or the owner raising your account is the only way past the daily number.

Added here 23 Nov 2026 — read the changelog for what changed and why.

1 credit = $1 of usage. All rates

Start using Codex GPT-5

Set ONEAIAPIKEY_API_KEY to a key from your console, then run any example. Streaming is on so long answers are not cut off by idle-connection timeouts.

curl https://api.oneaiapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $ONEAIAPIKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "codex-gpt-5:free",
    "stream": true,
    "messages": [{"role": "user", "content": "Make the failing test in checkout.test.ts pass without changing the test."}]
  }'
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oneaiapikey.com/v1",
    api_key=os.environ["ONEAIAPIKEY_API_KEY"],
)

stream = client.chat.completions.create(
    model="codex-gpt-5:free",
    messages=[{"role": "user", "content": "Make the failing test in checkout.test.ts pass without changing the test."}],
    stream=True,  # recommended for long outputs
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.oneaiapikey.com/v1",
  apiKey: process.env.ONEAIAPIKEY_API_KEY,
});

const stream = await client.chat.completions.create({
  model: "codex-gpt-5:free",
  messages: [{ role: "user", content: "Make the failing test in checkout.test.ts pass without changing the test." }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}

More: quickstart · API reference · try it in Chat first

Tokens per day, by model

Last 7 days, UTC days

Hover, tap or drag across any day, or focus the chart and use the arrow keys, to see how every model did that day.

Real tokens served through this gateway, updated every 5 minutes. Ranked by usage, not quality.

Full ranking insights

GPT line-up

Codex GPT-5 or GPT-6.1 Sol or GPT-5.6 Terra?

Of the 8 GPT models on this site, GPT-6.1 Sol is the step up from Codex GPT-5 and GPT-5.6 Terra the step down. Each comparison lists the published rates and limits, then what favours each side.

Codex GPT-5vsGPT-6.1 Sol

Pick Codex GPT-5 when

  • you want it at no cost while its promotion runs.
  • the work is coding agents, code review and refactors, which this catalogue lists for Codex GPT-5 and not for GPT-6.1 Sol.

Pick GPT-6.1 Sol instead when

  • Codex GPT-5 does not list Tools, Vision, Reasoning, JSON mode, Structured output and Prompt caching and your code depends on it.
  • your workload looks like codex CLI, tool calling and long context, labels the catalogue gives GPT-6.1 Sol only.

Codex GPT-5vsGPT-5.6 Terra

Pick Codex GPT-5 when

  • you want it at no cost while its promotion runs.
  • the task needs a higher tier: this catalogue places Codex GPT-5 in the flagship tier and GPT-5.6 Terra in the balanced tier.
  • the work is coding agents, code review and refactors, which this catalogue lists for Codex GPT-5 and not for GPT-5.6 Terra.

Pick GPT-5.6 Terra instead when

  • Codex GPT-5 does not list Tools, Vision, Reasoning, JSON mode, Structured output and Prompt caching and your code depends on it.
  • your workload looks like general coding, writing and rAG, labels the catalogue gives GPT-5.6 Terra only.

Use cases

What Codex GPT-5 is listed for, and what it costs

The catalogue lists Codex GPT-5 for coding agents, code review and refactors. Each row prices one typical request at the published rates, with the arithmetic shown. Token counts are examples; your prompts will differ.

Model your own traffic

  1. Coding agents

    One step of an agent loop that edits files and runs tests: 40,000 tokens of context, and 2,500 tokens out.

    Works well as the main model in an agent loop that edits files and runs tests.

    “Make the failing test in checkout.test.ts pass without changing the test.”

    Same request on GPT-6.1 Sol $0.01635 and GPT-5.6 Terra $0.0488. No other flagship-tier GPT model on this site does this job for less.

    $0

    per agent step

    0.04 × $0.00 + 0.0025 × $0.00

  2. Code review

    A pull request diff with the code around it: 20,000 tokens in, 1,200 tokens of review comments out.

    Paste a diff and ask for risks, missing tests and edge cases.

    “Review this diff for bugs, missing tests and unclear names. List each issue with its line.”

    Same request on GPT-6.1 Sol $0.0182 and GPT-5.6 Terra $0.0544. No other flagship-tier GPT model on this site does this job for less.

    $0

    per review

    0.02 × $0.00 + 0.0012 × $0.00

  3. Refactors

    A refactor planned in one pass: 150,000 tokens of source in, a plan and patch of 8,000 tokens out.

    “Split payments.ts into a provider interface and one file per provider without changing behaviour.”

    Same request on GPT-6.1 Sol $0.133 and GPT-5.6 Terra $0.396. No other flagship-tier GPT model on this site does this job for less.

    $0

    per refactor pass

    0.15 × $0.00 + 0.008 × $0.00

Overview

When Codex GPT-5 fits

Codex GPT-5 is a flagship model from OpenAI, available here under the exact model id “codex-gpt-5:free”. In the GPT line-up here it sits between GPT-6.1 Sol and GPT-5.6 Terra. OpenAI has not published a release date we can cite; it has been available here since 23 Nov 2026.

OpenAI documents for it.

It is free to use while the promotion runs: requests bill at $0. Models on the free lane (ids ending in :free) carry no rate of their own and share one allowance: 100 requests and 5,000,000 tokens a day for every account, in Chat and through the API. No balance and no card are needed: the $10 sign-up credit pays for priced models first, and once it is gone the models that bill $0 keep their daily requests. A paid subscription, a coupon or the owner raising your account is the only way past the daily number. After that it returns to the regular rate of $0.00 input and $0.00 output per million tokens.

It is served through the OpenAI-compatible format at https://api.oneaiapikey.com/v1, so any SDK or tool that lets you set a custom base URL, for example Codex CLI, Cursor and Cline, can use it. It is not offered on the Anthropic Messages endpoint; pick an Anthropic-format model for Claude Code.

Use Codex GPT-5 at no cost.

It bills at $0 and never touches the balance. Models on the free lane (ids ending in :free) carry no rate of their own and share one allowance: 100 requests and 5,000,000 tokens a day for every account, in Chat and through the API. No balance and no card are needed: the $10 sign-up credit pays for priced models first, and once it is gone the models that bill $0 keep their daily requests. A paid subscription, a coupon or the owner raising your account is the only way past the daily number.

Codex GPT-5 is developed by OpenAI. Model names and trademarks belong to their owners. One AI API Key is an independent API gateway and is not affiliated with, endorsed by or sponsored by OpenAI.