跳转到主要内容
POST
Reference example

请求规范

  • 方法与路径: POST /v1/video/generations
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/v1/video/generations
  • X-AISA-Cost-Mode: header; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

价格取决于模型、分辨率和时长;按所选模型的每秒、每次请求或 token 用量价格计费。 提交任务时预留费用,任务结束时结算。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求头

X-AISA-Cost-Mode
enum<string>

Return a free, read-only cost quote for this caller and payload instead of generating.

可用选项:
quote

请求体

application/json
model
string
必填

A video model from GET /v1/models, for example dreamina-seedance-2-0-260128 or wan2.7-t2v.

Minimum string length: 1
content
object[]

Prompt and reference media, for Seedance models.

duration
integer

Output length in seconds; part of the price.

必填范围: x >= 1
generate_audio
boolean
prompt
string

Text prompt, for models that take a plain prompt.

ratio
string

Aspect ratio, for example 16:9, 9:16 or 1:1.

resolution
string

For example 720p or 1080p; part of the price.

watermark
boolean

响应

The task was created.

created_at
integer
必填

Unix seconds.

id
string
必填
model
string
必填
object
string
必填
Allowed value: "video.generation"
progress
string
必填

For example 0% or 100%.

status
enum<string>
必填
可用选项:
queued,
in_progress,
completed,
failed,
cancelled,
unknown
completed_at
integer

Unix seconds; present once the task has ended.

customer_cost_micros_usd
integer

The charge collected for this task, in micro-USD; zero when a failed task's hold was released. Present once the task has ended and its charge is confirmed final; absent while it runs or settles, or when finality cannot be confirmed.

必填范围: x >= 0
error
object
result
any

The model's output once completed, including the video URL (video_url or url).