Generate an image
Generate one or more images. By default runs synchronously and returns them inline (200). Set async: true to run a single image on the background worker and get a 202 with a status URL to poll instead — use it for slow models (e.g. gpt-image high, imagen ultra) that can exceed the synchronous timeout. model and prompt are required; n (max 4; async is single-image), size/aspect_ratio, quality, and style are normalized, and everything in parameters is forwarded verbatim to the provider. image/mask/reference_images accept an http(s) URL, a data-URI, or a file_<id> for edit / image-to-image. response_format defaults to b64_json. Outputs are saved to /v3/files by default and returned with a reusable file_id; set store: false to opt out.
Authorizations
API key authentication. Pass your API key as a Bearer token.
Body
Run generation on the background worker and return a job to poll (202) instead of waiting inline (200). Use for slow models. Single-image only.
Persist each generated image to /v3/files and return a reusable file_id per image. Defaults to true; set false to skip.