curl --request POST \
--url https://modelslab.com/api/v6/video/video2video \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"init_video": "<string>",
"to_animate": true,
"resolution": 123,
"num_inference_steps": 6,
"webhook": "<string>",
"track_id": "<string>"
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"future_links": [
"<string>"
],
"meta": {},
"eta": 123,
"message": "<string>",
"tip": "<string>",
"fetch_result": "<string>"
}Video to Video
Generate videos from video using the Video to Video API.
curl --request POST \
--url https://modelslab.com/api/v6/video/video2video \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"init_video": "<string>",
"to_animate": true,
"resolution": 123,
"num_inference_steps": 6,
"webhook": "<string>",
"track_id": "<string>"
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"future_links": [
"<string>"
],
"meta": {},
"eta": 123,
"message": "<string>",
"tip": "<string>",
"fetch_result": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
Video to Video
Generate videos from video.
Request
Make aPOST request to below endpoint and pass the required parameters in the request body.
--request POST 'https://modelslab.com/api/v6/video/video2video' \
Body
{
"key":"your_api_key",
"init_image": "https://assets.modelslab.ai/generations/8761aacb-6dce-4cea-8705-46de16003794.png",
"init_video": "https://assets.modelslab.ai/generations/b0374de1-ef0e-417b-9982-dd488331cae6.mp4",
"to_animate": true,
"seed": null,
"resolution": 720,
"num_inference_steps": 6,
"base64": false,
"track_id ": null,
"webhook": null
}
Body
Your API Key used for request authorization
URL of the initial image
URL of the initial video
Should only be used for high motion videos. For standard videos, keep default false.
Output video resolution. Higher resolution may increase processing time. It allows 480 and 720 resolutions.
x <= 720Number of inference steps for generation. Higher values may improve quality but increase processing time
x <= 10Webhook URL
Tracking ID
Response
Image-to-video generation response
Status of the video generation
success, processing, error Time taken to generate the video in seconds
Unique identifier for the video generation
Array of generated video URLs
Array of proxy video URLs
Array of future video URLs for queued requests
Metadata about the video generation including all parameters used
Estimated time for completion in seconds (processing status)
Status message or additional information
Additional information or tips for the user
URL to fetch the result when processing
Was this page helpful?

