Image-to-video
POST
/sd/v2beta/image-to-videoGenerate a short video based on an initial image using Stable Video Diffusion.
For details, please view: https://platform.stability.ai/docs/api-reference#tag/Image-to-Video/paths/~1v2beta~1image-to-video/post
Price: 0.4 PTC / call
请求参数
Header Params
Content-Type
string
required
Example:
multipart/form-data
Authorization
string
required
API Key from 302.AI backend
Example:
Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
image
file
required
The source image used in the video generation process. Please ensure that the source image is in the correct format and dimensions.
cfg_scale
number
optional
How strongly the video sticks to the original image. Use lower values to allow the model more freedom to make changes and higher values to correct motion distortions.
Example:
1.8
motion_bucket_id
number
optional
Lower values generally result in less motion in the output video, while higher values generally result in more motion. This parameter corresponds to the motion_bucket_id parameter from the paper.
Example:
127
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 2 个月前