提交视频生成任务

POST /jimeng/submit/videos

MethodPOST
Path/jimeng/submit/videos
Typehttp
Status1
Module2102810
Folder62423944

概览

MethodPOST
Path/jimeng/submit/videos
Typehttp
Status1
Module2102810
Folder62423944

参数

{
  "query": [],
  "path": [],
  "cookie": [],
  "header": [
    {
      "id": "NQs7bxnpZf",
      "name": "Content-Type",
      "required": true,
      "description": "",
      "type": "string",
      "enable": true,
      "sampleValue": "application/json"
    },
    {
      "id": "qb8tEQbCty",
      "name": "Accept",
      "required": true,
      "description": "",
      "type": "string",
      "enable": true,
      "sampleValue": "application/json"
    },
    {
      "required": true,
      "description": "",
      "type": "string",
      "id": "gBxcCbXhsa",
      "enable": true,
      "name": "Authorization",
      "sampleValue": "Bearer {{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "prompt": {
        "type": "string",
        "description": "提示词"
      },
      "image_url": {
        "type": "string",
        "description": "图生视频需要传此参数"
      },
      "duration": {
        "type": "integer",
        "description": "视频时长 枚举值 5, 10\n"
      },
      "aspect_ratio": {
        "type": "string",
        "description": "视频尺寸 枚举值 \"1:1\", \"21:9\", \"16:9\", \"9:16\", \"4:3\", \"3:4\"\n"
      },
      "cfg_scale": {
        "type": "integer"
      }
    },
    "required": [
      "prompt",
      "image_url",
      "duration",
      "aspect_ratio",
      "cfg_scale"
    ],
    "x-apifox-orders": [
      "prompt",
      "image_url",
      "duration",
      "aspect_ratio",
      "cfg_scale"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "value": "{\n    \"prompt\": \"一只小猪在高速公路上快乐的奔跑\",\n    \"duration\": 5,\n    \"aspect_ratio\": \"21:9\",\n    \"cfg_scale\": 0.5\n}",
      "mediaType": "application/json",
      "description": ""
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 728442759,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "request_id": {
          "type": "string"
        },
        "data": {
          "type": "object",
          "properties": {
            "task_id": {
              "type": "string"
            },
            "task_status": {
              "type": "string"
            },
            "created_at": {
              "type": "integer"
            },
            "updated_at": {
              "type": "integer"
            }
          },
          "required": [
            "task_id",
            "task_status",
            "created_at",
            "updated_at"
          ]
        }
      },
      "required": [
        "code",
        "message",
        "request_id",
        "data"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 728442759,
    "data": "{\r\n    \"code\": \"success\",\r\n    \"message\": \"\",\r\n    \"data\": \"cgt-20250829165122-qkwch\"\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 648775652
  }
]