- Model
openai/gpt-5.1-codex- Provider
vercel-ai-gateway- API
anthropic-messages- Base URL
https://ai-gateway.vercel.sh- Input
- text, image
- Reasoning
- Yes
- Context window
- 400,000
- Max tokens
- 128,000
- Cost / million input
- $1.25
- Cost / million output
- $10
- Cost / million cache read
- $0.125
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"vercel-ai-gateway": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "openai/gpt-5.1-codex",
"name": "GPT-5.1-Codex",
"reasoning": true,
"input": [
"text",
"image"
],
"contextWindow": 400000,
"maxTokens": 128000,
"cost": {
"input": 1.25,
"output": 10,
"cacheRead": 0.125,
"cacheWrite": 0
}
}
],
"api": "anthropic-messages",
"baseUrl": "https://ai-gateway.vercel.sh"
}
}
}