Skip to content
Dashboard

GPT-5.1-Codex

GPT-5.1-Codex is a GPT-5.1 generation coding agent model designed for autonomous software engineering, combining improved reasoning over the GPT-5 codex generation with the ability to read, write, execute, and verify code in sandboxed environments.

File InputTool UseReasoningVision (Image)Web SearchImplicit Caching
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'openai/gpt-5.1-codex',
prompt: 'Why is the sky blue?'
})

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
OpenAI
400K
0.5s
56tps
$1.25/M$10.00/M
Read:$0.13/M
Write:
$10.00/K
+ input costs
+4
11/12/2025
Azure
400K
0.6s
42tps
$1.25/M$10.00/M
Read:$0.13/M
Write:
$14/K
+ input costs
+4
11/12/2025