GPT-5.4 pro is the advanced version of GPT-5.4 from OpenAI, designed to use more compute for deeper reasoning and consistently smarter, more precise responses. It supports text and image inputs with text output, a 1,050,000-token context window, and up to 128,000 output tokens. GPT-5.4 pro supports reasoning effort levels of medium, high, and xhigh, and is best suited for the hardest reasoning tasks, advanced research, complex coding, deep analysis, long-context workflows, and professional applications that require maximum answer quality and reliability.
Create chat completion
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?stringTop-level `instructions` for the Responses API; sets global model behavior.
prompt*stringimage_urls?arraySupports multi-image understanding (optional).
image_detail?stringreasoning_effort?stringControls how much reasoning effort the model spends before answering.
reasoning_summary?stringReturns a summary of the model reasoning process (Responses-only).
verbosity?stringControls how verbose the response is.
max_output_tokens?numberresponse_format?stringstore?booleanWhether to store this response for later retrieval (defaults on for Responses).
topic?stringWritten to metadata.topic for dashboard filtering (Responses-only).
background?booleanRun the response asynchronously in the background (for Pro models).
stream?booleanid?stringParameter description for Id
object?stringParameter description for Object
created?integerParameter description for Created
model?stringModel ID used
choices?arrayParameter description for Choices
usage?objectParameter description for Usage
prompt_tokens?integerParameter description for Prompt Tokens
completion_tokens?integerParameter description for Completion Tokens
total_tokens?integerParameter description for Total Tokens
prompt_tokens_details?objectParameter description for Prompt Tokens Details
completion_tokens_details?objectParameter description for Completion Tokens Details
system_fingerprint?stringParameter description for System Fingerprint
error?objectParameter description for Error
message?stringError Message
type?stringError Type
param?stringRelated Parameters
code?stringError Code
error?objectParameter description for Error
message?stringError Message
type?stringError Type
param?stringRelated Parameters
code?stringError Code