GPT-5-Codex

gpt-5-codex · OpenAI

GPT-5-Codex is a version of GPT-5 optimized for autonomous coding tasks in Codex or similar environments. It is only available in the Responses API, and the underlying model snapshots will be updated regularly. https://docs.aihubmix.com/en/api/Responses-API You can also use it in codex-cll; see https://docs.aihubmix.com/en/api/Codex-CLI for using codex-cll through Aihubmix.

API Pricing

Input$1.25 / 1M tokens
Output$10 / 1M tokens
Cache read$0.125 / 1M tokens

Specifications

Context400K tokens
Modalitiestext, image
CapabilitiesStreaming, Tool calling, Web search, Structured outputs, Prompt caching

Frequently asked questions

What is GPT-5-Codex?

GPT-5-Codex is a version of GPT-5 optimized for autonomous coding tasks in Codex or similar environments. It is only available in the Responses API, and the underlying model snapshots will be updated regularly. https://docs.aihubmix.com/en/api/Responses-API You can also use it in codex-cll; see https://docs.aihubmix.com/en/api/Codex-CLI for using codex-cll through Aihubmix.

What is the context length of GPT-5-Codex?

GPT-5-Codex has a 400,000 token context window.

How much does GPT-5-Codex cost?

On AIHubMix, GPT-5-Codex costs $1.25 per million input tokens and $10 per million output tokens. Cached input reads are billed at $0.125 per million tokens.

What modalities does GPT-5-Codex support?

GPT-5-Codex accepts text and image input.

What capabilities does GPT-5-Codex support?

GPT-5-Codex supports thinking, tool calling, function calling and structured outputs. Per-protocol parameter support is listed in the capability table on this page.

How do I call GPT-5-Codex via API?

GPT-5-Codex is available through the AIHubMix unified API. The API is OpenAI-compatible: point your OpenAI SDK at https://aihubmix.com/v1, use your AIHubMix API key, and set the model name to gpt-5-codex — no other code changes needed.

Who created GPT-5-Codex?

GPT-5-Codex is developed by OpenAI. AIHubMix aggregates it alongside models from other providers behind one API and one bill.

When was GPT-5-Codex released?

GPT-5-Codex was released on September 15, 2025 by OpenAI.

More models from OpenAI

See all OpenAI models →

GPT 6.1 Sol

by OpenAI

GPT-6.1 Sol is OpenAI's latest model in the GPT-6 series, specifically designed for…

$2/1M in · $10/1M out
1,050,000 tokens context

GPT 6 Luna

by OpenAI

GPT-6 Luna is OpenAI's latest and most efficient model, designed for focused…

$0.1/1M in · $0.5/1M out
1,050,000 tokens context

GPT 6 Sol

by OpenAI

GPT-6 Sol is OpenAI's latest model in the GPT-6 series, specifically designed for complex…

$2/1M in · $10/1M out
1,050,000 tokens context

GPT 6 Astra

by OpenAI

GPT-6 Astra is OpenAI's newest and most intelligent model, with industry-leading…

$10/1M in · $50/1M out
1,050,000 tokens context

GPT Live Transcribe

by OpenAI

OpenAI's latest realtime speech-to-text model, built for low-latency use — it streams…

GPT Realtime 2.1

by OpenAI

GPT-Realtime-2.1 is a reasoning speech-to-speech model for the Realtime API, with tool…

$4/1M in · $24/1M out
128,000 tokens context

Use GPT-5-Codex via the AIHubMix unified API — one interface for every major LLM.