Image-to-video(图片生成视频)
POST
/sd/v2beta/image-to-video使用 Stable Video Diffusion生成一个基于初始图像的短视频
详细用法请参考官方文档:https://platform.stability.ai/docs/api-reference#tag/Image-to-Video/paths/~1v2beta~1image-to-video/post
价格:0.4 PTC/次
请求参数
Header 参数
Content-Type
string
必需
示例值:
multipart/form-data
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数multipart/form-data
image
file
必需
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
可选
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.
示例值:
1.8
motion_bucket_id
number
可选
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.
示例值:
127
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: 6 个月前