1. Kling 视频
open-route
  • Gemini Image
    • 生成图片
      POST
    • 查询图片任务状态与结果
      GET
  • 人像
    • 创建素材分组
      POST
    • 查询素材分组列表
      POST
    • 查询单个素材分组
      POST
    • 更新素材分组
      POST
    • 上传素材(创建素材)
      POST
    • 查询素材列表
      POST
    • 查询单个素材
      POST
    • 更新素材名称
      POST
    • 查询素材配额信息
      POST
  • Midjourney
    • MJ 提交绘图任务
      POST
    • MJ 融图(Blend)
      POST
    • MJ 变换操作(放大/变体/扩图/延展/重绘/重塑等)
      POST
    • 查询 MJ 任务状态
      GET
    • MJ 图片代理(首图)
      GET
  • Chat
    • 创建对话补全
      POST
    • 创建 Responses 响应
      POST
    • 创建 Anthropic Messages 响应
      POST
  • MiniMax 视频
    • 提交视频生成任务
      POST
    • 查询 MiniMax 视频任务状态
      GET
  • IMA-Pro 视频
    • 创建异步视频任务(Seedance)
    • 查询任务状态与结果
  • Kling 视频
    • 文生视频
      POST
    • 图生视频
      POST
    • 查询 Kling 视频任务状态
      GET
  • PixVerse 视频
    • 提交 PixVerse 视频任务
    • 查询 PixVerse 视频任务状态
  • Vidu 视频
    • 提交 Vidu 视频任务
    • 查询 Vidu 视频任务状态
  • 数据模型
    • ImaProVideoCreateRequest
    • ModelItem
    • AssetGroupCreateRequest
    • ImaProCreateResponse
    • ModelsListResponse
    • AssetGroupListRequest
    • ImaProQueryResponse
    • ChatCompletionRequest
    • AssetCreateRequest
    • ErrorResponse
    • ChatCompletionResponse
    • AssetListRequest
    • TaskErrorResponse
    • ResponsesRequest
    • AssetItem
    • MjSubmitResponse
    • ResponsesResponse
    • AssetGroupItem
    • MjTaskFetchResponse
    • AnthropicMessagesRequest
    • AssetIdResponse
    • AnthropicMessagesResponse
    • AssetGroupResponse
    • AssetGetResponse
    • ImageGenerationRequest
    • AssetGroupListResponse
    • ImageGenerationResponse
    • AssetListResponse
    • VideoGenerationRequest
    • AssetQuotaResponse
    • VideoTaskResponse
    • ConsumeCallbackEvent
    • ImaImageGenerationRequest
    • ConsumeCallbackAck
    • ImaImageGenerationResponse
    • MjSubmitRequest
    • ImaImageGenerationRequestGemini3Pro
    • MjChangeRequest
    • ImaImageGenerationRequestGemini31Flash
    • ImaImageTaskFetchResponse
    • MjTaskResponse
    • ImaImageCreateTaskResponse
    • PixVerseVideoRequest
    • KlingVideoRequest
    • ViduVideoRequest
    • MiniMaxVideoGenerationRequest
    • MiniMaxVideosCreateRequest
  1. Kling 视频

文生视频

POST
/kling/v1/videos/text2video
Kling 文生视频端点(异步任务制)。提交后返回 task_id,通过 GET /kling/v1/videos/text2video/{task_id} 或 GET /v1/video/generations/{task_id} 轮询结果。
可用端点(三选一,参数格式相同):
端点说明
POST /kling/v1/videos/text2videoKling 原生端点(本文档)
POST /v1/video/generations通用视频端点
POST /v1/videosOpenAI 兼容端点
支持模型:
kling-v1
kling-v1-6
kling-v2-master(大师版,无 std/pro 区分)
kling-v2-1-master(大师版,无 std/pro 区分)
kling-v2-5-turbo
kling-v2-6
kling-video-o1
参数说明:
mode:品质,std(标准,默认)或 pro(高品质)。大师版模型无此参数。
duration:时长(秒),默认 5,支持 5 或 10。
aspect_ratio:宽高比,1:1(默认)、16:9、9:16。也可通过 size 传尺寸自动映射。
cfg_scale:生成自由度,0~1,默认 0.5。
negative_prompt:反向提示词(可选)。
camera_control:镜头控制(可选,通过 metadata 传递)。

请求参数

Body 参数application/json必填

示例
{
    "model_name": "kling-v1-6",
    "prompt": "A cat playing with a ball of yarn in a sunny room",
    "mode": "std",
    "duration": "5",
    "aspect_ratio": "16:9"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST '/kling/v1/videos/text2video' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model_name": "kling-v1-6",
    "prompt": "A cat playing with a ball of yarn in a sunny room",
    "mode": "std",
    "duration": "5",
    "aspect_ratio": "16:9"
}'

返回响应

🟢200成功
application/json
任务提交成功
Body

示例
{
    "id": "string",
    "task_id": "string",
    "object": "video",
    "model": "string",
    "status": "",
    "progress": 0,
    "created_at": 0,
    "completed_at": 0,
    "metadata": {
        "url": "string"
    }
}
🟠401没有权限
修改于 2026-04-10 09:20:43
上一页
查询任务状态与结果
下一页
图生视频
Built with