Skip to main content

Text-to-image generation

Describe the image you want in a text prompt. The model generates an image based on your description:

Asynchronous image generation

Image generation is synchronous by default: the request waits until the image is ready.
For asynchronous processing, include the async parameter and set it to true:
Use the returned task ID to check the status of an asynchronous request and retrieve the result:
Once the task status is succeed, you can retrieve the generated image URL. For parameter details, see the Image API reference.