{
  "openapi": "3.1.0",
  "info": {
    "title": "1Route Mixed Video API",
    "version": "1.3.0",
    "description": "Verify key access with GET /v1/models. Model-specific request or duration billing. Prices and limits: /mixed-models.json."
  },
  "servers": [
    {
      "url": "https://video.1route.dev"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/v1/videos": {
      "post": {
        "operationId": "createSeedanceFlatVideo",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt",
                      "seconds"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "sd2.0(fast903固定15秒720P)"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 15,
                        "maximum": 15
                      },
                      "resolution": {
                        "type": "string",
                        "enum": [
                          "720p"
                        ]
                      },
                      "images": {
                        "type": "array",
                        "minItems": 0,
                        "maxItems": 9,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "role": {
                                  "const": "reference_image"
                                }
                              }
                            }
                          ]
                        }
                      },
                      "audios": {
                        "type": "array",
                        "maxItems": 3,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                                }
                              }
                            }
                          ]
                        },
                        "description": "MP3 audio references only. URL paths must end in .mp3; signed query parameters are allowed. Renaming a non-MP3 file is insufficient."
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "16:9",
                          "9:16",
                          "1:1"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt",
                      "seconds"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "sd2.5(全参过人脸720P)"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 4,
                        "maximum": 30
                      },
                      "resolution": {
                        "type": "string",
                        "enum": [
                          "720p"
                        ]
                      },
                      "images": {
                        "type": "array",
                        "minItems": 0,
                        "maxItems": 30,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "role": {
                                  "const": "reference_image"
                                }
                              }
                            }
                          ]
                        }
                      },
                      "videos": {
                        "type": "array",
                        "maxItems": 10,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "seconds": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 3600
                                }
                              }
                            }
                          ]
                        }
                      },
                      "audios": {
                        "type": "array",
                        "maxItems": 10,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                                }
                              }
                            }
                          ]
                        },
                        "description": "MP3 audio references only. URL paths must end in .mp3; signed query parameters are allowed. Renaming a non-MP3 file is insufficient."
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "16:9",
                          "9:16",
                          "1:1"
                        ]
                      },
                      "face": {
                        "type": "boolean",
                        "default": false,
                        "description": "Optional face processing for human reference images"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt",
                      "seconds"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "minimax-h3(933/4-15秒/2K)"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 4,
                        "maximum": 15
                      },
                      "resolution": {
                        "type": "string",
                        "enum": [
                          "2k"
                        ]
                      },
                      "images": {
                        "type": "array",
                        "minItems": 0,
                        "maxItems": 9,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "role": {
                                  "const": "reference_image"
                                }
                              }
                            }
                          ]
                        }
                      },
                      "videos": {
                        "type": "array",
                        "maxItems": 3,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "seconds": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 3600
                                }
                              }
                            }
                          ]
                        }
                      },
                      "audios": {
                        "type": "array",
                        "maxItems": 3,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                                }
                              }
                            }
                          ]
                        },
                        "description": "MP3 audio references only. URL paths must end in .mp3; signed query parameters are allowed. Renaming a non-MP3 file is insufficient."
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "16:9",
                          "9:16",
                          "1:1",
                          "4:3",
                          "3:4"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt",
                      "seconds"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "minimax-h3(933/4-15秒/768p)"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 4,
                        "maximum": 15
                      },
                      "resolution": {
                        "type": "string",
                        "enum": [
                          "768p"
                        ]
                      },
                      "images": {
                        "type": "array",
                        "minItems": 0,
                        "maxItems": 9,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "role": {
                                  "const": "reference_image"
                                }
                              }
                            }
                          ]
                        }
                      },
                      "videos": {
                        "type": "array",
                        "maxItems": 3,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "seconds": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 3600
                                }
                              }
                            }
                          ]
                        }
                      },
                      "audios": {
                        "type": "array",
                        "maxItems": 3,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                                }
                              }
                            }
                          ]
                        },
                        "description": "MP3 audio references only. URL paths must end in .mp3; signed query parameters are allowed. Renaming a non-MP3 file is insufficient."
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "16:9",
                          "9:16",
                          "1:1",
                          "4:3",
                          "3:4"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt",
                      "seconds"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "sd2.0(933过人脸4-15秒)"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 4,
                        "maximum": 15
                      },
                      "resolution": {
                        "type": "string",
                        "enum": [
                          "720p"
                        ]
                      },
                      "images": {
                        "type": "array",
                        "minItems": 0,
                        "maxItems": 9,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "role": {
                                  "const": "reference_image"
                                }
                              }
                            }
                          ]
                        }
                      },
                      "videos": {
                        "type": "array",
                        "maxItems": 3,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "seconds": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 3600
                                }
                              }
                            }
                          ]
                        }
                      },
                      "audios": {
                        "type": "array",
                        "maxItems": 3,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                                }
                              }
                            }
                          ]
                        },
                        "description": "MP3 audio references only. URL paths must end in .mp3; signed query parameters are allowed. Renaming a non-MP3 file is insufficient."
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "16:9",
                          "9:16",
                          "1:1"
                        ]
                      },
                      "face": {
                        "type": "boolean",
                        "default": false,
                        "description": "Optional face processing for human reference images"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt",
                      "seconds"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "sd2.0(满血933过人脸4-15秒)"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 4,
                        "maximum": 15
                      },
                      "resolution": {
                        "type": "string",
                        "enum": [
                          "720p"
                        ]
                      },
                      "images": {
                        "type": "array",
                        "minItems": 0,
                        "maxItems": 9,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "role": {
                                  "const": "reference_image"
                                }
                              }
                            }
                          ]
                        }
                      },
                      "videos": {
                        "type": "array",
                        "maxItems": 3,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "seconds": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 3600
                                }
                              }
                            }
                          ]
                        }
                      },
                      "audios": {
                        "type": "array",
                        "maxItems": 3,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                                }
                              }
                            }
                          ]
                        },
                        "description": "MP3 audio references only. URL paths must end in .mp3; signed query parameters are allowed. Renaming a non-MP3 file is insufficient."
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "16:9",
                          "9:16",
                          "1:1"
                        ]
                      },
                      "face": {
                        "type": "boolean",
                        "default": false,
                        "description": "Optional face processing for human reference images"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt",
                      "seconds"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "wan3.0(满血10-5-5)"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 4,
                        "maximum": 30
                      },
                      "images": {
                        "type": "array",
                        "minItems": 0,
                        "maxItems": 10,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "role": {
                                  "const": "reference_image"
                                }
                              }
                            }
                          ]
                        }
                      },
                      "videos": {
                        "type": "array",
                        "maxItems": 5,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://"
                                },
                                "seconds": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 3600
                                }
                              }
                            }
                          ]
                        }
                      },
                      "audios": {
                        "type": "array",
                        "maxItems": 5,
                        "items": {
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "uri",
                              "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "url"
                              ],
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri",
                                  "pattern": "^https?://[^/?#]+/[^?#]*\\.[mM][pP]3(?:\\?[^#]*)?$"
                                }
                              }
                            }
                          ]
                        },
                        "description": "MP3 audio references only. URL paths must end in .mp3; signed query parameters are allowed. Renaming a non-MP3 file is insufficient."
                      },
                      "aspect_ratio": {
                        "type": "string",
                        "enum": [
                          "16:9",
                          "9:16",
                          "1:1"
                        ]
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Task response. A download URL may not be ready yet.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "in_progress",
                        "completed",
                        "failed",
                        "expired"
                      ]
                    },
                    "progress": {
                      "type": "number"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error; do not automatically repeat an ambiguous POST"
          }
        }
      }
    },
    "/v1/videos/{id}": {
      "get": {
        "operationId": "retrieveSeedanceFlatVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Task response. A download URL may not be ready yet.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "in_progress",
                        "completed",
                        "failed",
                        "expired"
                      ]
                    },
                    "progress": {
                      "type": "number"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error; do not automatically repeat an ambiguous POST"
          }
        }
      }
    },
    "/v1/videos/{id}/content": {
      "get": {
        "operationId": "downloadSeedanceFlatVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Prefer the exact signed metadata.url from a completed task, without forwarding a key. This authenticated path is an alternative while the artifact remains available.",
        "responses": {
          "200": {
            "description": "Video bytes",
            "content": {
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "410": {
            "description": "Video expired"
          }
        }
      }
    }
  }
}
