Skip to main content

Request

Make a POST request to below endpoint and pass the required parameters in the request body.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/ultra_video/text2video' \

Body

When the model_id is Wan2.2, the request json looks like so,
json
{     
    "key":"enterprise_api_key",    
    "prompt":"Space Station in space",    
    "negative_prompt":"low quality",    
    "resolution":480,    
    "num_frames":92,    
    "num_inference_steps":8,    
    "guidance_scale": 1.0,    
    "shift_sample":3,    
    "fps":18,    
    "webhook": null,    
    "track_id":null
}

Body Attributes

key
string
required
Your API Key used for request authorization.
prompt
string
required
Text prompt with a description of the things you want in the video to be generated.
negative_prompt
string
Items you don’t want in the video.
seed
integer
Seed is used to reproduce results. The same seed will give you the same video again. Pass null for a random number.
resolution
integer
default:"480"
The resolution of the generated output. Maximum is 480.
num_frames
integer
default:"92"
The number of frames in the generated video. Default is 92.
num_inference_steps
integer
default:"8"
Number of denoising steps. Default is 8. Maximum is 8.
guidance_scale
number
default:"1.0"
Scale for classifier-free guidance. Minimum is 1.0, maximum is 2.0.
fps
integer
default:"18"
Frames per second rate of the generated video. Must be less than num_frames. Maximum is 18.
portrait
boolean
default:"false"
Indicates whether the output should be in portrait mode. Options: true/false.
sample_shift
integer
default:"3"
Controls the sampling shift in the generation process. Default is 3.
temp
boolean
default:"false"
If true, stores the video in temporary storage (cleaned every 24 hours). Default is false.
webhook
string
A URL to receive a POST API call once the video generation is complete.
track_id
string
A unique ID used in the webhook response to identify the request.