Skip to main content

Overview

Generate images from text prompts using the command line.
The CLI has not yet picked up the Python defaults from PR #6262: --model still defaults to dall-e-3 (retired by OpenAI on 2026-05-12) and --quality to standard (only standard/hd accepted). Because quality is now forwarded to every model, and GPT image models don’t accept standard, the CLI cannot generate with current OpenAI models yet. Use the Python API, which defaults to gpt-image-2.5-flare and sends quality only when set, until the CLI is updated.

Commands

Basic Image Generation

With Model Selection

With Size

With Quality

Save to File

Options

Examples