gpt-5-codex

OpenAI · Chat

ConversationImage RecognitionThinking

NixAPI price, from

Input$0.0777
Output$0.6214

USD per 1M tokens · via group Codex-Gpt-1 · Official list price $1.25 / $10Save 94%

Get your API key →

About gpt-5-codex

GPT-5-Codex is a version of GPT-5 optimized for agentic coding in Codex. Like its predecessor codex-1, the model is trained on real-world coding tasks using reinforcement learning across diverse environments to produce code that closely matches human style and PR preferences, follow instructions precisely, and iteratively run tests until they pass.

Price by routing group

Pick a group in the console when you create a key. Status is live from the router. Live status by group →

GroupGroup statusModel statusMultiplierInputOutputCache readCache write
Codex-Gpt-1…×0.0621$0.0777$0.6214$0.007768—
Azure-Gpt-1…×0.0744$0.0929$0.7436$0.009295—
Azure-Gpt-2…×0.169$0.2113$1.69$0.0211—
Azure-Gpt-3…×0.3718$0.4647$3.718$0.0465—
Azure-Gpt-4…×0.7436$0.9295$7.436$0.0929—
Azure-Gpt-5…×1.014$1.268$10.14$0.1268—

USD per 1M tokens

Supported endpoints

openai-response

Call gpt-5-codex in one request

Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.

curl https://api.nixapi.com/v1/chat/completions \
  -H "Authorization: Bearer $NIXAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-codex",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Full API reference →

Questions about gpt-5-codex

How much does gpt-5-codex cost on NixAPI?

From $0.0777 per 1M input tokens and $0.6214 per 1M output tokens in the Codex-Gpt-1 group, about 94% below the official list price. Prices are pay-as-you-go in USD with no monthly minimum.

How do I call gpt-5-codex?

Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "gpt-5-codex".

Which routing groups serve gpt-5-codex?

gpt-5-codex is available in 6 routing groups: Codex-Gpt-1, Azure-Gpt-1, Azure-Gpt-2, Azure-Gpt-3, Azure-Gpt-4, Azure-Gpt-5. The lowest price is in Codex-Gpt-1.

More from OpenAI

Compare all OpenAI models →