GPT 5 Codex API

OpenAI's GPT 5 Codex, through an OpenAI-compatible API. Providers quote it on an open exchange, and each request goes to the offer with the lowest estimated charge that meets your rules.

Facts

Model name
gpt-5-codex
Maker
OpenAI
Context window
272K tokens
Input price
$1.247 per million tokens
Output price
$9.980 per million tokens
Providers
1 independent provider
Regions
us

Providers

Scores

Scores: Artificial Analysis (https://artificialanalysis.ai/)

Request

curl https://router.inference.ai.exchange/v1/chat/completions \
  -H "Authorization: Bearer $LIQUID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-codex",
    "messages": [{"role":"user","content":"Say hello."}]
  }'

Questions

What is GPT 5 Codex?
Served by intent-router: each job goes to the cheapest healthy upstream for this model.
How much does GPT 5 Codex cost?
Offers now ask $1.247 per million input tokens and $9.980 per million output tokens. A job pays for the tokens it uses. The exchange picks the cheapest eligible offer.
What is the context length of GPT 5 Codex?
The largest offer takes 272,000 input tokens. A smaller offer can take less. The exchange skips an offer that cannot take your message.
What can GPT 5 Codex do?
Its providers list Documents, Vision, Reasoning effort, JSON object, JSON schema, Frequency penalty, Logit bias, Log probabilities, Min-p sampling, Presence penalty, Repetition penalty, Seed, Stop sequences, Top-k sampling, Top-p sampling, Text, Tools.
What inputs and outputs does GPT 5 Codex support?
Text · Files · Images → Text.
Which providers serve GPT 5 Codex?
1 independent provider quote it now, with 1 offer. The table above ranks them by the cost of a typical job.
How do I call GPT 5 Codex?
Send "gpt-5-codex" as the model in an OpenAI or Anthropic request. The API section links to setup steps for each client.
When was GPT 5 Codex listed?
The exchange first listed it on 10/8/2026. This is not its release date.

Related pages