OpenAI model

GPT-5.2-Codex API

openai/gpt-5.2-codex is an OpenAI model listed in the NextModel gateway catalog. Input price is $1.75 per 1M tokens. Output price is $14 per 1M tokens.

OpenAIPlatform curatedCatalog
ThinkingFunction CallingVision
Input price$1.75 / 1M tokens
Output price$14 / 1M tokens
Context length400k tokens
Max output8.2k tokens

What is GPT-5.2-Codex API in NextModel?

openai/gpt-5.2-codex is an OpenAI model listed in the NextModel gateway catalog. Input price is $1.75 per 1M tokens. Output price is $14 per 1M tokens.

GPT-5.2 Codex via NextModel: 400k-token context; $1.75 / 1M tokens in / $14 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.

Best use cases

  • Call this model if you need 400000 tokens of context with vision, tool use, and JSON output.
  • The $1.75 input price and $14 output price may fit long-context agent workloads.
  • The latency band is 1000-3000ms.

When not to use

  • Do not call this model if you need first-party CacheSafety numbers, because no CacheSafety row is published for this exact model.
  • Do not call it if you need an independent third-party quality score, because that score is not in these notes.
  • A required number is unpublished in the catalog snapshot.

OpenAI-compatible code example

request.sh
curl https://api.nextmodel.app/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NEXTMODEL_API_KEY" \
  -d '{"model":"openai/gpt-5.2-codex","messages":[{"role":"user","content":"Reply with OK."}]}'

Switching models only changes the model field.

Try it in the playground

Similar alternatives

OpenAICatalog

GPT-5.1 Codex Max via NextModel: 400k-token context; $1.25 / 1M tokens in / $10 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.

$1.25 / 1M tokensInput$10 / 1M tokensOutput400kContext
Best forimage understanding, multimodal chat
StreamingTool callingJSON modeVision
Platform curatedCurated and maintained in the NextModel catalog
View details
OpenAICatalog

GPT-5.2 via NextModel: 400k-token context; $1.75 / 1M tokens in / $14 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.

$1.75 / 1M tokensInput$14 / 1M tokensOutput400kContext
Best forimage understanding, multimodal chat
StreamingTool callingJSON modeVision
Platform curatedCurated and maintained in the NextModel catalog
View details
OpenAICatalog

GPT-5.1 via NextModel: 400k-token context; $1.25 / 1M tokens in / $10 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.

$1.25 / 1M tokensInput$10 / 1M tokensOutput400kContext
Best forimage understanding, multimodal chat
StreamingTool callingJSON modeVision
Platform curatedCurated and maintained in the NextModel catalog
View details

Reading

Articles that explain GPT-5.2 Codex

FAQ

GPT-5.2 Codex API questions

What model id do I send for GPT-5.2-Codex?

Send openai/gpt-5.2-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.2-Codex is listed at $1.75 / 1M tokens input and $14 / 1M tokens output. Context window: 400000 tokens.

What should I treat as unverified?

Do not call this model if you need first-party CacheSafety numbers, because no CacheSafety row is published for this exact model. Do not call it if you need an independent third-party quality score, because that score is not in these notes.

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.