GPT Image 2
OpenAI gpt-image-2 image generation model. 1K / 2K / 4K resolutions with three quality tiers, up to 6 reference images.
Documentation Index
Fetch the complete documentation index at: https://docs.imini.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Pass Authorization: Bearer <YOUR_API_KEY> in the request header. Go to the API Keys management page to create and manage API Keys.
Body
Fixed value openai/gpt-image-2.
The prompt. Up to 32000 characters. Supports English and Chinese; detail-rich descriptions yield better results.
"A majestic snow-capped mountain at golden hour, ultra-realistic photography"
Output resolution tier (required): 1K / 2K / 4K.
1K, 2K, 4K Output aspect ratio (required). Allowed values:
1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9 9:21
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 9:21 Rendering quality (required):
-
low— fastest and cheapest, for drafts and batch generation -
medium— balanced -
high— most detailed, for finals and cover art
Quality is orthogonal to resolution: within a given resolution, quality only changes visual detail and cost, not the output dimensions.
low, medium, high Reference image list. Omitting or passing an empty array means text-to-image mode; passing images switches to image-to-image / style reference mode. Up to 3 images.
3Number of images to generate per call, 1-10.
1 <= x <= 10Response
Submitted successfully
Unique task ID, used for subsequent polling
"task_2041350318103396352"
The model ID used for this task
"openai/gpt-image-2"
Task creation time
"2026-04-23T03:00:17.062Z"
Unique request ID
"285f20ce-8158-401b-945c-7bc6a7ef6ead"

