petsHero-AI/docs/generate_video.md
2026-03-12 14:30:19 +08:00

11 lines
684 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# UI逻辑
1.点击Generate Video的时候先进入选择图片的流程可以是拍照或相册选择。
2.选择完图片后进入接口调用步骤
# 接口调用
## 第一步
通过/v1/image/upload-presigned-url接口获取文件上传地址通常是uploadUrl1或者uploadUrl2,以及对应的filePath1和filePath2用于生成视频接口的入参
## 第二步
通过上一个接口获取的upload url 用put协议将图片上传到对应的地址注意图片上传不需要经过代理 并且需要将requiredHeaders的参数全部设置到请求头中
## 第三步
调用/v1/image/create-task接口并传入filePath1或者filePath2传入到srcImg1Url或者srcImg2Url