GPT-5 nano is the fastest and most cost-efficient version of GPT-5 from OpenAI, designed for speed-sensitive and cost-sensitive workloads such as summarization, classification, extraction, tagging, and high-volume lightweight automation. It supports text and image inputs with text output, a 400,000-token context window, and up to 128,000 output tokens. With reasoning token support, streaming, function calling, and structured outputs, GPT-5 nano is well suited for large-scale AI products that need low latency, low cost, reliable instruction following, and efficient processing of simple to moderately complex tasks.
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