Image generation
Image generation
The image endpoints are compatible with the OpenAI Images API.
Image endpoints are only available to keys in OpenAI or Grok platform groups. Other groups receive 404 Images API is not supported for this platform.
Generate an image
Edit an image
POST /v1/images/edits accepts multipart/form-data with the source image (and an optional mask) plus a prompt, using the same parameters as OpenAI.
Asynchronous tasks
High-resolution images can take a while. If asynchronous image tasks are enabled on this site, submit a task and poll for the result instead of holding a long connection:
Request bodies match the synchronous endpoints. Sites without the feature return 404.
Batch images
To generate many images at once, upload a job on the Batch Images page of the dashboard, or use the /v1/images/batches endpoints to submit batches, track progress and download results.