Wan and Qwen picture model
Access Wan and Qwen picture models according to the actual model and channel configuration of this site.
Wan and Qwen image models are generated, edited and multi-modally capable depending on the specific version. The Alibaba Cloud task plug-in on this site provides a native entrance and can provide a unified image protocol for the models supported by the statement.
Step one: Determine the model and protocol
First query the real ID to distinguish between Wan generation, Qwen pictures or editing models. Confirm that the corresponding channels and prices are enabled on this site, and then select native or unified entrance.
Step 2: Unify the minimum image request
curl --fail-with-body https://dunduntoken.com/v1/images/generations -H "Authorization: Bearer $DUNDUN_API_KEY" -H "Content-Type: application/json" -d '{"model":"WAN_OR_QWEN_IMAGE_MODEL_ID","prompt":"自然光下的蓝色陶瓷杯","n":1}'
Only used for models bound to this unified protocol. Edit using images/edits and submit materials by model.
How to choose the native entrance
| Path Category | Contents to Check |
|---|---|
| multimodal-generation/generation | messages content block and output type |
| image-generation/generation | Current image generation schema |
| text2image/image-synthesis | Text2image input and parameters |
| image2image/image-synthesis | Image editing materials and operation structures |
The native path of the plug-in on this site is located under /ali/api/v1/services/aigc/, and the path categories in the table cannot be regarded as a general schema. The native asynchronous task queries /ali/api/v1/tasks/{id} using the returned gateway ID, and the synchronization results should be saved immediately.
Acceptance and troubleshooting
For unified responses, view data, and for native responses, view fields such as output, without mixed parsing. When interleaving text and images, only the actual image load is used as the result. If the material capture fails, check the URL and validity period; if the parameters fail, first distinguish the model and interface version used.