Vidu Q2 Turbo - Video Extension
viduq2-turbo-extend
Vidu Q2 Turbo Extend provides rapid video extension with optimized processing, preserving motion flow and visual quality.
Эндпоинты
Заголовок раздела «Эндпоинты»POST /v1/queue/viduq2-turbo-extend # Создать задачуGET /v1/queue/viduq2-turbo-extend/requests/{request_id}/status # Проверить статусGET /v1/queue/viduq2-turbo-extend/requests/{request_id}/response # Получить результатPUT /v1/queue/viduq2-turbo-extend/requests/{request_id}/cancel # Отменить задачуПараметры запроса
Заголовок раздела «Параметры запроса»curl --request 'POST' 'https://odirouter.ai/model/v1/queue/viduq2-turbo-extend' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --location \ --data-raw '{ "video_url": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4", "prompt": "A clean studio shot of a red apple on a white table, soft natural light.", "duration": 5, "resolution": "720p"}'video_creation_id string
Заголовок раздела «video_creation_id string»Vidu video ID, one of video_url or video_creation_id is required
video_url string
Заголовок раздела «video_url string»Any video URL, one of video_url or video_creation_id is required
Note: Video duration must be at least 4 seconds and no more than 1 minute
images array
Заголовок раздела «images array»Reference image for extending to the end frame, the model will use the image passed in this parameter as the end frame to extend the video
Format Requirements:
Supports Base64 encoding or image URL (must be accessible)
Only supports input of 1 image
Supported formats: png, jpeg, jpg, webp
Image aspect ratio must be less than 1:4 or 4:1
Image size must not exceed 50MB
HTTP request POST body must not exceed 20MB, and encoding must include appropriate content type string. Example: data:image/png;base64,{base64_encode}
prompt string
Заголовок раздела «prompt string»Extension prompt to control the extended video content
resolution string
Заголовок раздела «resolution string»Video resolution
Options: 540p, 720p, 1080p
Default: 720p
duration integer
Заголовок раздела «duration integer»Extension duration in seconds
Options: 1 - 7
Default: 5
watermark boolean
Заголовок раздела «watermark boolean»Whether to add a watermark. When true, a watermark is added; when false, no watermark is added
Currently watermark content is fixed and AI-generated, by default no watermark is added
Options: true, false
Default: false
wm_url string
Заголовок раздела «wm_url string»Watermark content, provided as a watermark image URL, this parameter is invalid if watermark is not added
When watermark is enabled but custom watermark URL is not provided, the default AI-generated watermark is used
wm_position string
Заголовок раздела «wm_position string»Watermark position, this parameter is invalid if watermark is not added
Options: top_left (Top-left), top_right (Top-right), bottom_right (Bottom-right), bottom_left (Bottom-left)
Default: bottom_left
meta_data string
Заголовок раздела «meta_data string»Metadata identifier, JSON format string, pass-through field
You can customize the format or use the example format. Example:
{ "Label": "your_label", "ContentProducer": "yourcontentproducer", "ContentPropagator": "your_content_propagator", "ProduceID": "yourproductid", "PropagateID": "your_propagate_id", "ReservedCode1": "yourreservedcode1", "ReservedCode2": "your_reserved_code2"}When this parameter is empty, the default metadata identifier generated by vidu is used
payload string
Заголовок раздела «payload string»Pass-through parameter, no processing required, only data transmission, maximum 1048576 characters
callback_url string
Заголовок раздела «callback_url string»Callback URL
Параметры ответа
Заголовок раздела «Параметры ответа»{ "request_id": "task_01hxyz...", "response_url": "https://odirouter.ai/model/v1/queue/viduq2-turbo-extend/requests/task_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/viduq2-turbo-extend/requests/task_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/viduq2-turbo-extend/requests/task_01hxyz.../cancel", "queue_position": 0}| Поле | Тип | Описание |
|---|---|---|
request_id | string | Идентификатор задачи для последующей проверки статуса, получения результата и отмены. |
response_url | string | URL для получения итогового результата. |
status_url | string | URL для проверки статуса задачи. |
cancel_url | string | URL для отмены задачи. |
queue_position | int | Текущая позиция в очереди. |