Make sure you add your s3 details for video server, so you can receive image generated in your bucket. Images generated without s3 details being added will be delete after 24 hours
Text to video endpoint result

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/video/img2video' \

Body Attributes

key
string
required
Your unique API key used for authorization.
model_id
string
required
The ID of the model to use. Allowed values: svd.
negative_prompt
string
Items you do not want in the video.
enhance_prompt
string
default:"yes"
Enhance prompts for better results. Options: yes/no.
init_image
string
A link or base64 equivalent of a valid PNG, JPEG, or other image format file to use as initial image conditioning.
height
integer
default:"512"
The height of the video in pixels. Maximum: 512.
width
integer
default:"512"
The width of the video in pixels. Maximum: 512.
num_frames
integer
default:"16"
The number of frames in the generated video. Default: 16, Maximum: 25.
num_inference_steps
integer
default:"20"
The number of denoising steps. Default: 20, Maximum: 50.
min_guidance_scale
number
default:"0"
The start value of the guidance scale for video generation when using svd as the model.
max_guidance_scale
number
default:"8"
The end value of the guidance scale for video generation when using svd as the model.
motion_bucket_id
integer
default:"127"
Higher values lead to more motion in generated videos. Default: 127.
noise_aug_strength
number
default:"0.5"
The strength for noise initialization when using svd as the model.
fps
integer
default:"8"
Frames per second rate of the generated video. Maximum: 16.
output_type
string
default:"mp4"
The output type of the video. Options: mp4, gif, base64.
latent_interpolation_method
string
default:"lerp"
The interpolation method for generating the video. Default: lerp.
clip_skip
integer
The number of CLIP layers to skip. Default: null. Maximum: 2.
instant_response
boolean
default:"false"
If true, returns an instant response with future links for queued requests instead of waiting for processing.
temp
boolean
default:"false"
If true, stores generations in temporary storage. Temporary files are cleaned every 24 hours.
webhook
string
Provide a URL to receive a POST API call once the video generation is complete.
track_id
integer
This ID is returned in the response to the webhook API call and will be used to identify the webhook request.

Body

json
{    
  "key":"enterprise_api_key",    
  "model_id":"svd",    
  "init_image": "https://imagedelivery.net/PP4qZJxMlvGLHJQBm3ErNg/e2f9cb8e-cb87-4143-dd81-a9e77e3bb800/768",    
  "height":512,    
  "width":512,    
  "num_frames":16,    
  "num_inference_steps":20,    
  "min_guidance_scale":1,    
  "max_guidance_scale":3,    
  "motion_bucket_id":20,    
  "noise_aug_strength":0.02,    
  "base64":false,    
  "webhook":null,    
  "track_id":null}