Перейти к основному содержимому

Генерация видео

This page includes the Midjourney video sub-endpoint together with Hailuo, Sora-2, Veo 3, Alibaba Qwen, and Vidu video APIs.

Охват Apifox

  • Sora-2: create video, create with Character, remix, official chat format, two async query modes, fetch video content
  • Veo 3: official format, OpenAI-compatible format, and paired query endpoints
  • Additional video vendors: Doubao, Jimeng, Kling, Alibaba Qwen, Vidu, OpenAI-compatible vendor endpoints, and Hailuo

Midjourney

POST 14. Generate Video

POST /mj/submit/video

Executes a video action and submits a task. After submission, use the task ID to query status. Video buttons can be triggered through the action endpoint.

Body Parameters

{
"prompt": "飞来一只蜜蜂",
"motion": "low",
"image": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRYE4elHfZ6kxSlyKAQU7UOs6TCo3SM6pLBfg&s",
"endImage": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSViuCyuU-LlfhKz-scHtFnMpnvvvaMVXVpHw&s",
"loop": false
}

Request Parameters

NameInTypeRequiredDescription
bodybodyanyNonone

Response Example

200 Response

null

Responses

StatusMeaningDescriptionModel
200OKnoneInline
201CreatednoneInline
401UnauthorizednoneInline
403ForbiddennoneInline
404Not FoundnoneInline

Response Schema

API моделей / Генерация видео

POST Hailuo (Create Video)

POST /videos

Body Parameters

model: MiniMax-Hailuo-2.3
prompt: A calico cat playing a piano on stage
seconds: "10"
input_reference: ""
size: ""

Request Parameters

NameInTypeRequiredDescription
bodybodyobjectNonone
» modelbodystringYesVideo generation model. Defaults to sora-2.
» promptbodystringYesText prompt describing the video to generate.
» secondsbodystringNoVideo duration in seconds.
» input_referencebodystring(binary)NoOptional image reference used to guide generation.
» sizebodystringNoWidth x height. The exact numeric value is not enforced; width > height means landscape, width < height means portrait.

Response Example

200 Response

{}

Responses

StatusMeaningDescriptionModel
200OKnoneInline

Response Schema

API моделей / Генерация видео / Sora-2

POST Sora-2 (Edit Video Remix)

POST /videos/{id}/remix

Body Parameters

{
"prompt": "让这个video背景变成草地"
}

Request Parameters

NameInTypeRequiredDescription
idpathstringYesnone
AuthorizationheaderstringYesnone
bodybodyobjectNonone

Response Example

200 Response

{}

Responses

StatusMeaningDescriptionModel
200OKnoneInline

Response Schema

GET Fetch Video Content

GET /videos/{task_id}/content

Fetches the video file contents for a completed video task. This endpoint proxies the video file stream back to the client.

Request Parameters

NameInTypeRequiredDescription
task_idpathstringYesVideo task ID.
Content-TypeheaderstringNonone
AcceptheaderstringNonone
AuthorizationheaderstringNonone

Response Example

200 Response

null

Responses

StatusMeaningDescriptionModel
200OKnoneInline
401UnauthorizednoneInline
403ForbiddennoneInline
404Not FoundnoneInline

Response Schema

API моделей / Генерация видео / Veo 3

GET Fetch Video (Official Format)

GET /videos/{id}

Available only on the full-model dedicated route group.

Request Parameters

NameInTypeRequiredDescription
idpathstringYesnone
Content-TypeheaderstringNonone
AcceptheaderstringNonone
AuthorizationheaderstringNonone

Response Example

200 Response

null

Responses

StatusMeaningDescriptionModel
200OKnoneInline
401UnauthorizednoneInline
403ForbiddennoneInline
404Not FoundnoneInline

Response Schema

API моделей / Генерация видео / Alibaba Qwen

GET Fetch Video (Async Task)

GET /videos/{video_id}

Body Parameters

{}

Request Parameters

NameInTypeRequiredDescription
video_idpathstringYesnone
AuthorizationheaderstringYesnone
bodybodyobjectNonone

Response Example

200 Response

{}

Responses

StatusMeaningDescriptionModel
200OKnoneInline

Response Schema

API моделей / Генерация видео / Vidu

POST Vidu Text-to-Video

POST /video/generations

API docs:

Body Parameters

{
"model": "viduq1",
"prompt": "一个穿着宇航服的宇航员在月球上行走, 高品质, 电影级",
"size": "1920x1080",
"image": "https://prod-ss-images.s3.cn-northwest-1.amazonaws.com.cn/vidu-maas/template/image2video.png",
"duration": 5,
"metadata": {
"duration": 5,
"seed": 0,
"resolution": "1080p",
"movement_amplitude": "auto",
"bgm": false,
"payload": "",
"callback_url": "https://your-callback-url.com/webhook"
}
}

Request Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringNonone
bodybodyobjectNonone

Response Example

200 Response

{
"created": 0,
"data": [
{
"url": "string"
}
]
}

Responses

StatusMeaningDescriptionModel
200OKnoneInline

Response Schema

Status 200

NameTypeRequiredConstraintsChinese NameDescription
» createdintegertruenonenone
» data[object]truenonenone
»» urlstringtruenonenone

GET Fetch Video

GET /video/generations/{task_id}

Request Parameters

NameInTypeRequiredDescription
task_idpathstringYesTask ID
Content-TypeheaderstringNonone
AcceptheaderstringNonone
AuthorizationheaderstringNonone

Response Example

200 Response

null

Responses

StatusMeaningDescriptionModel
200OKnoneInline
401UnauthorizednoneInline
403ForbiddennoneInline
404Not FoundnoneInline

Response Schema