LLM Pricing
← All models

gpt-5-codex

OpenAI · responses model

Input
$1.2500 / 1M tokens
Output
$10.0000 / 1M tokens
Cached input
$0.1250 / 1M tokens
Context
128.0K

Pricing

Item Raw value (per token) Normalized
Input 0.00000125 $1.2500 / 1M tokens
Output 0.00001 $10.0000 / 1M tokens
Cached input 1.25e-7 $0.1250 / 1M tokens
Embedding 0.00000125 $1.2500 / 1M tokens

Token limits

Context window
128.0K
Max input tokens
272.0K
Max output tokens
128.0K
Max tokens
128.0K

Capabilities

Capability Supported
Vision Yes
Function calling Yes
Parallel function calling Yes
Tool choice Yes
Prompt caching Yes
Reasoning Yes
Response schema Yes
System messages No
Audio input No
Audio output No
Web search Yes
PDF input Yes
Video input No

Similar models

Models with comparable pricing in the same mode (responses).

Model Provider Input Output Context Coding Features
gpt-5.1-codex Azure $1.2500 / 1M tokens $10.0000 / 1M tokens 128.0K N/A Vision Tools Cache Reasoning
gpt-5.1-codex-2025-11-13 Azure $1.2500 / 1M tokens $10.0000 / 1M tokens 128.0K N/A Vision Tools Cache Reasoning
gpt-5-codex Azure $1.2500 / 1M tokens $10.0000 / 1M tokens 128.0K N/A Vision Tools Cache Reasoning
gpt-5.1-codex Azure $1.2500 / 1M tokens $10.0000 / 1M tokens 128.0K N/A Vision Tools Cache Reasoning
gpt-5.1-codex-max Azure $1.2500 / 1M tokens $10.0000 / 1M tokens 128.0K N/A Vision Tools Cache Reasoning
gpt-5.1-codex OpenAI $1.2500 / 1M tokens $10.0000 / 1M tokens 128.0K N/A Vision Tools Cache Reasoning

Sources

Pricing source LiteLLM model cost map
Synced at 2026-05-27
Manual review Not reviewed
Raw LiteLLM fields
{
  "cache_read_input_token_cost": 1.25e-7,
  "input_cost_per_token": 0.00000125,
  "litellm_provider": "openai",
  "max_input_tokens": 272000,
  "max_output_tokens": 128000,
  "max_tokens": 128000,
  "mode": "responses",
  "output_cost_per_token": 0.00001,
  "supported_endpoints": [
    "/v1/responses"
  ],
  "supported_modalities": [
    "text",
    "image"
  ],
  "supported_output_modalities": [
    "text"
  ],
  "supports_function_calling": true,
  "supports_native_streaming": true,
  "supports_parallel_function_calling": true,
  "supports_pdf_input": true,
  "supports_prompt_caching": true,
  "supports_reasoning": true,
  "supports_response_schema": true,
  "supports_system_messages": false,
  "supports_tool_choice": true,
  "supports_vision": true,
  "supports_web_search": true,
  "supports_none_reasoning_effort": false,
  "supports_xhigh_reasoning_effort": false,
  "supports_minimal_reasoning_effort": true
}