Stability.Ai
  1. generation
Stability.Ai
  • Getting Started
  • v1
    • user
      • account
      • balance
    • engines
      • list
    • generation
      • text-to-image
      • image-to-image
      • image-to-image/upscale
      • image-to-image/masking
  • v2alpha
    • generation
      • image-to-video
        POST
      • image-to-video/result
        GET
      • stable-image/upscale
        POST
      • stable-image/upscale/result
        GET
      • stable-image/inpaint
        POST
  1. generation

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
Generate a short video based on an initial image with Stable Video Diffusion,
a latent video diffusion model.

How to generate a video:#

Video generations are asynchronous, so after starting a generation use the 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

Body Params multipart/form-data

Responses

🟢200Video generation started. Poll for results using the `id` in the response [here](#tag/v2alphageneration/paths/~1v2alpha~1generation~1image-to-video~1result~1%7Bid%7D/get).
application/json
Body

🟠400Something about your request is invalid, see the `errors` field for details.
🔴500An internal error occurred. If the problem persists [contact support](https://platform.stability.ai/support).
Modified at 2024-03-11 07:12:09
Previous
image-to-image/masking
Next
image-to-video/result
Built with