{
  "openapi": "3.1.0",
  "info": {
    "title": "1Route MiniMax Video API",
    "version": "1.1.0",
    "description": "Canonical JSON fields for currently enabled models only. Capability and price snapshot: /models.json. Paused variants are excluded."
  },
  "servers": [
    {
      "url": "https://video.1route.dev"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/v1/videos": {
      "post": {
        "operationId": "createMiniMaxVideo",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "model",
                      "prompt",
                      "seconds"
                    ],
                    "properties": {
                      "model": {
                        "type": "string",
                        "const": "minimax-h3-8img3audio"
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 5,
                        "maximum": 15
                      },
                      "resolution": {
                        "type": "string",
                        "enum": [
                          "480p",
                          "768p"
                        ]
                      },
                      "ratio": {
                        "type": "string",
                        "enum": [
                          "16:9",
                          "9:16"
                        ]
                      },
                      "images": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uri",
                          "pattern": "^https?://"
                        },
                        "maxItems": 8
                      },
                      "videos": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uri",
                          "pattern": "^https?://"
                        },
                        "maxItems": 0
                      },
                      "audios": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uri",
                          "pattern": "^https?://"
                        },
                        "maxItems": 3
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Task response; completion does not guarantee download readiness",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "object": {
                      "const": "video"
                    },
                    "model": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "in_progress",
                        "completed",
                        "failed",
                        "expired"
                      ]
                    },
                    "progress": {
                      "type": "number"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Service error; preserve task/request ID. Never automatically repeat ambiguous creation."
          }
        }
      }
    },
    "/v1/videos/{id}": {
      "get": {
        "operationId": "retrieveVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Task response; completion does not guarantee download readiness",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "object": {
                      "const": "video"
                    },
                    "model": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "in_progress",
                        "completed",
                        "failed",
                        "expired"
                      ]
                    },
                    "progress": {
                      "type": "number"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Service error; preserve task/request ID. Never automatically repeat ambiguous creation."
          }
        }
      }
    }
  }
}
