Skip to content

GPT-5 Codex

Tools
openai/gpt-5-codex

Vision · 400K context · Sep 2025 · 7 upstreams

GPT-5 Codex is OpenAI's version of GPT-5 for agentic coding in Codex and similar environments. It has a 400,000-token input context and 128,000 output tokens, with text and image input. It supports reasoning tokens, streaming, function calling and structured outputs.

Needs your own keyTo use GPT-5 Codex, add a key from OpenCode Zen, Vercel AI Gateway, Infron or 4 more. AnyRouter adds no fee.
context
400K
input / 1M (list)
$1.25
output / 1M (list)
$10.00
routes
7
speed, 24h
No data yet

Upstreams

7
  1. 1OpenCode ZenYour keynot addedBilled to your key
  2. 2Vercel AI GatewayYour keynot addedBilled to your key
  3. 3InfronYour keynot addedBilled to your key
  4. 4ZenMuxYour keynot addedBilled to your key
  5. 5AIHubMixYour keynot addedBilled to your key
  6. 6HeliconeYour keynot addedBilled to your key
  7. 7Jiekou.AIYour keynot addedBilled to your key

Benchmarks

GPQA Diamond
83.7%
LiveCodeBench
84.0%
AIME
98.7%
HLE
25.6%

Quick start

curl
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "openai/gpt-5-codex",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'

Details

Owner
OpenAI
Kind
Vision
Released
Sep 2025
Context
400K
Data policy
Provider retention
Endpoint
/api/v1/chat/completions