models/Vidu/Vidu Template to Video
Vidu

Vidu Template to Video

video
Compare

Vidu Template to Video lets you create different effects by applying motion templates to your images.

MODALITIES
video
PER SECOND
$0.050

Vidu Template to Video (vidu/vidu-template-to-video) is a video model from Vidu. Pricing via AIgateway: $0.050 per second. Call it via https://api.aigateway.sh/v1/videos/generations — set model="vidu/vidu-template-to-video".

model · vidu/vidu-template-to-video

Use this model

model: vidu/vidu-template-to-video
curl https://api.aigateway.sh/v1/videos/generations \
  -H "Authorization: Bearer $AIGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"vidu/vidu-template-to-video","prompt":"a slow drone shot over a mountain lake","duration":5}'

Capabilities

Image to videoReference to video

Pricing

Per video second$0.050
You pay pass-through pricing.
See API example →CompareAPI referenceSee usage ranking →

Collections

More video models →More from Vidu →Frontier models →Free-tier models →
API schema

Call Vidu Template to Video from any OpenAI SDK

POST https://api.aigateway.sh/v1/videos/generations·Content-Type: application/json·Auth: Bearer sk-aig-...

Request body

json
{
  "model": "vidu/vidu-template-to-video",
  "prompt": "A drone shot of a mountain lake at golden hour",
  "duration": 5,  // seconds
  "aspect_ratio": "16:9"
}
// optional "image_url" to animate a seed image

// Response is an async job — poll /v1/jobs/<id> until status === "completed".

Response

json
{
  "id": "job_abc123",
  "status": "queued",        // queued | processing | completed | failed
  "model": "vidu/vidu-template-to-video",
  "created": 1776947082
}

// After completion:
{
  "id": "job_abc123",
  "status": "completed",
  "result": {
    "url": "https://media.aigateway.sh/video/abc123.mp4",
    "duration": 5,
    "resolution": "1920x1080"
  }
}

Quickstart

import os, requests

r = requests.post(
    "https://api.aigateway.sh/v1/videos/generations",
    headers={"Authorization": f"Bearer {os.environ['AIGATEWAY_API_KEY']}"},
    json={
        "model": "vidu/vidu-template-to-video",
        "prompt": "A drone shot of a mountain lake",
        "duration": 5,
        "aspect_ratio": "16:9"
    },
)
print(r.json())

Errors

401authentication_errorInvalid or missing API key
402insufficient_creditsWallet empty (PAYG only)
404not_foundUnknown model or endpoint
429rate_limit_errorOver per-minute limit — see Retry-After header
500server_errorUpstream provider failed (retryable)
503service_unavailableUpstream saturated (retryable)
Full docs →API reference →OpenAPI spec →llms.txt →

Frequently asked questions

What is Vidu Template to Video?
Vidu Template to Video lets you create different effects by applying motion templates to your images. It is a video model from Vidu, accessible via AIgateway's OpenAI-compatible API at slug vidu/vidu-template-to-video.
How much does Vidu Template to Video cost via AIgateway?
Pass-through pricing. See the pricing panel on this page for exact rates.
How do I call Vidu Template to Video from my code?
Point the OpenAI SDK at https://api.aigateway.sh/v1 with your AIgateway key and set model to "vidu/vidu-template-to-video". The request and response shapes match OpenAI exactly.
Does Vidu Template to Video support streaming, tool calling, vision, and JSON mode?
Streaming — no. Tool calling — no. Vision — no. JSON mode — no. Prompt caching — no.
Can I bring my own Vidu API key (BYOK)?
Yes. Attach a Vidu key in your AIgateway dashboard and this model flips to pass-through — you pay Vidu directly and AIgateway adds no platform fee on those calls.