Vidu

App · 10 actions

Generate media with Vidu, check task progress, and monitor available credits.

Actions

ActionWhat it does
Cancel taskCancel task in Vidu.
Generate audioGenerate audio in Vidu.
Generate imageGenerate image in Vidu.
Generate video between two framesGenerate video between two frames in Vidu.
Generate video from an imageGenerate video from an image in Vidu.
Generate video from referencesGenerate video from references in Vidu.
Generate video from textGenerate video from text in Vidu.
Get balanceGet balance in Vidu.
Get taskGet task in Vidu.
List tasksList tasks in Vidu.

Cancel task

Cancel task in Vidu.

Inputs

Tasktask_idtextRequired
Task.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {}
}

Generate audio

Generate audio in Vidu.

Inputs

PromptprompttextRequired
Prompt.
Duration in secondsdurationnumber
Duration in seconds.
Seedseednumber
Seed.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {
    "created_at": "example",
    "credits": 1,
    "model": "example",
    "state": "example",
    "task_id": "example"
  }
}

Generate image

Generate image in Vidu.

Inputs

PromptprompttextRequired
Describe the image to create.
Reference image URLsimageslist
Reference image URLs.
Resolutionresolutiontext
Resolution.One of: 1080p, 2K, 4K.
Aspect ratioaspect_ratiotext
Aspect ratio.One of: 16:9, 9:16, 1:1, 3:4, 4:3, 21:9, 2:3, 3:2.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {
    "created_at": "example",
    "credits": 1,
    "model": "example",
    "state": "example",
    "task_id": "example"
  }
}

Generate video between two frames

Generate video between two frames in Vidu.

Inputs

ModelmodeltextRequired
Model.One of: viduq3-pro, viduq3-turbo.
Image URLsimageslistRequired
Add the public image URLs in the order they should appear.
Promptprompttext
Describe the video you want to create.
Duration in secondsdurationnumber
Duration in seconds.From 1 to 16.
Resolutionresolutiontext
Resolution.One of: 540p, 720p, 1080p.
Generate audioaudiotrue/false
Generate audio.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {
    "created_at": "example",
    "credits": 1,
    "model": "example",
    "state": "example",
    "task_id": "example"
  }
}

Generate video from an image

Generate video from an image in Vidu.

Inputs

ModelmodeltextRequired
Model.One of: viduq3-pro, viduq3-turbo.
Image URLsimageslistRequired
Add the public image URLs in the order they should appear.
Promptprompttext
Describe the video you want to create.
Duration in secondsdurationnumber
Duration in seconds.From 1 to 16.
Resolutionresolutiontext
Resolution.One of: 540p, 720p, 1080p.
Generate audioaudiotrue/false
Generate audio.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {
    "created_at": "example",
    "credits": 1,
    "model": "example",
    "state": "example",
    "task_id": "example"
  }
}

Generate video from references

Generate video from references in Vidu.

Inputs

ModelmodeltextRequired
Model.One of: viduq3-pro, viduq3-turbo.
Image URLsimageslistRequired
Add the public image URLs in the order they should appear.
PromptprompttextRequired
Describe the video you want to create.
Duration in secondsdurationnumber
Duration in seconds.From 1 to 16.
Resolutionresolutiontext
Resolution.One of: 540p, 720p, 1080p.
Generate audioaudiotrue/false
Generate audio.
Aspect ratioaspect_ratiotext
Aspect ratio.One of: 16:9, 9:16, 3:4, 4:3, 1:1.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {
    "created_at": "example",
    "credits": 1,
    "model": "example",
    "state": "example",
    "task_id": "example"
  }
}

Generate video from text

Generate video from text in Vidu.

Inputs

ModelmodeltextRequired
Model.One of: viduq3-pro, viduq3-turbo.
PromptprompttextRequired
Describe the video you want to create.
Duration in secondsdurationnumber
Duration in seconds.From 1 to 16.
Resolutionresolutiontext
Resolution.One of: 540p, 720p, 1080p.
Generate audioaudiotrue/false
Generate audio.
Aspect ratioaspect_ratiotext
Aspect ratio.One of: 16:9, 9:16, 3:4, 4:3, 1:1.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {
    "created_at": "example",
    "credits": 1,
    "model": "example",
    "state": "example",
    "task_id": "example"
  }
}

Get balance

Get balance in Vidu.

Inputs

None.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {
    "packages": [],
    "remaining_credits": []
  }
}

Get task

Get task in Vidu.

Inputs

Tasktask_idtextRequired
Task.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {
    "created_at": "example",
    "creations": [],
    "credits": 1,
    "id": "example",
    "model": "example",
    "prompt": "example",
    "state": "example"
  }
}

List tasks

List tasks in Vidu.

Inputs

Created aftercreated_afterdate and time
Created after.
Created beforecreated_beforedate and time
Created before.
Task statesstateslist
Task states.One or more of: created, queueing, processing, success, failed.
Pagepagenumber
Page.At least 0.
Page sizepage_sizenumber
Page size.From 1 to 100.
Page tokenpage_tokentext
Page token.

Outputs

dataobject
The Vidu response.
Example output
{
  "data": {
    "next_page_token": "example",
    "tasks": []
  }
}

On this page