If you do not have an API Key yet, read Get API Key first.
View image generation model pricing: International site.
Generation vs editing
- Image generation creates new images from a text prompt.
- Image editing modifies an existing image. It requires an
imageinput and may also use amask.
Integration order
- Call Image generation models.
- Copy
data[n].namefrom the model list and pass it asmodel. - Choose size, quality, and style from the same model item.
- Call Generate image, or call Async image generation.
- For async requests, use
data.logIdto call Image task status.

