创建视频

POST /v1/video/create

MethodPOST
Path/v1/video/create
Typehttp
Status1
Module2102810
Folder72525006

概览

MethodPOST
Path/v1/video/create
Typehttp
Status1
Module2102810
Folder72525006

参数

{
  "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": false,
      "description": "",
      "type": "string",
      "id": "gBxcCbXhsa",
      "enable": true,
      "name": "Authorization",
      "sampleValue": "Bearer {{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "model": {
        "type": "string",
        "description": "模型名字 grok-video-3"
      },
      "prompt": {
        "type": "string",
        "description": " 提示词"
      },
      "aspect_ratio": {
        "type": "string",
        "description": "可选为 2:3, 3:2, 1:1,注垫图是按照图片尺寸来"
      },
      "size": {
        "type": "string",
        "description": "720P或者1080P"
      },
      "images": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "图片链接"
      }
    },
    "required": [
      "model",
      "prompt",
      "aspect_ratio",
      "size",
      "images"
    ],
    "x-apifox-orders": [
      "model",
      "prompt",
      "aspect_ratio",
      "size",
      "images"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "value": "{\r\n    \"model\": \"grok-video-3\",\r\n    \"prompt\": \"cat fish  --mode=custom\",\r\n    // \"aspect_ratio\": \"16:9\",\r\n    \"aspect_ratio\": \"9:16\",\r\n    \"size\": \"1080P\",\r\n    \"images\": []\r\n}",
      "mediaType": "application/json"
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 805852402,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "status_update_time": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "status",
        "status_update_time"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 805852402,
    "data": "{\r\n    \"id\": \"grok:3af0f46b-3abd-453a-a2b5-e2ae8abb4659\",\r\n    \"status\": \"processing\",\r\n    \"status_update_time\": 1765867302\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 723437018
  },
  {
    "name": "成功示例",
    "responseId": 805852402,
    "data": "{\r\n    \"id\": \"grok:299604b7-c5ea-47b5-bc64-c06f300f0d27\",\r\n    \"status\": \"processing\",\r\n    \"status_update_time\": 1764522528\r\n}",
    "id": "019ad5be-1382-7466-92bb-08cd5464094a"
  }
]