image-to-video
POST {{baseUrl}}/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 Body
[{"name"=>"image", "value"=>nil, "datatype"=>"null"}, {"name"=>"seed", "value"=>"0", "datatype"=>"number"}, {"name"=>"cfg_scale", "value"=>"1.8", "datatype"=>"string"}, {"name"=>"motion_bucket_id", "value"=>"127", "datatype"=>"number"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"id":"e2a4c4abbeececde93f58a79fb16102db87adbd7dd13d83558df892c145be6e3"}