Get an API key and set it as an environment variable. If using the SDK, install it. This async endpoint is supported only by
qwen-image-plus and qwen-image. All other models use the synchronous API.Workflow
- Submit a task via
POST /services/aigc/text2image/image-synthesiswith theX-DashScope-Async: enableheader. - Poll for results via
GET /tasks/{task_id}untiltask_statusreachesSUCCEEDEDorFAILED. Poll every 10 seconds.
Authorizations
string
header
required
DashScope API Key. Create one in the Qwen Cloud console.
Header Parameters
enum<string>
required
Must be set to enable for asynchronous task submission.
enable