All Models / openai / openai/gpt-5.1-codex

OpenAI: GPT-5.1-Codex API Pricing & Cost Calculator

GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

Tool CallingReasoningMultimodal / VisionPrompt Caching
Input Price / 1M Tokens
$1.25
Output Price / 1M Tokens
$10.00
Prompt Cache Read / 1M
$0.130
Context Window
400K
Max out: 128K

Interactive OpenAI: GPT-5.1-Codex Monthly Cost Calculator

Est. Monthly (With Cache)
—
Est. Monthly (Uncached)
—
Est. Daily Run Rate
—

Volume Cost Benchmarks (75% Input / 25% Output)

Monthly Token VolumeUncached API CostWith 50% Prompt Caching
1M Tokens (Small App)$3.44$3.02
10M Tokens (Growing SaaS)$34.38$30.18
100M Tokens (Scale / Agents)$343.75$301.75
1B Tokens (Enterprise)$3,437.50$3,017.50

Deploy or Switch Providers

Best for H100 / A100 / 4090

RunPod Cloud GPUs

Spin up on-demand H100, A100, L40S, and RTX 4090 pods or serverless vLLM endpoints in seconds.

Launch GPU on RunPod →
Predictable Cloud Infra

DigitalOcean GPU Droplets

Deploy AI inference APIs, vector databases, and GPU droplets with simple monthly billing.

Try DigitalOcean →
1 API Key · 470+ Models

OpenRouter Unified API

Switch between Gemini, Claude, GPT, DeepSeek, and Llama with one OpenAI-compatible key.

Get Unified API Key →

Lower-Cost Alternatives to OpenAI: GPT-5.1-Codex