Skip to main content
POST
Submit Seedance 2.0 Mini task

提交任务

prompt 与 type 必填。image-to-video 传 1 个公网 HTTP(S) 图片 URL(首帧)或 2 个(首帧和尾帧);text-to-video 不可传 image_urls。resolution 为 480p 或 720p(默认),duration 为 4–15 秒(默认 5),generate_audio 默认 true。
网关按秒计费:480p = 21、720p = 44 积分/秒,音频不影响价格。具体积分以 /pricing 为准。

授权

Authorization
string
header
必填

Wizzx API key. This is not a JWT.

请求体

application/json

text-to-video must omit image_urls; image-to-video takes 1 image (first frame) or 2 images (first and last frame). Billed per second by resolution; audio is included at no extra charge.

type
enum<string>
必填
可用选项:
text-to-video
prompt
string
必填

Required prompt, at most 4000 Unicode characters.

Required string length: 1 - 4000
image_urls
string<uri>[]
Maximum array length: 2

Publicly reachable HTTP(S) URL.

Pattern: ^https?://
aspect_ratio
enum<string>

Defaults to 16:9 for text-to-video and adaptive for image-to-video. auto is an alias of adaptive.

可用选项:
16:9,
9:16,
1:1,
4:3,
3:4,
21:9,
adaptive,
auto
resolution
enum<string>
默认值:720p
可用选项:
480p,
720p
duration
integer
默认值:5
必填范围: 4 <= x <= 15
generate_audio
boolean
默认值:true
seed
integer

-1 means random.

必填范围: -1 <= x <= 4294967295

响应

Task accepted

code
enum<integer>
必填
可用选项:
0
message
string
必填
示例:

"success"

data
object
必填
request_id
string<uuid>
必填