


POST /v1/wand/videos/previs, which returns a task_id upon success.POST /v1/wand/videos/previs/query with the task_id until the status is success or failed. Upon success, obtain the video URL from video_url and the Blender project file URL from blender_url.task_id from the previous round into settings.previous_task_id in the next submission.Model Name | Model (API Parameter) | Supported Input | Video Duration (s) | Recommended | Output |
WAND-Vega-Previs-1.0-pro | wand-vega-previs-1.0-pro | Text, reference images, and Blender project files | 60s | Suitable for high-quality video generation in cinematic and complex scenes, with refined polishing. | MP4 video, Blender project file, and previsualization description (brief.md) |
WAND-Vega-Previs-1.0-flash | wand-vega-previs-1.0-flash | Text, reference images, and Blender project files | 60s | Suitable for generating simple scenes such as short videos and short dramas, with a focus on speed and spatial/character positioning. | MP4 video, Blender project file, and previsualization description (brief.md) |
WAND-Vega-Previs-1.0-lite | wand-vega-previs-1.0-lite | Text and reference images | 60s | Suitable for scenes with small-space conversations and fewer characters, focusing on cost-effectiveness and lightweight use. The Lite version output provides only white-model videos. | MP4 video and previsualization description (brief.md) |
POST https://tokenhub-intl.tencentcloudmaas.com/v1/wand/videos/previsParameter Name | Required | Type | Description |
model | Yes | string | Model name. Value: wand-vega-previs-1.0-pro wand-vega-previs-1.0-flash wand-vega-previs-1.0-lite |
contents | Yes | array[object] | Multimodal input array. It must contain at least one type=text element because text prompts are required for generation. For details, see contents array element parameters. |
settings | No | object | Generation settings. The entire object can be omitted. If not passed, it is equivalent to: first-round generation + PRO tier + default aspect ratio. For details, see settings object fields. |
contents is an array distinguished by type. The structure of each element is as follows:Parameter Name | Required | Type | Description |
type | Yes | string | Element type. Valid values: text, image_url, blender_url. Other values return 400. |
text | Yes | string | Text prompt. Required. When multiple text elements exist, they are concatenated in array order to form the complete prompt, with a maximum of 100,000 characters after concatenation. |
image_url | No | string | Reference image URL. Up to 30 images can be passed in, and the URL can contain up to 2,048 characters. |
blender_url | No | string | Blender file URL. Up to one can be passed in, and it can only be passed in when the task is first created, not in multi-round editing. The URL can contain up to 2,048 characters. |
Parameter Name | Required | Type | Description |
settings.aspect_ratio | No | string | Aspect ratio. Recommended values are in the format of 16:9, 9:16, or 1:1. If not specified, the default ratio is used. Maximum 16 characters. Spaces or control characters are not allowed; otherwise, 400 is returned. Unsupported ratios are generated using the default ratio. |
settings.previous_task_id | No | string | In multi-turn follow-up scenarios, pass the task_id of the previous task. If not passed, the first-turn generation is assumed. Maximum 64 characters. The previous task must be created by the current account and have been generated successfully (status=success). |
contents array contains only type=text elements and no settings are passed, the video is generated with the default aspect ratio.curl -X POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/wand/videos/previs' \\-H 'Content-Type: application/json' \\-H 'Authorization: Bearer YOUR_API_KEY' \\-d '{"model": "wand-vega-previs-1.0-pro","contents": [{"type": "text","text": "A robot slowly walks toward the camera on a rainy night street, with the camera slowly pushing in"}],"settings": {"aspect_ratio": "16:9"}}'
type=image_url or type=blender_url elements in contents.type=text element to describe previsualization intent such as camera movement and character actions.curl -X POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/wand/videos/previs' \\-H 'Content-Type: application/json' \\-H 'Authorization: Bearer YOUR_API_KEY' \\-d '{"model": "wand-vega-previs-1.0-pro","contents": [{"type": "text","text": "Referring to the character design in the reference image, the character walks from the door to the window in the Blender scene, with the camera slowly pushing in"},{"type": "image_url","url": "https://example.com/character.png"},{"type": "blender_url","url": "https://example.com/scene.blend"}],"settings": {"aspect_ratio": "9:16"}}'
task_id returned from the previous submission into settings.previous_task_id, and describe the modification requirements for this round in contents.status=success). If it is still in progress or has failed, a 409 error is returned.curl -X POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/wand/videos/previs' \\-H 'Content-Type: application/json' \\-H 'Authorization: Bearer YOUR_API_KEY' \\-d '{"model": "wand-vega-previs-1.0-pro","contents": [{"type": "text","text": "Change the camera to pan from left to right"}],"settings": {"previous_task_id": "1300000000-WmVideo-d4906359699a3e8934e5a169c7500ec9","aspect_ratio": "16:9"}}'
task_id and does not contain an error field.Parameter Name | Type | Description |
task_id | string | Task ID, used to poll the task status and passed in as settings.previous_task_id during multi-turn follow-up questions. |
request_id | string | ID of the current request, used for troubleshooting. |
{"task_id": "1300000000-WmVideo-d4906359699a3e8934e5a169c7500ec9","request_id": "req_5b0e1c9a3f2d4e6b8a7c1d2e3f4a5b6c"}
task_id is returned, poll the task status through this API. Upon success, obtain the output URLs from video_url, blender_url, brief_url .POST https://tokenhub-intl.tencentcloudmaas.com/v1/wand/videos/previs/queryParameter Name | Required | Type | Description |
task_id | Yes | string | Task ID, which is the task_id returned when the task is submitted. Only tasks created by the current account can be queried. |
curl -X POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/wand/videos/previs/query' \\-H 'Content-Type: application/json' \\-H 'Authorization: Bearer YOUR_API_KEY' \\-d '{"task_id": "1300000000-WmVideo-d4906359699a3e8934e5a169c7500ec9"}'
Parameter Name | Type | Description |
status | string | Task status. Values: processing (generating), success (generation succeeded), failed (generation failed). |
video_url | string | Download URL of the generated video (MP4). Empty string when the output is not ready. |
blender_url | string | Download URL of the Blender project file, which can be imported into Blender for secondary editing. Empty string when the output is not ready. |
brief_url | string | Download URL of the previsualization description file (brief.md), which is a prompt file expanded from the original input prompt. Empty string when not ready. It can be used as a reference for prompt expansion in white-model-to-video generation. |
usage | object | Total Token usage of this session. This field is not returned when no usage is generated. |
usage.input_tokens | integer | Total number of input tokens, including tokens that miss the cache and tokens that hit the cache. |
usage.cached_read_tokens | integer | Number of tokens that hit the cache in the input, which is a subset of input_tokens. |
usage.cached_write_tokens | integer | Total number of tokens written to the cache. |
usage.output_tokens | integer | Total number of output tokens. |
error_message | string | Failure reason description, which is non-empty only when status=failed. |
status=processing, it is normal for video_url to already be non-empty: the output URL is written before the status update, so you can download it as soon as it is non-empty without waiting for status=success.{"status": "success","video_url": "https://example.cos.ap-guangzhou.myqcloud.com/out.mp4","blender_url": "https://example.cos.ap-guangzhou.myqcloud.com/scene.blend","brief_url": "https://example.cos.ap-guangzhou.myqcloud.com/brief.md","usage": {"input_tokens": 135000,"cached_read_tokens": 90000,"cached_write_tokens": 28000,"output_tokens": 3200}}
http body status code of 200, and the error information is in the error field of the response body. A response body without the error field indicates a successful call.{"error":{"code":404,"message":"task not found"}}
error.code | Meaning | Handling Recommendation |
401 | Authentication failed: the Authorization header is missing, or the API Key is invalid / expired. This error is returned at the gateway layer, and the error code is subject to the gateway. | Check whether Authorization: Bearer <API Key> is correct and within its validity period. |
400 | Invalid request parameters: missing required fields, unsupported type, field length exceeded, settings.aspect_ratio contains spaces, the task referenced by settings.previous_task_id does not exist or does not belong to the current account, and so on. | Check the valid value range of each parameter in this document and retry. |
404 | The queried task does not exist or does not belong to the current account. | Confirm that task_id is correct and was created by the current account. |
409 | During multi-turn follow-up questions, the task referenced by settings.previous_task_id has not been generated successfully (it is still being generated or has failed). | Wait until the previous task reaches status=success before submitting. If the previous task failed, initiate a new first-turn generation. |
500 | An internal service error has occurred. | Retry. If the failure persists, contact technical support. |
previous_task_id passed in that round.status=success. If the previous task has failed, initiate a new first-round generation.Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan