provider
Vidu
Direct answerProvides text-, image-, and reference-driven video generation alongside image and sound capabilities.
Updated · Reviewed
Separate Vidu-native APIs from this site's route
Vidu provides asynchronous text-to-video, image-to-video, subject reference, first/last-frame, audio, lip-sync, and extension workflows. Direct access uses Authorization: Token <API_KEY>. This site's /v1/videos is an adapted unified job route using this site's token. Do not mix native /ent/v2/* paths or fields into the gateway contract.
task_id and the state machine
Creation returns task_id and an initial state. Query creations with that ID: created means accepted, queueing is waiting, processing is generating, and success or failed is terminal. Read creations[] only after success; on failure preserve err_code, model, credits, and a redacted request. Poll with bounded backoff, a total deadline, and cancellation.
Verify callback HMAC
A reachable callback_url is not enough to trust a callback. The documented signature is Base64(HMAC-SHA256(TokenSecret, signingString)) and is carried in headers including X-HMAC-SIGNATURE. Rebuild the string from the exact method, URI, query, Date, and signed headers in documented order, compare in constant time, and validate Date plus x-request-nonce against replay. Callbacks can retry, so state writes must be idempotent.
Result URLs last only 24 hours
Generated url and cover_url values returned by task retrieval are valid for 24 hours, not permanent asset addresses. After success, stream the media server-side into object storage, validate type and size, then store your own URL. Retry download failures with bounds while the source URL is still valid.
Cost, queues, and safety
Model, duration, resolution, audio, and off-peak mode consume different credits. Excess work can enter queueing and is not necessarily failed. Validate asset format, size, aspect ratio, and rights before submission, and use a business idempotency key to prevent duplicate charges. Obtain consent for people, faces, voices, brands, and copyrighted material, with moderation and commercial-use records.
Reviewed provider catalog
Latest models by capability
These are provider-catalog models, not a promise of availability on this site. Confirm callable IDs, endpoints, and pricing in the model marketplace.
Image generation and editing
-
viduq2StableVidu's current image generation and editing model with text and up to seven references.
Video generation and editing
-
viduq3-proStableA high-quality ViduQ3 model with synchronized audio, smart cuts, and up to 16-second output.
-
viduq3-mixStableA balanced ViduQ3 model for multi-reference consistency and general creation.
-
viduq3-turboStableThe speed-oriented video model in the ViduQ3 family.
Use cases
- Text- and image-to-video
- Reference subject consistency
- Image and sound workflows
API protocols
/v1/videos
FAQ
Does direct Vidu access use Bearer or Token?
Use Authorization: Token <API_KEY>, not Bearer. This site's /v1/videos route uses this site's token, so the two authentication schemes are not interchangeable.
How is a Vidu task_id used to check progress?
Persist task_id after creation and query its creations. created, queueing, and processing are in progress; success and failed are terminal.
Can a Vidu callback be trusted from source IP alone?
No. Verify X-HMAC-SIGNATURE with the TokenSecret according to the documented Base64-encoded HMAC-SHA256 algorithm, and validate Date and nonce against replay.
Can a returned Vidu video URL be stored permanently?
No. The documented url and cover_url in task results are valid for 24 hours. Copy successful output promptly into your own object storage.
Should I use polling or callback_url?
Bounded polling works at small scale; production usually combines a signed callback with low-frequency fallback polling. Both paths need idempotent updates and duplicate-job protection.
Related guides
Official sources
- Vidu Model Map Official
- Vidu API Function List Official
- Vidu Text to Video API Official
- Vidu Get Creation API Official
- Vidu Callback Signature Official
兔子API