Generating a video from text

Producing a video content based on written text input.

Use case example

  • - Text-to-video applications for storytelling
  • - Converting scripts or narratives into visual content

Added by: APIForAI

Price per call≈ 0.15

License Paper Github

Try it nowAPI information

Try it

Examples

Input

{
"input":{
"prompt":"a Corgi walking in the park at..."
"sample_method":"ddpm"
"width":512
"height":320
"num_inference_steps":250
"guidance_scale":7
"quality":9
"seed":5395
"interpolation":false
"super_resolution":false
"video_fps":8
}
"id":97
}

Output

{
"status":"succeeded"
"output":"https://rbqktisnztholqojxlaf.s..."
"prediction_time":52.097951
}

API Information

Input description

prompt string

Prompt for video generation.

Default value: a Corgi walking in the park at sunrise, oil painting style

sample_method string

An enumeration.

Default value: ddpm

Enum values: ddim, eulerdiscrete, ddpm

width integer

Width of output video.

Default value: 512

height integer

Height of output video

Default value: 320

num_inference_steps integer

Number of denoising steps

Default value: 250

guidance_scale number

Scale for classifier-free guidance

Default value: 7

quality integer

Quality of the output vide0

Default value: 9

seed integer

Random seed. Leave blank to randomize the seed

interpolation boolean

Default output has 16 frames. Set interpolation to True to get 61 frames output.

super_resolution boolean

Super resolution 4x when set to True.

video_fps integer

Number of frames per second in the output video

Default value: 8

Output JSON Schema

This represents the JSON schema that details the structure of the model's output.

{
"type":"string"
"title":"Output"
"format":"uri"
}

APIForAI

Build fast by accessing AI models easily