image-to-video
https://api.stability.ai
https://api.stability.ai
https://api.stability.ai
https://api.stability.ai
POST
/v2alpha/generation/image-to-video
v2alpha/generation
a latent video diffusion model.
How to generate a video:
id
returned in the response to poll /v2alpha/generation/image-to-video/result/{id} for results.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.stability.ai/v2alpha/generation/image-to-video' \
--header 'authorization;' \
--form 'image=@"./some/image.png"'
Response Response Example
200 - Example 1
{
"id": "a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4"
}
Request
Header Params
authorization
string
required
content-type
string
required
Body Params multipart/form-data
image
file
required
Please ensure that the source image is in the correct format and dimensions.
Example:
./some/image.png
seed
number
optional
0
to use a random seed.)cfg_scale
number
optional
Example:
1.8
motion_bucket_id
number
optional
Example:
127