Skip to content

GPT-5-Codex

GPT-5-Codex is a GPT-5 family model specialized for autonomous software engineering, designed to operate as a coding agent that reads repositories, writes code, executes tests, and iterates on solutions in sandboxed environments.

File InputReasoningTool UseVision (Image)Implicit Caching
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'openai/gpt-5-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
Azure
Legal:Terms
Privacy
400K
0.7s
$1.25/M$10.00/M
Read:$0.13/M
Write:
$14/K
+ input costs
09/15/2025
OpenAI
Legal:Terms
Privacy
400K
0.5s
81tps
$1.25/M$10.00/M
Read:$0.13/M
Write:
$10.00/K
+ input costs
09/15/2025