OpenAI modelsResponses API model

openai/gpt-5.2-codex

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineeri...

Input⌘ / Ctrl + Enter

Try a prompt

128K max outputVision
Input $1.75/M · Output $14.00/M · Cache read $0.18/M
OutputReady

Your response will appear here

Choose an example or write a prompt, then click Run.

API details and access

Model Details

ProviderOpenAI
TypeLlm
Model IDopenai/gpt-5.2-codex

Capabilities

InputTextImage
OutputText
Context-
Max Output128,000
VisionSupported
Function CallingSupported

Access details

Responses API
Base URLhttps://api.sandbase.ai
API Endpoint/v1/responses
{
  "model": "openai/gpt-5.2-codex",
  "instructions": "You are a helpful assistant.",
  "input": "Hello",
  "max_output_tokens": 512
}

Pricing

Input$1.75 / 1M tokens
Output$14.00 / 1M tokens
Cache read$0.18 / 1M tokens

Related Models

openai/gpt-3.5-turboGPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to Sep 2021.openai/gpt-3.5-turbo-0613GPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to Sep 2021.openai/gpt-3.5-turbo-16kThis model offers four times the context length of gpt-3.5-turbo, allowing it to support approximately 20 pages of text in a single request at a higher cost. Training data: up to Sep 2021.openai/gpt-3.5-turbo-instructThis model is a variant of GPT-3.5 Turbo tuned for instructional prompts and omitting chat-related optimizations. Training data: up to Sep 2021.openai/gpt-4OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning capabilities. Training data: up to Sep 2021.openai/gpt-4-0314GPT-4-0314 is the first version of GPT-4 released, with a context length of 8,192 tokens, and was supported until June 14. Training data: up to Sep 2021.openai/gpt-4-1106-previewThe latest GPT-4 Turbo model with vision capabilities. Vision requests can now use JSON mode and function calling. Training data: up to April 2023.openai/gpt-4-turboThe latest GPT-4 Turbo model with vision capabilities. Vision requests can now use JSON mode and function calling. Training data: up to December 2023.