POST /api/v1/images/generations with model: gpt-image-2-5-flare for text to image, or add image_list to edit up to 16 reference images. Pick a resolution tier and a quality level, and read the finished image from the job by its img_uuid.POST /api/v1/images/generations with model: gpt-image-2-5-flare for text to image, or add image_list to edit up to 16 reference images. Pick a resolution tier and a quality level, and read the finished image from the job by its img_uuid.
quality accepts low (default), medium, high, xhigh and max; image_size accepts 1k (default), 2k and 4k. Iterate on prompts at 1k low for 0.32 token ($0.0064) per image, then re-run the chosen prompt at a higher tier.

Set background to transparent to get a PNG that keeps its alpha channel, ready for product listings, stickers and layered layouts. The price is the same as an opaque image.

Pass image_list as [{"url": "https://…"}] with 1 to 16 images, each under 50 MB, and describe the change in prompt. With ratio: auto the output follows the reference image's shape.

Authorization: Bearer <key> from your server.image_size and quality for the job; start at 1k and low while testing prompts, and add background: transparent for cut-outs.{"model": "gpt-image-2-5-flare", "prompt": "…"} to /api/v1/images/generations, plus image_list when editing, and save the returned img_uuid.GET /api/v1/jobs/detail or wait for your callback. On success, download the image from json[0].value within 24 hours, before link_expired_at.