GPT 5 Codex API
The public model id is openai/gpt-5-codex. It has an input price of $1.25 per 1M tokens. Walk away if you need a published context window or a published CacheSafety score, because both are missing.
What is GPT 5 Codex API in NextModel?
The public model id is openai/gpt-5-codex. It has an input price of $1.25 per 1M tokens. Walk away if you need a published context window or a published CacheSafety score, because both are missing.
GPT-5 Codex via NextModel: 400k-token context; $1.25 / 1M tokens in / $10 / 1M tokens out per 1M tokens. Capabilities: streaming.
Best use cases
- Call it when you want the GPT-5 Codex catalog entry and accept that context and first-party CacheSafety are unpublished.
- It is a price match with its OpenAI siblings, so use this id when the exact Codex name matters.
- You need the listed capabilities on this catalog entry.
When not to use
- Do not call it if you need a published context window or a first-party CacheSafety score.
- Both are unpublished in this catalog snapshot.
- Also skip it if you require a release date or independent quality score, because those are not in the notes.
OpenAI-compatible code example
curl https://api.nextmodel.app/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $NEXTMODEL_API_KEY" \
-d '{"model":"openai/gpt-5-codex","messages":[{"role":"user","content":"Reply with OK."}]}'Switching models only changes the model field.
Similar alternatives
Text Embedding 3 Large via NextModel: context unpublished; $0.13 / 1M tokens in / $0 / 1M tokens out per 1M tokens. Capabilities: streaming.
Text Embedding 3 Small via NextModel: context unpublished; $0.02 / 1M tokens in / $0 / 1M tokens out per 1M tokens. Capabilities: streaming.
Whisper Large V3 Turbo via NextModel: context unpublished; $0 / 1M tokens in / $0 / 1M tokens out per 1M tokens. Capabilities: streaming.
Reading
Articles that explain GPT-5 Codex
How to estimate AI API cost before you ship
Listed price only tells you the unit cost. This walkthrough turns that into a traffic estimate.
Lin Qiming
LLM Gateway: Compare Options and Alternatives
Same OpenAI-compatible base URL, with routing and billing sitting in front of the model.
Zhao Yu'an
OpenRouter alternatives for developers who need AI API cost control
If the buying question is cost control rather than one model, start here.
Zhao Yu'an
FAQ
GPT-5 Codex API questions
What model id do I send for GPT 5 Codex?
Send openai/gpt-5-codex to https://api.nextmodel.app/v1 with your OpenAI SDK. If that id is missing from /v1/models, the page is stale.
What does the catalog list for price and context?
GPT 5 Codex is listed at $1.25 / 1M tokens input and $10 / 1M tokens output. Context window: not published in catalog.
What should I treat as unverified?
Do not call it if you need a published context window or a first-party CacheSafety score. Both are unpublished in this catalog snapshot.
Start now
Ready to start building?
Passwordless signup, pay-as-you-go billing, and one OpenAI-compatible endpoint for every model. Create your key and send your first request in minutes.