# Images ## Generate **post** `/images/generations` Creates a high-quality image from a text prompt using GPT-IMAGE-1, the latest image generation model with automatic prompt optimization and enhanced visual capabilities. ### Returns - `created: number` The Unix timestamp (in seconds) of when the images were created - `data: array of object { b64_json, revised_prompt }` The list of generated images - `b64_json: string` The base64-encoded JSON of the generated image. GPT-IMAGE-1 returns images in b64_json format only. - `revised_prompt: optional string` The optimized prompt that was used to generate the image. GPT-IMAGE-1 automatically optimizes prompts for best results. - `background: optional string` The background setting used for the image generation - `output_format: optional string` The output format of the generated image - `quality: optional string` The quality setting used for the image generation - `size: optional string` The size of the generated image - `usage: optional object { input_tokens, total_tokens, input_tokens_details, output_tokens }` Usage statistics for the image generation request - `input_tokens: number` Number of tokens in the input prompt - `total_tokens: number` Total number of tokens used (input + output) - `input_tokens_details: optional object { text_tokens }` Detailed breakdown of input tokens - `text_tokens: optional number` Number of text tokens in the input - `output_tokens: optional number` Number of tokens in the generated output