Qwen โ
Endpoint: POST https://mps.intl.tencentcloudapi.comAction: CreateAigcImageTask
Qwen Image is an image generation model that supports text-to-image and reference-image generation, with output sizes from 512ร512 to 2048ร2048.
Basic Information โ
| Item | Value |
|---|---|
| ModelName | Qwen |
| ModelVersion | 0925 |
| Guardrail removal support | Not supported |
Specifications Supported by Version โ
| Version | Output Specification | Input and Conditions |
|---|---|---|
| Common | Aspect ratio: 1:1 / 16:9 / 9:16 / 4:3 / 3:4Custom size: VOD size: 512ยฒโ2048ยฒ range. For MPS, use the example value at that path | โ |
A general-purpose image generation engine.
Request Parameters โ
| Parameter | Required | Type | Description |
|---|---|---|---|
ModelName | Required | String | Fixed value Qwen |
ModelVersion | Optional | String | 0925 |
Prompt | Required | String | Generation prompt. Maximum 1000 characters |
EnhancePrompt | Optional | Boolean | Automatic prompt correction. Default value false |
ImageInfos.N | Optional | Array | Reference image array. Used for image-to-image and reference-based generation |
ExtraParameters | Optional | Object | Output options such as Resolution / AspectRatio |
AdditionalParameters | Optional | String | A JSON string containing model-specific options. For the seed delivery format, see Additional Configuration |
Request Example โ
json
{
"ModelName": "Qwen",
"ModelVersion": "0925",
"Prompt": "a young woman in traditional hanbok standing by a moonlit lake",
"EnhancePrompt": true,
"ExtraParameters": {
"Resolution": "1080P",
"AspectRatio": "16:9"
},
"Operator": "admin",
"StoreCosParam": {
"CosBucketName": "<bucket-appid>",
"CosBucketRegion": "<bucket-region>",
"CosBucketPath": "/aigc/"
}
}Reference Image Request โ
json
{
"ModelName": "Qwen",
"ModelVersion": "0925",
"Prompt": "Change the background to a quiet garden; preserve the subject.",
"EnhancePrompt": true,
"ExtraParameters": {
"Resolution": "1080P",
"AspectRatio": "16:9"
},
"Operator": "admin",
"StoreCosParam": {
"CosBucketName": "<bucket-appid>",
"CosBucketRegion": "<bucket-region>",
"CosBucketPath": "/aigc/"
},
"ImageInfos": [
{
"ImageUrl": "https://<host>/reference.jpg"
}
]
}Response Example โ
json
{
"Response": {
"Status": "DONE",
"Message": "ok",
"ImageUrls": [
"https://aigc-output-image-<id>.cos.<region>.myqcloud.com/<file>.png?q-sign-algorithm=sha1&..."
],
"RequestId": "<request-id>"
}
}