gpt-5.1-codex β API, Pricing & Context Window | Vivgrid
gpt-5.1-codex on Vivgrid: a Codex-tuned coding model on the Responses API with a 400K context window and three-region geo-distributed acceleration.
gpt-5.1-codex is OpenAI's Codex-tuned 5.1 coding model, designed for agentic software engineering through the Responses API. It is a well-rounded, cost-effective option for everyday coding agents.
Vivgrid accelerates gpt-5.1-codex across AMER, EMEA, and APAC β the broadest reach in the Codex line β with a 400K-token context window for project-scale sessions.
Specifications
| Provider | OpenAI |
| Model ID | gpt-5.1-codex |
| Best for | Coding |
| Context window | 400,000 tokens |
| Max output | 128,000 tokens |
| Modalities | Text, Image, Audio |
| Tool / function calling | Yes |
| Knowledge cutoff | 2024-09 |
| Acceleration | β‘ Geo-Distributed β AMER, EMEA, APAC |
Pricing
Pricing in USD per 1M tokens, matching the provider's rates.
| Input | Cached input | Output |
|---|---|---|
| $1.25 | $0.125 | $10.00 |
Quick start
Call gpt-5.1-codex through Vivgrid's unified, OpenAI-compatible endpoint. Get an API key from the Vivgrid Console.
curl https://api.vivgrid.com/v1/responses \
-H "Authorization: Bearer $VIVGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.1-codex",
"input": "Refactor this function and explain the change.",
"stream": true
}'Ideal use cases
- Day-to-day coding agents on the Responses API
- Globally distributed teams needing low latency in three regions
- Automated edits, reviews, and test generation
- Tool-calling workflows that chain editor and shell actions
Related models
- gpt-5.1-codex-max β extended-effort variant
- gpt-5.2-codex β the next Codex generation
- gpt-5.1 β general-purpose 5.1 model
gpt-5.1-codex-max
gpt-5.1-codex-max on Vivgrid: an extended-effort Codex coding model on the Responses API with a 400K context window and geo-distributed acceleration.
gpt-5.4-mini
gpt-5.4-mini on Vivgrid: a fast, low-cost GPT-5.4 model with a 400K context window, PDF and image input, and three-region acceleration.