Endpoints and what they accept
| Endpoint | Use when | Required inputs |
|---|---|---|
| text-to-video | Pure prompt, no visual input | prompt, aspect_ratio, duration |
| image-to-video | Animate a single starting frame | prompt, first_frame, aspect_ratio, duration |
| reference-to-video | Hold characters and props consistent | prompt, up to 20 mixed-modality references, duration |
| document-to-video | Convert a slide deck or PDF to a video | document_reference, prompt, duration |
Minimal request
curl -X POST "https://api.oneinfer.ai/v1/ula/generate-video" \
-H "Authorization: Bearer $ONEINFER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "alibaba/wan3.0-video",
"prompt": "A quiet city street at golden hour as camera slowly pans up to the skyline",
"aspect_ratio": "16:9",
"resolution": "1080p",
"duration": 10
}'Reference inputs and what they cost
Each reference image, video clip, audio snippet or document adds to the input context but does not change the per-second bill. Use references to anchor character and prop consistency across the clip without inflating the bill.
Ready to test the workflow?
Audio in the same pass
Audio is generated alongside the picture in a single asynchronous call — no separate TTS step. Toggle audio on or off per request; off-mode is cheaper because no voice model is invoked.
Cost is driven by duration
Wan 3.0 bills by the second of generated video. Every added second raises cost roughly linearly on every tracked provider; pick the shortest duration that meets the brief before dialing resolution up.