{
  "openapi": "3.1.0",
  "info": {
    "title": "PixVerse 三模型视频API",
    "version": "1.6.0",
    "description": "支持上传ID以及公网HTTPS图片、视频、音频参考。休闲模式默认开启，可显式关闭。Wan3输出音频可选。"
  },
  "servers": [
    {
      "url": "https://api.youqian666.vip/v1"
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "pvk_调用密钥"
      }
    }
  },
  "paths": {
    "/models": {
      "get": {
        "summary": "查询三个可用模型与参数能力",
        "responses": {
          "200": {
            "description": "模型能力目录"
          },
          "401": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/files": {
      "post": {
        "summary": "上传单张参考图片，最大10MB",
        "description": "平台确认受理后清理本地副本。尚待提交或缺受理回执的共享引用继续保留。未成功提交使用的上传图片在满24小时后回收。",
        "requestBody": {
          "required": true,
          "content": {
            "image/png": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "image/jpeg": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "image/webp": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "返回id、bytes、filename"
          },
          "401": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/videos": {
      "post": {
        "summary": "创建一个异步视频任务",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "wan-3.0"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 5000
                      },
                      "duration": {
                        "type": "integer",
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          7,
                          8,
                          9,
                          10,
                          11,
                          12,
                          13,
                          14,
                          15,
                          16,
                          17,
                          18,
                          19,
                          20,
                          21,
                          22,
                          23,
                          24,
                          25,
                          26,
                          27,
                          28,
                          29,
                          30
                        ],
                        "default": 5
                      },
                      "quality": {
                        "type": "string",
                        "enum": [
                          "480p",
                          "720p",
                          "1080p"
                        ],
                        "default": "720p"
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "auto",
                          "16:9",
                          "4:3",
                          "1:1",
                          "3:4",
                          "9:16"
                        ],
                        "description": "省略时为16:9。"
                      },
                      "audio": {
                        "type": "boolean",
                        "default": true,
                        "description": "Wan3音频可选；省略时沿用默认true，可显式false关闭。"
                      },
                      "relax_mode": {
                        "type": "boolean",
                        "default": true,
                        "description": "默认开启休闲模式。显式false可能扣积分，仅用提交前积分大于500的合格账号。暂无合格账号时继续排队。关闭休闲不计入本服务的单账号休闲并发和每小时受理额度，平台实际容量仍生效。"
                      },
                      "reference_id": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "旧单图首帧模式：使用同一API Key上传的一个图片编号。不能与非空reference_ids同时使用。"
                      },
                      "reference_ids": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 10,
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{1,128}$"
                        },
                        "description": "多图参考模式：逐张上传后按顺序填写图片编号，最多10张；每张必须属于同一API Key。不会把参考图固定为首帧。"
                      },
                      "media": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 20,
                        "uniqueItems": true,
                        "items": {
                          "type": "object",
                          "required": [
                            "type",
                            "url"
                          ],
                          "additionalProperties": false,
                          "properties": {
                            "type": {
                              "enum": [
                                "first_frame",
                                "reference_image",
                                "reference_video",
                                "reference_audio"
                              ]
                            },
                            "url": {
                              "type": "string",
                              "format": "uri",
                              "maxLength": 2048,
                              "pattern": "^https://"
                            }
                          }
                        },
                        "description": "公网HTTPS参考素材。图片10张、视频5段、音频5段。首帧独占。不能与已上传素材ID混用。"
                      }
                    },
                    "allOf": [
                      {
                        "not": {
                          "required": [
                            "reference_id",
                            "reference_ids"
                          ],
                          "properties": {
                            "reference_id": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "required": [
                            "media"
                          ]
                        },
                        "then": {
                          "not": {
                            "anyOf": [
                              {
                                "required": [
                                  "reference_ids"
                                ]
                              },
                              {
                                "required": [
                                  "reference_id"
                                ],
                                "properties": {
                                  "reference_id": {
                                    "type": "string"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      },
                      {
                        "if": {
                          "required": [
                            "media"
                          ],
                          "properties": {
                            "media": {
                              "contains": {
                                "properties": {
                                  "type": {
                                    "const": "first_frame"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "then": {
                          "properties": {
                            "media": {
                              "maxItems": 1
                            },
                            "aspect_ratio": {
                              "enum": [
                                "auto",
                                "16:9",
                                "4:3",
                                "1:1",
                                "3:4",
                                "9:16"
                              ]
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "anyOf": [
                            {
                              "required": [
                                "reference_ids"
                              ]
                            },
                            {
                              "required": [
                                "media"
                              ],
                              "properties": {
                                "media": {
                                  "not": {
                                    "contains": {
                                      "properties": {
                                        "type": {
                                          "const": "first_frame"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          ]
                        },
                        "then": {
                          "properties": {
                            "duration": {
                              "enum": [
                                2,
                                3,
                                4,
                                5,
                                6,
                                7,
                                8,
                                9,
                                10,
                                11,
                                12,
                                13,
                                14,
                                15,
                                16,
                                17,
                                18,
                                19,
                                20,
                                21,
                                22,
                                23,
                                24,
                                25,
                                26,
                                27,
                                28,
                                29,
                                30
                              ]
                            },
                            "quality": {
                              "enum": [
                                "480p",
                                "720p",
                                "1080p"
                              ]
                            },
                            "aspect_ratio": {
                              "enum": [
                                "auto",
                                "16:9",
                                "4:3",
                                "1:1",
                                "3:4",
                                "9:16"
                              ]
                            }
                          }
                        }
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "seedance-2.5-flash"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 5000
                      },
                      "duration": {
                        "type": "integer",
                        "enum": [
                          4,
                          5,
                          6,
                          7,
                          8,
                          9,
                          10,
                          11,
                          12,
                          13,
                          14,
                          15,
                          16,
                          17,
                          18,
                          19,
                          20,
                          21,
                          22,
                          23,
                          24,
                          25,
                          26,
                          27,
                          28,
                          29,
                          30
                        ],
                        "default": 5
                      },
                      "quality": {
                        "type": "string",
                        "enum": [
                          "720p",
                          "480p"
                        ],
                        "default": "720p"
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "21:9",
                          "16:9",
                          "4:3",
                          "1:1",
                          "3:4",
                          "9:16",
                          "auto"
                        ],
                        "description": "文生与多图参考使用六种固定比例，单图首帧必须auto；省略时按输入模式选择。"
                      },
                      "audio": {
                        "type": "boolean",
                        "const": false,
                        "description": "该模型不能通过CLI控制声音，省略或false不代表结果静音。"
                      },
                      "relax_mode": {
                        "type": "boolean",
                        "default": true,
                        "description": "默认开启休闲模式。显式false可能扣积分，仅用提交前积分大于500的合格账号。暂无合格账号时继续排队。关闭休闲不计入本服务的单账号休闲并发和每小时受理额度，平台实际容量仍生效。"
                      },
                      "reference_id": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "旧单图首帧模式：使用同一API Key上传的一个图片编号。不能与非空reference_ids同时使用。"
                      },
                      "reference_ids": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 10,
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{1,128}$"
                        },
                        "description": "多图参考模式：逐张上传后按顺序填写图片编号，最多10张；每张必须属于同一API Key。不会把参考图固定为首帧。"
                      },
                      "media": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 20,
                        "uniqueItems": true,
                        "items": {
                          "type": "object",
                          "required": [
                            "type",
                            "url"
                          ],
                          "additionalProperties": false,
                          "properties": {
                            "type": {
                              "enum": [
                                "first_frame",
                                "reference_image",
                                "reference_video",
                                "reference_audio"
                              ]
                            },
                            "url": {
                              "type": "string",
                              "format": "uri",
                              "maxLength": 2048,
                              "pattern": "^https://"
                            }
                          }
                        },
                        "description": "公网HTTPS参考素材。图片10张、视频5段、音频5段。首帧独占。不能与已上传素材ID混用。"
                      }
                    },
                    "allOf": [
                      {
                        "not": {
                          "required": [
                            "reference_id",
                            "reference_ids"
                          ],
                          "properties": {
                            "reference_id": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "required": [
                            "media"
                          ]
                        },
                        "then": {
                          "not": {
                            "anyOf": [
                              {
                                "required": [
                                  "reference_ids"
                                ]
                              },
                              {
                                "required": [
                                  "reference_id"
                                ],
                                "properties": {
                                  "reference_id": {
                                    "type": "string"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      },
                      {
                        "if": {
                          "required": [
                            "media"
                          ],
                          "properties": {
                            "media": {
                              "contains": {
                                "properties": {
                                  "type": {
                                    "const": "first_frame"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "then": {
                          "properties": {
                            "media": {
                              "maxItems": 1
                            },
                            "aspect_ratio": {
                              "enum": [
                                "auto"
                              ]
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "anyOf": [
                            {
                              "required": [
                                "reference_ids"
                              ]
                            },
                            {
                              "required": [
                                "media"
                              ],
                              "properties": {
                                "media": {
                                  "not": {
                                    "contains": {
                                      "properties": {
                                        "type": {
                                          "const": "first_frame"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          ]
                        },
                        "then": {
                          "properties": {
                            "duration": {
                              "enum": [
                                4,
                                5,
                                6,
                                7,
                                8,
                                9,
                                10,
                                11,
                                12,
                                13,
                                14,
                                15,
                                16,
                                17,
                                18,
                                19,
                                20,
                                21,
                                22,
                                23,
                                24,
                                25,
                                26,
                                27,
                                28,
                                29,
                                30
                              ]
                            },
                            "quality": {
                              "enum": [
                                "720p",
                                "480p"
                              ]
                            },
                            "aspect_ratio": {
                              "enum": [
                                "21:9",
                                "16:9",
                                "4:3",
                                "1:1",
                                "3:4",
                                "9:16"
                              ]
                            }
                          }
                        },
                        "else": {
                          "if": {
                            "anyOf": [
                              {
                                "required": [
                                  "media"
                                ]
                              },
                              {
                                "required": [
                                  "reference_id"
                                ],
                                "properties": {
                                  "reference_id": {
                                    "type": "string"
                                  }
                                }
                              }
                            ]
                          },
                          "then": {
                            "properties": {
                              "aspect_ratio": {
                                "enum": [
                                  "auto"
                                ]
                              }
                            }
                          },
                          "else": {
                            "properties": {
                              "aspect_ratio": {
                                "enum": [
                                  "21:9",
                                  "16:9",
                                  "4:3",
                                  "1:1",
                                  "3:4",
                                  "9:16"
                                ]
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "minimax-h3"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 5000
                      },
                      "duration": {
                        "type": "integer",
                        "enum": [
                          5,
                          6,
                          7,
                          8,
                          9,
                          10,
                          11,
                          12,
                          13,
                          14,
                          15
                        ],
                        "default": 5
                      },
                      "quality": {
                        "type": "string",
                        "enum": [
                          "768p",
                          "1440p"
                        ],
                        "default": "768p"
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "21:9",
                          "16:9",
                          "4:3",
                          "1:1",
                          "3:4",
                          "9:16",
                          "auto"
                        ],
                        "description": "省略时为16:9。"
                      },
                      "audio": {
                        "type": "boolean",
                        "const": false,
                        "description": "该模型不能通过CLI控制声音，省略或false不代表结果静音。"
                      },
                      "relax_mode": {
                        "type": "boolean",
                        "default": true,
                        "description": "默认开启休闲模式。显式false可能扣积分，仅用提交前积分大于500的合格账号。暂无合格账号时继续排队。关闭休闲不计入本服务的单账号休闲并发和每小时受理额度，平台实际容量仍生效。"
                      },
                      "reference_id": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "旧单图首帧模式：使用同一API Key上传的一个图片编号。不能与非空reference_ids同时使用。"
                      },
                      "reference_ids": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 9,
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{1,128}$"
                        },
                        "description": "多图参考模式：逐张上传后按顺序填写图片编号，最多9张；每张必须属于同一API Key。不会把参考图固定为首帧。"
                      },
                      "media": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 15,
                        "uniqueItems": true,
                        "items": {
                          "type": "object",
                          "required": [
                            "type",
                            "url"
                          ],
                          "additionalProperties": false,
                          "properties": {
                            "type": {
                              "enum": [
                                "first_frame",
                                "reference_image",
                                "reference_video",
                                "reference_audio"
                              ]
                            },
                            "url": {
                              "type": "string",
                              "format": "uri",
                              "maxLength": 2048,
                              "pattern": "^https://"
                            }
                          }
                        },
                        "description": "公网HTTPS参考素材。图片9张、视频3段、音频3段。首帧独占。不能与已上传素材ID混用。"
                      }
                    },
                    "allOf": [
                      {
                        "not": {
                          "required": [
                            "reference_id",
                            "reference_ids"
                          ],
                          "properties": {
                            "reference_id": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "required": [
                            "media"
                          ]
                        },
                        "then": {
                          "not": {
                            "anyOf": [
                              {
                                "required": [
                                  "reference_ids"
                                ]
                              },
                              {
                                "required": [
                                  "reference_id"
                                ],
                                "properties": {
                                  "reference_id": {
                                    "type": "string"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      },
                      {
                        "if": {
                          "required": [
                            "media"
                          ],
                          "properties": {
                            "media": {
                              "contains": {
                                "properties": {
                                  "type": {
                                    "const": "first_frame"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "then": {
                          "properties": {
                            "media": {
                              "maxItems": 1
                            },
                            "aspect_ratio": {
                              "enum": [
                                "21:9",
                                "16:9",
                                "4:3",
                                "1:1",
                                "3:4",
                                "9:16",
                                "auto"
                              ]
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "anyOf": [
                            {
                              "required": [
                                "reference_ids"
                              ]
                            },
                            {
                              "required": [
                                "media"
                              ],
                              "properties": {
                                "media": {
                                  "not": {
                                    "contains": {
                                      "properties": {
                                        "type": {
                                          "const": "first_frame"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          ]
                        },
                        "then": {
                          "properties": {
                            "duration": {
                              "enum": [
                                5,
                                6,
                                7,
                                8,
                                9,
                                10,
                                11,
                                12,
                                13,
                                14,
                                15
                              ]
                            },
                            "quality": {
                              "enum": [
                                "768p",
                                "1440p"
                              ]
                            },
                            "aspect_ratio": {
                              "enum": [
                                "21:9",
                                "16:9",
                                "4:3",
                                "1:1",
                                "3:4",
                                "9:16",
                                "auto"
                              ]
                            }
                          }
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "视频任务",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "object",
                    "model",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "object": {
                      "const": "video"
                    },
                    "model": {
                      "type": "string",
                      "enum": [
                        "wan-3.0",
                        "seedance-2.5-flash",
                        "minimax-h3"
                      ]
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "in_progress",
                        "completed",
                        "failed",
                        "requires_attention",
                        "cancelled"
                      ]
                    },
                    "parameters": {
                      "type": "object"
                    },
                    "content_url": {
                      "type": "string"
                    },
                    "video_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "已完成任务的上游成片 HTTPS 地址，仅当查询带 include=video_url 且原地址可返回时提供。"
                    },
                    "error": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "410": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/videos/{id}": {
      "get": {
        "summary": "查询同一API Key创建的任务",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include",
            "schema": {
              "const": "video_url"
            },
            "description": "已完成时请求返回上游成片的 HTTPS 地址。"
          }
        ],
        "responses": {
          "200": {
            "description": "视频任务",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "object",
                    "model",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "object": {
                      "const": "video"
                    },
                    "model": {
                      "type": "string",
                      "enum": [
                        "wan-3.0",
                        "seedance-2.5-flash",
                        "minimax-h3"
                      ]
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "in_progress",
                        "completed",
                        "failed",
                        "requires_attention",
                        "cancelled"
                      ]
                    },
                    "parameters": {
                      "type": "object"
                    },
                    "content_url": {
                      "type": "string"
                    },
                    "video_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "已完成任务的上游成片 HTTPS 地址，仅当查询带 include=video_url 且原地址可返回时提供。"
                    },
                    "error": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/videos/status-batch": {
      "post": {
        "summary": "批量查询当前 API Key 的视频任务",
        "description": "仅读取已有任务的状态。按请求顺序返回当前 Key 可见的任务。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ids"
                ],
                "additionalProperties": false,
                "properties": {
                  "ids": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 1000,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "include": {
                    "const": "video_url"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "当前 Key 可见的任务状态",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "object",
                          "model",
                          "status"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "object": {
                            "const": "video"
                          },
                          "model": {
                            "type": "string",
                            "enum": [
                              "wan-3.0",
                              "seedance-2.5-flash",
                              "minimax-h3"
                            ]
                          },
                          "status": {
                            "enum": [
                              "queued",
                              "in_progress",
                              "completed",
                              "failed",
                              "requires_attention",
                              "cancelled"
                            ]
                          },
                          "parameters": {
                            "type": "object"
                          },
                          "content_url": {
                            "type": "string"
                          },
                          "video_url": {
                            "type": "string",
                            "format": "uri",
                            "description": "已完成任务的上游成片 HTTPS 地址，仅当查询带 include=video_url 且原地址可返回时提供。"
                          },
                          "error": {
                            "type": [
                              "object",
                              "null"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/videos/{id}/content": {
      "get": {
        "summary": "下载已完成视频，需同一API Key",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "视频文件",
            "content": {
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "请求失败，查看error.code与error.message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
