Skip to content

GPT-5.1 Codex

Tools
openai/gpt-5.1-codex

Vision · 400K context · Nov 2025 · 15 upstreams

GPT-5.1 Codex is OpenAI's version of GPT-5.1 for agentic coding in the Codex environment. 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.1 Codex, add a key from OpenCode Zen, Cline, Vercel AI Gateway or 12 more. AnyRouter adds no fee.
context
400K
input / 1M (list)
$1.25
output / 1M (list)
$10.00
routes
15
speed, 24h
No data yet

Upstreams

15
  1. 1OpenCode ZenYour keynot addedBilled to your key
  2. 2ClineYour keynot addedBilled to your key
  3. 3Vercel AI GatewayYour keynot addedBilled to your key
  4. 4OpenRouterYour keynot addedBilled to your key
  5. 5Nous ResearchYour keynot addedBilled to your key
  6. 6InfronYour keynot addedBilled to your key
  7. 7LLM GatewayYour keynot addedBilled to your key
  8. 8AI/ML APIYour keynot addedBilled to your key
  9. 9AIHubMixYour keynot addedBilled to your key
  10. 10OcarRouterYour keynot addedBilled to your key
  11. 11ZenMuxYour keynot addedBilled to your key
  12. 12NanoGPTYour keynot addedBilled to your key
  13. 13FluenceYour keynot addedBilled to your key
  14. 14HeliconeYour keynot addedBilled to your key
  15. 15Jiekou.AIYour keynot addedBilled to your key

Benchmarks

GPQA Diamond
86.0%
LiveCodeBench
84.9%
AIME
95.7%
HLE
23.4%

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.1-codex",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'

Details

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