ドキュメントが一新されました!旧ドキュメントは doc.newapi.pro
New APINew API
利用ガイドインストールAPI リファレンスAIアプリケーションヘルプ&サポートビジネス協力

ビデオ生成タスクの作成

ビデオ生成タスクを送信します。テキストからビデオ、画像からビデオの生成をサポートしています。

タスクIDを返します。GET APIを介してタスクステータスを照会できます。

POST
/v1/video/generations

Authorization

BearerAuth

AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Request Body

application/json

model*string

模型名称

prompt*string

视频描述

duration?number

视频时长(秒)

width?integer

视频宽度

height?integer

视频高度

fps?integer

帧率

image?string

参考图像(用于图生视频)

seed?integer

随机种子

Response Body

application/json

application/json

curl -X POST "https://docs.newapi.ai/v1/video/generations" \  -H "Content-Type: application/json" \  -d '{    "model": "kling-v1",    "prompt": "宇航员在月球上漫步",    "duration": 5,    "width": 1280,    "height": 720  }'
{
  "id": "string",
  "status": "queued",
  "created_at": 0
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}

このガイドはいかがですか?

最終更新