{
  "openapi": "3.1.0",
  "info": {
    "title": "HangToken Media Tasks",
    "version": "0.1.0-local"
  },
  "security": [
    {
      "bearer": []
    }
  ],
  "paths": {
    "/v1/media/tasks": {
      "post": {
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Create"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Platform result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "default": {
            "description": "No automatic retry after submission uncertainty.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/media/tasks/{task_id}": {
      "get": {
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^task_[a-zA-Z0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Platform result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "default": {
            "description": "No automatic retry after submission uncertainty.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/media/tasks/{task_id}/artifacts": {
      "get": {
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^task_[a-zA-Z0-9]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Platform result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Artifacts"
                }
              }
            }
          },
          "default": {
            "description": "No automatic retry after submission uncertainty.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/media/tasks/{task_id}/artifacts/{artifact_id}/content": {
      "get": {
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^task_[a-zA-Z0-9]{32}$"
            }
          },
          {
            "name": "artifact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Platform result",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "Platform result",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "304": {
            "description": "Not modified"
          },
          "default": {
            "description": "No automatic retry after submission uncertainty.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^task_[a-zA-Z0-9]{32}$"
            }
          },
          {
            "name": "artifact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Platform result"
          },
          "206": {
            "description": "Platform result"
          },
          "304": {
            "description": "Not modified"
          },
          "default": {
            "description": "No automatic retry after submission uncertainty."
          }
        }
      }
    },
    "/v1/media/models": {
      "get": {
        "description": "Priced catalogue models in the authenticated token’s model and group scope. Not a live connectivity, balance or task acceptance check.",
        "responses": {
          "200": {
            "description": "Neutral HangToken model IDs",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Models"
                }
              }
            }
          },
          "default": {
            "description": "Platform error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "Create": {
        "anyOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.5-t2i-preview"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.5-i2i-preview"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-t2i"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-image"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-image"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "count": {
                    "const": 1
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-image"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-image"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "count": {
                    "const": 1
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gpt-image-2"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gpt-image-2"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "s-gpt-image-2"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "s-gpt-image-2"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "svip-gpt-image-2"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "svip-gpt-image-2"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gpt-image-2.5-flare"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gpt-image-2.5-flare"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gpt-image-2.5-sunburst"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gpt-image-2.5-sunburst"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "s-gpt-image-2.5-flare"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "s-gpt-image-2.5-flare"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "s-gpt-image-2.5-sunburst"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "s-gpt-image-2.5-sunburst"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "svip-gpt-image-2.5-flare"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "svip-gpt-image-2.5-flare"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "svip-gpt-image-2.5-sunburst"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "svip-gpt-image-2.5-sunburst"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-t2i-sg"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-image-sg"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-image-sg"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "count": {
                    "const": 1
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-image-sg"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-image-sg"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "count": {
                    "const": 1
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gemini-3-pro-image-preview"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gemini-3.1-flash-image-preview"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "svip-gemini-3-pro-image-preview"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "grok-imagine-image-2.0"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "grok-imagine-image-2.0"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gemini-nano-banana-2.1"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-4.0"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-4.0"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-4.5"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-4.5"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-5.0-lite"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-5.0-lite"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-5.0-pro"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-5.0-pro"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-5.0-flash"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedream-5.0-flash"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "dola-seedream-5.0-pro"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "dola-seedream-5.0-pro"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-4.0"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-4.0"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-4.5"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-4.5"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-5.0"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-5.0"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-4.0-filter"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-4.0-filter"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-4.5-filter"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-4.5-filter"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-5.0-filter"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedream-5.0-filter"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "dola-seedream-5.0-pro-filter"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "dola-seedream-5.0-pro-filter"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "dola-seedream-5.0-flash-filter"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "dola-seedream-5.0-flash-filter"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "MiniMax-H3"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "768p"
                  },
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "MiniMax-H3"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "768p"
                  },
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan3.0-video"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan3.0-video"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "last_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan3.0-video-prime"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan3.0-video-prime"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "last_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedance-2.0"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  },
                  "duration_seconds": {
                    "const": 6
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedance-2.0"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  },
                  "duration_seconds": {
                    "const": 6
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedance-2.0-fast"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  },
                  "duration_seconds": {
                    "const": 6
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedance-2.0-fast"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  },
                  "duration_seconds": {
                    "const": 6
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedance-2.0-mini"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  },
                  "duration_seconds": {
                    "const": 6
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "doubao-seedance-2.0-mini"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  },
                  "duration_seconds": {
                    "const": 6
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.5-i2v-preview"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.5-t2v-preview"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-t2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-i2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-r2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-r2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-i2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-r2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-r2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "happyhorse-1.1-t2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "happyhorse-1.1-i2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "happyhorse-1.1-r2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "happyhorse-1.1-r2v"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.5-i2v-preview-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-t2v-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-i2v-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-r2v-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.6-r2v-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-i2v-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-r2v-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-r2v-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-videoedit"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-videoedit"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "happyhorse-1.0-video-edit"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "happyhorse-1.0-video-edit"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-videoedit-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "wan2.7-videoedit-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-video-v3"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  },
                  "generate_audio": {
                    "const": false
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-video-v3"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "generate_audio": {
                    "const": false
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-video-v3-turbo"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-video-v3-turbo"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "generate_audio": {
                    "const": true
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-video-v3-omni"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "generate_audio": {
                    "const": false
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-video-v3-omni"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "generate_audio": {
                    "const": false
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-v3"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-v3"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "last_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-v3-omni"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "kling-v3-omni"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.0-assets"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.0-assets"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "task_id": {
                            "type": "string",
                            "pattern": "^task_[a-zA-Z0-9]{32}$"
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "task_id"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.0-assets"
              },
              "operation": {
                "const": "material.register"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "name",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.5-assets"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.5-assets"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "task_id": {
                            "type": "string",
                            "pattern": "^task_[a-zA-Z0-9]{32}$"
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "task_id"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.5-assets"
              },
              "operation": {
                "const": "material.register"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "name",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.0-assets-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.0-assets-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "task_id": {
                            "type": "string",
                            "pattern": "^task_[a-zA-Z0-9]{32}$"
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "task_id"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.0-assets-sg"
              },
              "operation": {
                "const": "material.register"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "name",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.5-assets-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.5-assets-sg"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "task_id": {
                            "type": "string",
                            "pattern": "^task_[a-zA-Z0-9]{32}$"
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "task_id"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "seedance-2.5-assets-sg"
              },
              "operation": {
                "const": "material.register"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "source"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "name",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "veo-3.1-generate-preview"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 8
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "veo-3.1-generate-preview"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 8
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "veo-3.1-fast-generate-preview"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 8
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "veo-3.1-fast-generate-preview"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 8
                  },
                  "resolution": {
                    "const": "720p"
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gemini-omni-flash-preview"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 8
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "gemini-omni-flash-preview"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 8
                  },
                  "aspect_ratio": {
                    "const": "16:9"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "dreamactor-m2.0"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "video"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "image-01"
              },
              "operation": {
                "const": "image.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "image-01"
              },
              "operation": {
                "const": "image.edit"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "minimax-hailuo-2.3"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "minimax-hailuo-2.3"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 6
                  },
                  "resolution": {
                    "const": "768p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "vidu-q2"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "minItems": 0,
                    "maxItems": 0
                  }
                },
                "required": [
                  "prompt"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "vidu-q2"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "reference"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 4
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "vidu-q2-pro"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "vidu-q2-pro"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "last_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "vidu-q2-turbo"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 1,
                    "maxItems": 1
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "model": {
                "const": "vidu-q2-turbo"
              },
              "operation": {
                "const": "video.generate"
              },
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1
                  },
                  "references": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "first_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "image"
                          },
                          "role": {
                            "const": "last_frame"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "type",
                          "role",
                          "url"
                        ]
                      }
                    ],
                    "minItems": 2,
                    "maxItems": 2
                  }
                },
                "required": [
                  "prompt",
                  "references"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "duration_seconds": {
                    "const": 5
                  },
                  "resolution": {
                    "const": "720p"
                  }
                },
                "required": []
              }
            },
            "required": [
              "model",
              "operation",
              "input"
            ]
          }
        ]
      },
      "Task": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "task_id": {
            "type": "string",
            "pattern": "^task_[a-zA-Z0-9]{32}$"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "model": {
            "type": "string",
            "enum": [
              "MiniMax-H3",
              "dola-seedream-5.0-flash-filter",
              "dola-seedream-5.0-pro",
              "dola-seedream-5.0-pro-filter",
              "doubao-seedance-2.0",
              "doubao-seedance-2.0-fast",
              "doubao-seedance-2.0-mini",
              "doubao-seedream-4.0",
              "doubao-seedream-4.5",
              "doubao-seedream-5.0-flash",
              "doubao-seedream-5.0-lite",
              "doubao-seedream-5.0-pro",
              "dreamactor-m2.0",
              "gemini-3-pro-image-preview",
              "gemini-3.1-flash-image-preview",
              "gemini-nano-banana-2.1",
              "gemini-omni-flash-preview",
              "gpt-image-2",
              "gpt-image-2.5-flare",
              "gpt-image-2.5-sunburst",
              "grok-imagine-image-2.0",
              "happyhorse-1.0-video-edit",
              "happyhorse-1.1-i2v",
              "happyhorse-1.1-r2v",
              "happyhorse-1.1-t2v",
              "image-01",
              "kling-v3",
              "kling-v3-omni",
              "kling-video-v3",
              "kling-video-v3-omni",
              "kling-video-v3-turbo",
              "minimax-hailuo-2.3",
              "s-gpt-image-2",
              "s-gpt-image-2.5-flare",
              "s-gpt-image-2.5-sunburst",
              "seedance-2.0-assets",
              "seedance-2.0-assets-sg",
              "seedance-2.5-assets",
              "seedance-2.5-assets-sg",
              "seedream-4.0",
              "seedream-4.0-filter",
              "seedream-4.5",
              "seedream-4.5-filter",
              "seedream-5.0",
              "seedream-5.0-filter",
              "svip-gemini-3-pro-image-preview",
              "svip-gpt-image-2",
              "svip-gpt-image-2.5-flare",
              "svip-gpt-image-2.5-sunburst",
              "veo-3.1-fast-generate-preview",
              "veo-3.1-generate-preview",
              "vidu-q2",
              "vidu-q2-pro",
              "vidu-q2-turbo",
              "wan2.5-i2i-preview",
              "wan2.5-i2v-preview",
              "wan2.5-i2v-preview-sg",
              "wan2.5-t2i-preview",
              "wan2.5-t2v-preview",
              "wan2.6-i2v",
              "wan2.6-i2v-sg",
              "wan2.6-image",
              "wan2.6-image-sg",
              "wan2.6-r2v",
              "wan2.6-r2v-sg",
              "wan2.6-t2i",
              "wan2.6-t2i-sg",
              "wan2.6-t2v",
              "wan2.6-t2v-sg",
              "wan2.7-i2v",
              "wan2.7-i2v-sg",
              "wan2.7-image",
              "wan2.7-image-sg",
              "wan2.7-r2v",
              "wan2.7-r2v-sg",
              "wan2.7-videoedit",
              "wan2.7-videoedit-sg",
              "wan3.0-video",
              "wan3.0-video-prime"
            ]
          },
          "operation": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "unknown"
            ]
          },
          "billing": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "recorded_quota": {
                "type": "integer",
                "description": "Recorded quota units; not currency or evidence of final settlement."
              },
              "unit": {
                "const": "quota"
              }
            },
            "required": [
              "recorded_quota",
              "unit"
            ]
          }
        },
        "required": [
          "task_id",
          "request_id",
          "model",
          "operation",
          "status",
          "billing"
        ]
      },
      "Artifacts": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "task_id": {
            "type": "string",
            "pattern": "^task_[a-zA-Z0-9]{32}$"
          },
          "artifacts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "type": {
                  "enum": [
                    "image",
                    "video",
                    "audio",
                    "file"
                  ]
                },
                "content_url": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "id",
                "type",
                "content_url"
              ]
            }
          }
        },
        "required": [
          "task_id",
          "artifacts"
        ]
      },
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "error": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "code": {
                "enum": [
                  "invalid_input",
                  "unsupported_option",
                  "model_unavailable",
                  "unauthorized",
                  "forbidden",
                  "not_found",
                  "pricing_unavailable",
                  "insufficient_quota",
                  "rate_limited",
                  "upstream_rejected",
                  "upstream_unavailable",
                  "outcome_unknown"
                ]
              },
              "message": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "code",
              "message"
            ]
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "error",
          "request_id"
        ]
      },
      "Models": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "models": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string",
              "enum": [
                "MiniMax-H3",
                "dola-seedream-5.0-flash-filter",
                "dola-seedream-5.0-pro",
                "dola-seedream-5.0-pro-filter",
                "doubao-seedance-2.0",
                "doubao-seedance-2.0-fast",
                "doubao-seedance-2.0-mini",
                "doubao-seedream-4.0",
                "doubao-seedream-4.5",
                "doubao-seedream-5.0-flash",
                "doubao-seedream-5.0-lite",
                "doubao-seedream-5.0-pro",
                "dreamactor-m2.0",
                "gemini-3-pro-image-preview",
                "gemini-3.1-flash-image-preview",
                "gemini-nano-banana-2.1",
                "gemini-omni-flash-preview",
                "gpt-image-2",
                "gpt-image-2.5-flare",
                "gpt-image-2.5-sunburst",
                "grok-imagine-image-2.0",
                "happyhorse-1.0-video-edit",
                "happyhorse-1.1-i2v",
                "happyhorse-1.1-r2v",
                "happyhorse-1.1-t2v",
                "image-01",
                "kling-v3",
                "kling-v3-omni",
                "kling-video-v3",
                "kling-video-v3-omni",
                "kling-video-v3-turbo",
                "minimax-hailuo-2.3",
                "s-gpt-image-2",
                "s-gpt-image-2.5-flare",
                "s-gpt-image-2.5-sunburst",
                "seedance-2.0-assets",
                "seedance-2.0-assets-sg",
                "seedance-2.5-assets",
                "seedance-2.5-assets-sg",
                "seedream-4.0",
                "seedream-4.0-filter",
                "seedream-4.5",
                "seedream-4.5-filter",
                "seedream-5.0",
                "seedream-5.0-filter",
                "svip-gemini-3-pro-image-preview",
                "svip-gpt-image-2",
                "svip-gpt-image-2.5-flare",
                "svip-gpt-image-2.5-sunburst",
                "veo-3.1-fast-generate-preview",
                "veo-3.1-generate-preview",
                "vidu-q2",
                "vidu-q2-pro",
                "vidu-q2-turbo",
                "wan2.5-i2i-preview",
                "wan2.5-i2v-preview",
                "wan2.5-i2v-preview-sg",
                "wan2.5-t2i-preview",
                "wan2.5-t2v-preview",
                "wan2.6-i2v",
                "wan2.6-i2v-sg",
                "wan2.6-image",
                "wan2.6-image-sg",
                "wan2.6-r2v",
                "wan2.6-r2v-sg",
                "wan2.6-t2i",
                "wan2.6-t2i-sg",
                "wan2.6-t2v",
                "wan2.6-t2v-sg",
                "wan2.7-i2v",
                "wan2.7-i2v-sg",
                "wan2.7-image",
                "wan2.7-image-sg",
                "wan2.7-r2v",
                "wan2.7-r2v-sg",
                "wan2.7-videoedit",
                "wan2.7-videoedit-sg",
                "wan3.0-video",
                "wan3.0-video-prime"
              ]
            }
          }
        },
        "required": [
          "models"
        ]
      }
    }
  }
}
