Skip to main content
POST
cURL

授权

Authorization
string
header
必填

在 Authorization 请求头中使用 Bearer APIPod_API_KEY。

请求体

application/json
model
string
必填

APIPod 公开模型 ID。

Allowed value: "wan2.7-t2v"
prompt
string
必填

生成或编辑指令。 最大字符串长度:5000。

prompt_extend
boolean
默认值:true

是否启用智能提示词改写。启用后会使用大模型改写输入提示词,可改善短提示词的生成效果,但会增加处理时间。

negative_prompt
string
默认值:low resolution, errors, worst quality, poor quality, incomplete, extra fingers, poor aspect ratio.

Describe the content you do not wish to see in the video frame, which can be used to restrict the video frame. 最大字符串长度:500。

audio_url
string
默认值:""

模型使用该音频生成视频。音频长于视频时长时会截取前段,音频短于视频时长时,超出音频长度的部分将保持静音。

resolution
enum<string>
默认值:1080P

输出分辨率档位。

可用选项:
720P,
1080P
aspect_ratio
enum<string>
默认值:16:9

输出宽高比。

可用选项:
16:9,
9:16,
1:1,
4:3,
3:4
duration
integer
默认值:5

视频时长,单位为秒。 最小值:2。 最大值:15。

watermark
boolean
默认值:false

添加上游水印。

响应

200 - application/json

任务已受理

Standard response for task submission

code
integer
必填

HTTP 状态码。

data
Task Submit Data · object
必填

响应数据。

message
string
必填

响应消息。