Skip to main content
POST
Create an AIHubMix video task

授權

Authorization
string
header
必填

Gateway-issued API key, formatted as sk-gateway-xxxxxxxx. Used by OpenAI-shaped endpoints (/v1/chat/completions, etc.).

主體

application/json
model
string
必填

Video model ID.

prompt
string
必填
Minimum string length: 1
duration
integer | null

Video duration in seconds. Allowed values are model-specific.

aspect_ratio
string | null
預設值:16:9
resolution
enum<string> | null
可用選項:
480p,
720p,
1080p,
1K,
2K,
4K
size
string | null
Pattern: ^[1-9][0-9]*x[1-9][0-9]*$
seed
integer | null
input_references
object[] | null
frame_images
object[] | null
generate_audio
boolean | null
webhook_url
string<uri>
Maximum string length: 512
webhook_events_filter
enum<string>[]
Minimum array length: 1
可用選項:
completed,
failed,
cancelled
extra
object | null

回應

Video task

id
string
必填

Platform task ID.

object
enum<string>
必填
可用選項:
image,
video
model
string
必填
status
enum<string>
必填

Current task state. Completed, failed, and cancelled are terminal states.

可用選項:
pending,
in_progress,
completed,
failed,
cancelled
output
object[]
必填
error
object | null
必填
created_at
integer<int64>
必填

Unix timestamp in seconds.

completed_at
integer<int64> | null
必填
expires_at
integer<int64> | null
必填

Artifact expiry time in Unix seconds; may be null before completion.