GPT-5.2 is OpenAI’s previous frontier model for complex professional work, designed to provide strong reasoning, coding, research, and long-context performance with configurable reasoning effort. It supports text and image inputs with text output, a 400,000-token context window, and up to 128,000 output tokens. GPT-5.2 supports reasoning effort levels from none to xhigh, along with streaming, function calling, and structured outputs, making it suitable for professional coding, advanced research, complex agent workflows, long-context document analysis, knowledge work, multimodal analysis, and high-quality business applications.
Generate image
All API requests must be authenticated using a Bearer token in the Authorization header. Please ensure your API key is active.Authorization: Bearer sk-xxxxxx
These parameters come from the selected model form_schema. Switching models updates this list and the request example.
system_prompt?stringGlobal instructions or persona for the model.
prompt*stringimage_urls?arraySupports multi-image understanding (optional).
image_detail?stringreasoning_effort?stringControls how much reasoning effort the model spends before answering.
verbosity?stringControls how verbose the response is.
max_completion_tokens?numberresponse_format?stringstream?booleancreated?integerParameter description for Created
data?arrayParameter description for Data