Skip to content

Start End to Video

Shows how to generate a video that interpolates between a start frame and end frame.

This example assumes using Vidu; is in scope and apiKey contains your Vidu API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
using var client = new ViduClient(apiKey);

// Provide exactly two images - the start frame and the end frame.
// Aspect ratios must be between 0.8 and 1.25 of each other.
var task = await client.Generation.CreateStartEndToVideoTaskAsync(
    model: Model.Viduq3Turbo,
    images: new List<string>
    {
        "https://prod-file.vidu.studio/static/images/home/start.png",
        "https://prod-file.vidu.studio/static/images/home/end.png",
    },
    prompt: "Smooth transition with a subtle camera push-in",
    duration: 5,
    resolution: Resolution.x720p);

Console.WriteLine($"Task ID: {task.TaskId}");