task_id upon success.Querying the Task Result API with the task_id until status = completed, and then obtain the image URL from the result.Model Name | Model (API Parameter) | Supported Capability | Prompt Limit | Resolution | Aspect Ratio |
WAND-Vega-Image-1.0-Lite | wand-vega-image-lite | Text-to-image/reference-based image generation | 2000 characters | 1K / 2K / 4K | Supports common sizes such as 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, and 21:9. For details, see List of Preset Sizes. |
WAND-Vega-Image-1.0-Flash | wand-vega-image-flash | Text-to-image/reference-based image generation | 2000 characters | 1K / 2K / 4K | |
WAND-Vega-Image-1.0-Pro | wand-vega-image-pro | Text-to-image/reference-based image generation | 2000 characters | 1K / 2K / 4K | |
POST https://tokenhub-intl.tencentcloudmaas.com/v1/wand/vega-images/generationsParameter Name | Required | Type | Description |
model | Yes | string | Model ID. Values: wand-vega-image-lite wand-vega-image-flash wand-vega-image-pro |
prompt | Yes | string | Text prompt, with a length of no more than 2000 characters. If images is not passed, image generation is performed based on this text. |
input | No | array[object] | Array of multimodal input content, used for image-to-image / reference image scenarios. |
input.content | No | array[object] | Array of input content segments, concatenated in order to form a multimodal prompt. |
input.content.type | No | string | Content type. Values: input_image (reference image). |
input.content.image_url | No | string | Reference image URL. lite: 0 to 3 images, flash/pro: 0 to 6 images. Format: png/jpeg. Size: no more than 10 MB. |
size | No | string | Output image size, in the format ${width}x${height}. |
curl -X POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/wand/vega-images/generations' \\-H 'Authorization: Bearer YOUR_API_KEY' \\-H 'Content-Type: application/json' \\-d '{"model": "wand-vega-image-lite","prompt": "A detailed painting of a butterfly","size": "1024x1024"}'
curl -X POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/wand/vega-images/generations' \\-H 'Authorization: Bearer YOUR_API_KEY' \\-H 'Content-Type: application/json' \\-d '{"model": "wand-vega-image-lite","prompt": "A seamless composition of all reference images","input": [{"content": [{"type": "input_image","image_url": "https://example.com/reference.jpg"}]}],"size": "1024x1024"}'
Parameter Name | Type | Description |
task_id | string | Task ID generated by WAND-Vega image generation, used for subsequent task queries and callback matching. |
request_id | string | Unique request identifier used for troubleshooting. |
{"task_id":"251380669-VegaImage-f91e7435e1e34dfa9898a451946bb3d3","request_id":"5b7c57a3-e5e4-4df0-958b-e72d35582be1"}
task_id, poll this API to obtain the results.GET https://tokenhub-intl.tencentcloudmaas.com/v1/wand/vega-images/tasks/<task_id>{task_id} in the path is the task_id returned when the task is submitted (in the example, YOUR_TASK_ID is used as a placeholder). Image generation takes approximately several seconds to tens of seconds, so it is recommended to poll every 3 to 5 seconds.Parameter Name | Required | Type | Description |
task_id | Yes | string | Task ID (path parameter), which is the task_id returned when the task is submitted. |
curl -X GET 'https://tokenhub-intl.tencentcloudmaas.com/v1/wand/vega-images/tasks/<task_id>' \\-H 'Authorization: Bearer YOUR_API_KEY' \\-H 'Content-Type: application/json'
Field | Type | Description |
status | string | Processing status: queued/in_progress/completed/failed/cancelled/incomplete. queued: The task has been accepted and is queued for execution. in_progress: The task is being processed. completed: The task has been completed successfully. You can read data[].url to obtain the generated image.failed: The task failed to execute. cancelled: The task has been cancelled. incomplete: The task was interrupted/not completed (for example, when the token limit is reached). |
request_id | string | Unique request identifier used for troubleshooting. |
data | array[object] | List of generated results. |
data[].url | string | Download URL of the generated image. It is a temporary URL with a signature. Download and store it promptly. |
usage | object | Usage consumption. |
usage.total_tokens | integer | Number of tokens consumed by this task, used for billing/reconciliation. |
created_at | string | Task creation time. |
finished_at | string | Task completion time. |
{"task_id": "251380669-VegaImage-68a067d14b3c43c0961ce83373709f44","status": "completed","request_id": "92aa30e9-7549-4319-a0eb-467302d446f5","data": [{"url": "https://aigc-image.cos.myqcloud.com/xxx/result.png"}],"usage": {"total_tokens": 16200},"created_at": 1787560807,"finished_at": 1787560820}
Aspect Ratio | 1K Resolution | 2K Resolution | 4K Resolution |
1:1 | 1024×1024,1080×1080 | 2048×2048,2160×2160 | 4096×4096 |
2:3 | 1024×1536,1080×1620 | 1440×2160 | 3328×4992 |
3:2 | 1536×1024,1620×1080 | 2160×1440 | 4992×3328 |
3:4 | 1080×1440 | 1440×1920,2160×2880 | 3584×4800 |
4:3 | 1440×1080 | 1920×1440,2880×2160 | 4800×3584 |
9:16 | 720×1280,1080×1920 | 1440×2560 | 2160×3840 |
16:9 | 1280×720,1920×1080 | 2560×1440 | 3840×2160 |
21:9 | 1512×648 | 2520×1080 | 5040×2160 |
フィードバック