{"openapi":"3.1.0","info":{"title":"OOMOL 图像与视频 API 接口参考","version":"1.0.0","description":"[English](/public/docs?lang=en) · [简体中文](/public/docs?lang=zh-cn)\n\n这里列出已选择公开的厂商 API。请在 https://console.oomol.com/api-key 创建个人 API key，并作为 Bearer token 发送。可用性取决于具体模型和操作。网关鉴权和余额错误可能使用不同的响应格式。此 schema 未完整描述所有响应字段。"},"servers":[{"url":"https://fusion-api.oomol.com"}],"paths":{"/v1/provider/openai/v1/images/generations":{"post":{"tags":["provider-openai"],"summary":"生成 GPT 图片","description":"支持 gpt-image-2 和 gpt-image-2.5，仅支持同步响应。请关闭 SDK 自动重试。每份参考素材最大 10 MiB，每次请求和响应各最大 64 MiB。","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":32000,"description":"图片生成提示词","examples":["A minimalist product photo of a ceramic mug on a walnut table"]},"model":{"type":"string","enum":["gpt-image-2","gpt-image-2.5"]},"background":{"type":"string","enum":["transparent","opaque","auto"],"description":"背景模式","examples":["auto"]},"moderation":{"type":"string","enum":["auto","low"],"description":"内容审核严格程度","examples":["auto"]},"n":{"type":"integer","minimum":1,"maximum":10,"description":"生成图片的数量","examples":[1]},"output_compression":{"type":"integer","minimum":0,"maximum":100,"description":"JPEG 或 WebP 输出压缩程度"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"description":"输出图片格式","examples":["png"]},"quality":{"type":"string","enum":["auto","high","medium","low"]},"size":{"type":"string","minLength":1,"description":"输出图片尺寸","examples":["1536x864"]},"user":{"type":"string","minLength":1,"description":"最终用户标识","examples":["user-123"]},"stream":{"type":"boolean","enum":[false]}},"required":["prompt","model"],"additionalProperties":false},"examples":{"minimal":{"summary":"最低费用示例","value":{"model":"gpt-image-2","prompt":"A minimalist product photo of a ceramic mug on a walnut table","size":"1024x1024","quality":"low","n":1}}}}}},"responses":{"200":{"description":"生成的图片","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOpenAIImageResponse"}}}},"400":{"description":"图片请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":["string","null"]},"param":{"type":["string","null"]}},"required":["message","type","code","param"]}},"required":["error"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":["string","null"]},"param":{"type":["string","null"]}},"required":["message","type","code","param"]}},"required":["error"]}}}},"413":{"description":"图片或请求过大","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":["string","null"]},"param":{"type":["string","null"]}},"required":["message","type","code","param"]}},"required":["error"]}}}},"429":{"description":"请求频率超限"},"502":{"description":"上游请求失败或生成结果尚不确定"},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":["string","null"]},"param":{"type":["string","null"]}},"required":["message","type","code","param"]}},"required":["error"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/openai/v1/images/edits":{"post":{"tags":["provider-openai"],"summary":"编辑 GPT 图片","description":"支持 gpt-image-2 和 gpt-image-2.5，仅支持同步响应。请关闭 SDK 自动重试。每份参考素材最大 10 MiB，每次请求和响应各最大 64 MiB。","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":32000,"description":"图片编辑提示词","examples":["Replace the mug color with matte black and keep everything else unchanged"]},"model":{"type":"string","enum":["gpt-image-2","gpt-image-2.5"]},"background":{"type":"string","enum":["transparent","opaque","auto"],"description":"背景模式","examples":["auto"]},"n":{"type":"integer","minimum":1,"maximum":10,"description":"生成图片的数量","examples":[1]},"output_compression":{"type":"integer","minimum":0,"maximum":100,"description":"JPEG 或 WebP 输出压缩程度"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"description":"输出图片格式","examples":["png"]},"quality":{"type":"string","enum":["auto","high","medium","low"]},"size":{"type":"string","minLength":1,"description":"输出图片尺寸","examples":["1536x864"]},"user":{"type":"string","minLength":1,"description":"最终用户标识","examples":["user-123"]},"images":{"type":"array","items":{"type":"object","properties":{"image_url":{"type":"string","description":"可公开访问的图片 URL 或 Base64 编码的图片 data URL"}},"required":["image_url"],"additionalProperties":false},"minItems":1,"maxItems":16,"description":"用于编辑或合成的参考图片","examples":[[{"image_url":"https://static.oomol.com/community-banner/images/8d.png"}]]},"mask":{"type":"object","properties":{"image_url":{"type":"string","description":"可公开访问的图片 URL 或 Base64 编码的图片 data URL"}},"required":["image_url"],"additionalProperties":false,"description":"用于局部编辑的蒙版图片引用"},"stream":{"type":"boolean","enum":[false]}},"required":["prompt","model","images"],"additionalProperties":false},"examples":{"minimal":{"summary":"最低费用示例","value":{"model":"gpt-image-2","prompt":"Turn the picture into a watercolor painting","images":[{"image_url":"https://static.oomol.com/community-banner/images/8d.png"}],"size":"1024x1024","quality":"low","n":1}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["gpt-image-2","gpt-image-2.5"]},"prompt":{"type":"string","minLength":1,"maxLength":32000,"description":"图片编辑提示词","examples":["Replace the mug color with matte black and keep everything else unchanged"]},"image":{"anyOf":[{"type":"string","format":"binary"},{"type":"array","items":{"type":"string","format":"binary"},"maxItems":16}]},"mask":{"type":"string","format":"binary"},"n":{"type":"integer","minimum":1,"maximum":10,"description":"生成图片的数量","examples":[1]},"size":{"type":"string","minLength":1,"description":"输出图片尺寸","examples":["1536x864"]},"quality":{"type":"string","enum":["auto","high","medium","low"]},"background":{"type":"string","enum":["transparent","opaque","auto"],"description":"背景模式","examples":["auto"]},"output_format":{"type":"string","enum":["png","jpeg","webp"],"description":"输出图片格式","examples":["png"]},"output_compression":{"type":"integer","minimum":0,"maximum":100,"description":"JPEG 或 WebP 输出压缩程度"},"user":{"type":"string","minLength":1,"description":"最终用户标识","examples":["user-123"]},"stream":{"type":"boolean","enum":[false]}},"required":["model","prompt","image"]}}}},"responses":{"200":{"description":"生成的图片","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOpenAIImageResponse"}}}},"400":{"description":"图片请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":["string","null"]},"param":{"type":["string","null"]}},"required":["message","type","code","param"]}},"required":["error"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":["string","null"]},"param":{"type":["string","null"]}},"required":["message","type","code","param"]}},"required":["error"]}}}},"413":{"description":"图片或请求过大","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":["string","null"]},"param":{"type":["string","null"]}},"required":["message","type","code","param"]}},"required":["error"]}}}},"429":{"description":"请求频率超限"},"502":{"description":"上游请求失败或生成结果尚不确定"},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"type":["string","null"]},"param":{"type":["string","null"]}},"required":["message","type","code","param"]}},"required":["error"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/seedream/api/v3/images/generations":{"post":{"tags":["provider-seedream"],"summary":"生成 Seedream 图片","description":"当 stream 为 true 时，响应格式为 text/event-stream，而非 JSON。","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSeedreamCreate"},"examples":{"minimal":{"summary":"最低费用示例","value":{"model":"doubao-seedream-5-0-260128","prompt":"A minimalist product photo of a ceramic mug on a walnut table","size":"2K"}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"created":{"type":"number"},"data":{"type":"array","items":{}},"usage":{}},"required":["model","created","data"]}},"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/seedance/api/v3/contents/generations/tasks":{"post":{"tags":["provider-seedance"],"summary":"创建 Seedance 视频任务","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSeedanceCreate"},"examples":{"minimal":{"summary":"最低费用示例","value":{"model":"doubao-seedance-2-0-fast-260128","content":[{"type":"text","text":"A paper boat drifts slowly across a calm pond."}],"resolution":"480p","ratio":"16:9","duration":4,"generate_audio":false}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}}},"security":[{"OOMOLAPIKey":[]}]},"get":{"tags":["provider-seedance"],"summary":"列出 Seedance 视频任务","parameters":[{"schema":{"type":"number"},"required":false,"name":"page_num","in":"query"},{"schema":{"type":"number"},"required":false,"name":"page_size","in":"query"},{"schema":{"type":"string"},"required":false,"name":"filter.status","in":"query"},{"schema":{"type":"string"},"required":false,"name":"filter.model","in":"query"},{"schema":{"type":"array","items":{"type":"string","format":"uuid"}},"required":false,"name":"filter.task_ids","in":"query"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/seedance/api/v3/contents/generations/tasks/{id}":{"get":{"tags":["provider-seedance"],"summary":"查询 Seedance 视频任务","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"param":{"type":"null"}},"required":["code","message","type","param"]}},"required":["error"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/wanx/api/v1/services/aigc/video-generation/video-synthesis":{"post":{"tags":["provider-wanx"],"summary":"创建 Wanx 视频任务","description":"必须设置 X-DashScope-Async: enable。使用临时 oss:// 素材时，还必须设置 X-DashScope-OssResourceResolve: enable。","parameters":[{"schema":{"type":"string","enum":["enable"]},"required":true,"name":"x-dashscope-async","in":"header"},{"schema":{"type":"string","enum":["enable"]},"required":false,"name":"x-dashscope-ossresourceresolve","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderWanxCreate"},"examples":{"minimal":{"summary":"最低费用示例","value":{"model":"wan3.0-video","input":{"prompt":"A paper boat drifts slowly across a calm pond."},"parameters":{"resolution":"480P","ratio":"16:9","duration":2,"audio":false}}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string"},"output":{"type":"object","properties":{"task_id":{"type":"string"},"task_status":{"type":"string"}},"required":["task_id","task_status"]}},"required":["request_id","output"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/wanx/api/v1/tasks/{id}":{"get":{"tags":["provider-wanx"],"summary":"查询 Wanx 视频任务","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/wanx/api/v1/uploads":{"get":{"tags":["provider-wanx"],"summary":"获取 Wanx 上传策略","parameters":[{"schema":{"type":"string","enum":["getPolicy"]},"required":true,"name":"action","in":"query"},{"schema":{"type":"string","enum":["wan3.0-video"]},"required":true,"name":"model","in":"query"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string"},"data":{}},"required":["request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/wanx/api/v1/uploads/{id}":{"post":{"tags":["provider-wanx"],"summary":"上传 Wanx 临时素材","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"key":{"type":"string"},"policy":{"type":"string"},"Signature":{"type":"string"},"OSSAccessKeyId":{"type":"string"},"x-oss-object-acl":{"type":"string","enum":["private"]},"x-oss-forbid-overwrite":{"type":"string","enum":["true"]},"success_action_status":{"type":"string","enum":["200"]},"file":{"type":"string","format":"binary"}},"required":["key","policy","Signature","OSSAccessKeyId","x-oss-object-acl","x-oss-forbid-overwrite","success_action_status","file"]}}}},"responses":{"200":{"description":"上传完成"},"400":{"description":"上传请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"413":{"description":"上传内容过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/minimax/v2/video_generation":{"post":{"tags":["provider-minimax"],"summary":"创建 MiniMax 视频任务","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["MiniMax-H3"],"description":"视频模型"},"content":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":7000,"description":"视频提示词"}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["image_url"]},"image_url":{"type":"object","properties":{"url":{"type":"string","minLength":1,"description":"素材 URL 或数据 URI"}},"required":["url"],"additionalProperties":false},"role":{"type":"string","enum":["first_frame","last_frame","reference_image"]}},"required":["type","image_url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["video_url"]},"video_url":{"type":"object","properties":{"url":{"type":"string","minLength":1,"description":"素材 URL 或数据 URI"}},"required":["url"],"additionalProperties":false},"role":{"type":"string","enum":["reference_video"]}},"required":["type","video_url","role"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["audio_url"]},"audio_url":{"type":"object","properties":{"url":{"type":"string","minLength":1,"description":"素材 URL 或数据 URI"}},"required":["url"],"additionalProperties":false},"role":{"type":"string","enum":["reference_audio"]}},"required":["type","audio_url","role"],"additionalProperties":false}]},"minItems":1,"description":"多模态输入内容"},"resolution":{"type":"string","enum":["768P","2K"],"default":"2K","description":"输出分辨率"},"duration":{"type":"integer","minimum":4,"maximum":15,"description":"输出时长，单位秒"},"ratio":{"type":"string","enum":["adaptive","21:9","16:9","4:3","1:1","3:4","9:16"],"description":"输出宽高比"},"aigc_watermark":{"type":"boolean","description":"是否添加 AIGC 标识水印"}},"required":["model","content","duration"],"additionalProperties":false},"examples":{"minimal":{"summary":"最低费用示例","value":{"model":"MiniMax-H3","content":[{"type":"text","text":"A paper boat drifts slowly across a calm pond."}],"resolution":"768P","duration":4,"ratio":"16:9"}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"task_id":{"type":"string"}},"required":["task_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/minimax/v2/query/video_generation/{id}":{"get":{"tags":["provider-minimax"],"summary":"查询 MiniMax 视频任务","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"task":{}}}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"http_code":{"type":"string"}},"required":["type","message","http_code"]},"request_id":{"type":"string"}},"required":["type","error","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/minimax/v1/files/upload":{"post":{"tags":["provider-minimax"],"summary":"上传 MiniMax 输入文件","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"purpose":{"type":"string","enum":["video_generation_input"]},"file":{"type":"string","format":"binary"}},"required":["purpose","file"]}}}},"responses":{"200":{"description":"已上传的文件","content":{"application/json":{"schema":{"type":"object","properties":{"file":{},"base_resp":{}}}}}},"400":{"description":"上传请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"413":{"description":"上传内容过大","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/minimax/v1/files/list":{"get":{"tags":["provider-minimax"],"summary":"列出 MiniMax 输入文件","parameters":[{"schema":{"type":"string","enum":["video_generation_input"]},"required":true,"name":"purpose","in":"query"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{}},"base_resp":{}},"required":["files"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/minimax/v1/files/delete":{"post":{"tags":["provider-minimax"],"summary":"删除 MiniMax 输入文件","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file_id":{"anyOf":[{"type":"string"},{"type":"integer"}]},"purpose":{"type":"string","enum":["video_generation_input"]}},"required":["file_id","purpose"]},"examples":{"minimal":{"summary":"将 file_id 替换为上传返回的 ID","value":{"file_id":"<file_id>","purpose":"video_generation_input"}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"file_id":{"type":"string"},"base_resp":{}},"required":["file_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/text-to-video/kling-3.0-turbo":{"post":{"tags":["provider-kling"],"summary":"创建 Kling 文生视频任务","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":2500},"settings":{"type":"object","properties":{"resolution":{"type":"string","enum":["720p","1080p","4k"],"default":"720p"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"default":"16:9"},"duration":{"type":"integer","minimum":3,"maximum":15,"default":5},"audio":{"type":"string","enum":["off","native","original"]},"multi_shot":{"type":"boolean","default":false}},"default":{},"additionalProperties":false},"options":{"type":"object","properties":{"external_task_id":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","minLength":1,"maxLength":128}]},"watermark_info":{"type":"object","properties":{"enabled":{"type":"boolean","default":false}},"additionalProperties":false}},"additionalProperties":false}},"required":["prompt"],"additionalProperties":false},"examples":{"minimal":{"summary":"最低费用示例","value":{"prompt":"A paper boat drifts slowly across a calm pond.","settings":{"resolution":"720p","duration":3,"audio":"off"}}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/image-to-video/kling-3.0-turbo":{"post":{"tags":["provider-kling"],"summary":"创建 Kling 图生视频任务","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"contents":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["prompt"]},"text":{"type":"string","minLength":1,"maxLength":2500}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["first_frame","last_frame","refer_image","feature_video","base_video"]},"url":{"type":"string","pattern":"^[hH][tT][tT][pP][sS]?:\\/\\//u"},"id":{"type":"string","minLength":1}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["element"]},"element_id":{"type":"string","minLength":1,"maxLength":19},"id":{"type":"string","minLength":1}},"required":["type","element_id","id"],"additionalProperties":false}]},"minItems":1,"maxItems":10},"settings":{"type":"object","properties":{"resolution":{"type":"string","enum":["720p","1080p","4k"],"default":"720p"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"default":"16:9"},"duration":{"type":"integer","minimum":3,"maximum":15,"default":5},"audio":{"type":"string","enum":["off","native","original"]},"multi_shot":{"type":"boolean","default":false}},"default":{},"additionalProperties":false},"options":{"type":"object","properties":{"external_task_id":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","minLength":1,"maxLength":128}]},"watermark_info":{"type":"object","properties":{"enabled":{"type":"boolean","default":false}},"additionalProperties":false}},"additionalProperties":false}},"required":["contents"],"additionalProperties":false},"examples":{"minimal":{"summary":"最低费用示例","value":{"contents":[{"type":"prompt","text":"The camera slowly pushes in."},{"type":"first_frame","url":"https://wanx.alicdn.com/material/20250318/first_frame.png"}],"settings":{"resolution":"720p","duration":3,"audio":"off"}}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/text-to-video/kling-3.0":{"post":{"tags":["provider-kling"],"summary":"创建 Kling 文生视频任务","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":2500},"settings":{"type":"object","properties":{"resolution":{"type":"string","enum":["720p","1080p","4k"],"default":"720p"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"default":"16:9"},"duration":{"type":"integer","minimum":3,"maximum":15,"default":5},"audio":{"type":"string","enum":["off","native","original"]},"multi_shot":{"type":"boolean","default":false}},"default":{},"additionalProperties":false},"options":{"type":"object","properties":{"external_task_id":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","minLength":1,"maxLength":128}]},"watermark_info":{"type":"object","properties":{"enabled":{"type":"boolean","default":false}},"additionalProperties":false}},"additionalProperties":false}},"required":["prompt"],"additionalProperties":false},"examples":{"minimal":{"summary":"最低费用示例","value":{"prompt":"A paper boat drifts slowly across a calm pond.","settings":{"resolution":"720p","duration":3,"audio":"off"}}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/image-to-video/kling-3.0":{"post":{"tags":["provider-kling"],"summary":"创建 Kling 图生视频任务","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"contents":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["prompt"]},"text":{"type":"string","minLength":1,"maxLength":2500}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["first_frame","last_frame","refer_image","feature_video","base_video"]},"url":{"type":"string","pattern":"^[hH][tT][tT][pP][sS]?:\\/\\//u"},"id":{"type":"string","minLength":1}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["element"]},"element_id":{"type":"string","minLength":1,"maxLength":19},"id":{"type":"string","minLength":1}},"required":["type","element_id","id"],"additionalProperties":false}]},"minItems":1,"maxItems":10},"settings":{"type":"object","properties":{"resolution":{"type":"string","enum":["720p","1080p","4k"],"default":"720p"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"default":"16:9"},"duration":{"type":"integer","minimum":3,"maximum":15,"default":5},"audio":{"type":"string","enum":["off","native","original"]},"multi_shot":{"type":"boolean","default":false}},"default":{},"additionalProperties":false},"options":{"type":"object","properties":{"external_task_id":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","minLength":1,"maxLength":128}]},"watermark_info":{"type":"object","properties":{"enabled":{"type":"boolean","default":false}},"additionalProperties":false}},"additionalProperties":false}},"required":["contents"],"additionalProperties":false},"examples":{"minimal":{"summary":"最低费用示例","value":{"contents":[{"type":"prompt","text":"The camera slowly pushes in."},{"type":"first_frame","url":"https://wanx.alicdn.com/material/20250318/first_frame.png"}],"settings":{"resolution":"720p","duration":3,"audio":"off"}}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/omni-video/kling-3.0-omni":{"post":{"tags":["provider-kling"],"summary":"创建 Kling 全能视频任务","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"contents":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["prompt"]},"text":{"type":"string","minLength":1,"maxLength":2500}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["first_frame","last_frame","refer_image","feature_video","base_video"]},"url":{"type":"string","pattern":"^[hH][tT][tT][pP][sS]?:\\/\\//u"},"id":{"type":"string","minLength":1}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["element"]},"element_id":{"type":"string","minLength":1,"maxLength":19},"id":{"type":"string","minLength":1}},"required":["type","element_id","id"],"additionalProperties":false}]},"minItems":1,"maxItems":10},"settings":{"type":"object","properties":{"resolution":{"type":"string","enum":["720p","1080p","4k"],"default":"720p"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"default":"16:9"},"duration":{"type":"integer","minimum":3,"maximum":15,"default":5},"audio":{"type":"string","enum":["off","native","original"]},"multi_shot":{"type":"boolean","default":false}},"default":{},"additionalProperties":false},"options":{"type":"object","properties":{"external_task_id":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","minLength":1,"maxLength":128}]},"watermark_info":{"type":"object","properties":{"enabled":{"type":"boolean","default":false}},"additionalProperties":false}},"additionalProperties":false}},"required":["contents"],"additionalProperties":false},"examples":{"minimal":{"summary":"最低费用示例","value":{"contents":[{"type":"prompt","text":"The scene comes alive with a gentle breeze."},{"type":"refer_image","url":"https://static.oomol.com/community-banner/images/8d.png"}],"settings":{"resolution":"720p","duration":3,"audio":"off"}}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/tasks":{"get":{"tags":["provider-kling"],"summary":"查询 Kling 任务","description":"task_ids 和 external_task_ids 必须且只能填写一个，内容为 1–500 个以逗号分隔的 ID。","parameters":[{"schema":{"type":"string"},"required":false,"name":"task_ids","in":"query"},{"schema":{"type":"string"},"required":false,"name":"external_task_ids","in":"query"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]},"post":{"tags":["provider-kling"],"summary":"列出 Kling 任务","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"start_time":{"type":"integer","minimum":0,"maximum":8640000000000000},"end_time":{"type":"integer","minimum":0,"maximum":8640000000000000},"cursor":{"type":"string","maxLength":4096},"limit":{"type":"integer","minimum":1,"maximum":500,"default":100},"filters":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string","enum":["status"]},"values":{"type":"array","items":{"type":"string","enum":["submitted","processing","succeeded","failed"]},"minItems":1,"maxItems":4}},"required":["key","values"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string","enum":["product_type"]},"values":{"type":"array","items":{"type":"string","enum":["video","image","try_on"]},"minItems":1,"maxItems":3}},"required":["key","values"],"additionalProperties":false}]},"maxItems":2}},"additionalProperties":false},"examples":{"minimal":{"value":{"limit":10}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/v1/general/advanced-custom-elements":{"post":{"tags":["provider-kling"],"summary":"创建 Kling 主体","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"element_name":{"type":"string","minLength":1,"maxLength":20},"element_description":{"type":"string","minLength":1,"maxLength":100},"reference_type":{"type":"string","enum":["image_refer","video_refer"]},"element_image_list":{"type":"object","properties":{"frontal_image":{"type":"string","minLength":1},"refer_images":{"type":"array","items":{"type":"object","properties":{"image_url":{"type":"string","minLength":1}},"required":["image_url"],"additionalProperties":false},"minItems":1,"maxItems":3}},"required":["frontal_image","refer_images"],"additionalProperties":false},"element_video_list":{"type":"object","properties":{"refer_videos":{"type":"array","items":{"type":"object","properties":{"video_url":{"type":"string","format":"uri"}},"required":["video_url"],"additionalProperties":false}}},"required":["refer_videos"],"additionalProperties":false},"element_voice_id":{"type":"string","minLength":1},"tag_list":{"type":"array","items":{"type":"object","properties":{"tag_id":{"type":"string","enum":["o_101","o_102","o_103","o_104","o_105","o_106","o_107","o_108"]}},"required":["tag_id"],"additionalProperties":false},"maxItems":8},"external_task_id":{"type":"string","minLength":1,"maxLength":128}},"required":["element_name","element_description","reference_type"],"additionalProperties":false},"examples":{"minimal":{"value":{"element_name":"Example element","element_description":"Reference element created from the OpenAPI example","reference_type":"image_refer","element_image_list":{"frontal_image":"https://static.oomol.com/community-banner/images/8d.png","refer_images":[{"image_url":"https://static.oomol.com/community-banner/images/8d.png"}]}}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]},"get":{"tags":["provider-kling"],"summary":"列出 Kling 主体任务","parameters":[{"schema":{"type":"integer","minimum":1},"required":false,"name":"pageNum","in":"query"},{"schema":{"type":"integer","minimum":1},"required":false,"name":"pageSize","in":"query"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/v1/general/advanced-custom-elements/{id}":{"get":{"tags":["provider-kling"],"summary":"查询 Kling 主体任务","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/v1/general/advanced-presets-elements":{"get":{"tags":["provider-kling"],"summary":"列出 Kling 预设主体","parameters":[{"schema":{"type":"integer","minimum":1},"required":false,"name":"pageNum","in":"query"},{"schema":{"type":"integer","minimum":1},"required":false,"name":"pageSize","in":"query"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/v1/general/custom-voices":{"post":{"tags":["provider-kling"],"summary":"创建 Kling 音色","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"voice_name":{"type":"string","minLength":1,"maxLength":20},"voice_url":{"type":"string","format":"uri"},"external_task_id":{"type":"string","minLength":1,"maxLength":128}},"required":["voice_name","voice_url"],"additionalProperties":false},"examples":{"minimal":{"value":{"voice_name":"Example voice","voice_url":"https://dashscope.oss-cn-beijing.aliyuncs.com/samples/audio/paraformer/hello_world_female2.wav"}}}}}},"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"402":{"description":"OOMOL 余额不足","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"413":{"description":"请求体过大","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]},"get":{"tags":["provider-kling"],"summary":"列出 Kling 音色任务","parameters":[{"schema":{"type":"integer","minimum":1},"required":false,"name":"pageNum","in":"query"},{"schema":{"type":"integer","minimum":1},"required":false,"name":"pageSize","in":"query"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/v1/general/custom-voices/{id}":{"get":{"tags":["provider-kling"],"summary":"查询 Kling 音色任务","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/kling/v1/general/presets-voices":{"get":{"tags":["provider-kling"],"summary":"列出 Kling 预设音色","parameters":[{"schema":{"type":"integer","minimum":1},"required":false,"name":"pageNum","in":"query"},{"schema":{"type":"integer","minimum":1},"required":false,"name":"pageSize","in":"query"}],"responses":{"200":{"description":"厂商响应","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"400":{"description":"厂商请求无效","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"404":{"description":"资源或操作不存在","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"429":{"description":"请求频率超限","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"502":{"description":"上游服务错误","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}},"503":{"description":"厂商服务不可用","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"request_id":{"type":"string"},"data":{}},"required":["code","message","request_id"]}}}}},"security":[{"OOMOLAPIKey":[]}]}}},"components":{"schemas":{"ProviderWanxCreate":{"type":"object","properties":{"model":{"type":"string","enum":["wan3.0-video"]},"input":{"type":"object","properties":{"prompt":{"type":"string","maxLength":20000},"media":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["first_frame","last_frame","reference_image","reference_video","reference_audio","file","link"]},"url":{"type":"string","minLength":1}},"required":["type","url"],"additionalProperties":false},"minItems":1,"maxItems":20},"extend_prompt":{"type":"boolean"},"function":{"type":"string","enum":["video-synthesis"]}},"additionalProperties":false},"parameters":{"type":"object","properties":{"resolution":{"type":"string","enum":["480P","720P","1080P"],"default":"1080P"},"ratio":{"type":"string","enum":["adaptive","16:9","4:3","1:1","3:4","9:16"]},"duration":{"anyOf":[{"type":"number","enum":[-1]},{"type":"integer","minimum":2,"maximum":30}],"default":5},"audio":{"type":"boolean"},"prompt_extend":{"type":"boolean"},"watermark":{"type":"boolean"},"seed":{"type":"integer","minimum":-1,"maximum":2147483647}},"default":{},"additionalProperties":false}},"required":["model","input"],"additionalProperties":false},"ProviderSeedanceCreate":{"type":"object","properties":{"model":{"type":"string","enum":["doubao-seedance-2-0-260128","doubao-seedance-2-0-fast-260128","doubao-seedance-2-5-260628"],"default":"doubao-seedance-2-0-260128"},"content":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":1000}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["image_url"]},"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false},"role":{"type":"string","enum":["first_frame","last_frame","reference_image"],"default":"first_frame"}},"required":["type","image_url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["video_url"]},"video_url":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false},"role":{"type":"string","enum":["reference_video"],"default":"reference_video"}},"required":["type","video_url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["audio_url"]},"audio_url":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false},"role":{"type":"string","enum":["reference_audio"],"default":"reference_audio"}},"required":["type","audio_url"],"additionalProperties":false}]},"minItems":1},"resolution":{"type":"string","enum":["480p","720p","1080p"],"default":"720p"},"ratio":{"type":"string","enum":["16:9","4:3","1:1","3:4","9:16","21:9","adaptive"],"default":"adaptive"},"duration":{"type":"integer","default":5},"seed":{"type":"integer","minimum":-1,"maximum":4294967295},"watermark":{"type":"boolean","default":false},"generate_audio":{"type":"boolean","default":true},"return_last_frame":{"type":"boolean","default":false},"execution_expires_after":{"type":"integer","minimum":3600,"maximum":259200},"safety_identifier":{"type":"string","minLength":1,"maxLength":64},"tools":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["web_search"]}},"required":["type"],"additionalProperties":false}},"omni_reference_task_type":{"type":"string","enum":["auto","reference","edit","extend"]},"output_format":{"type":"string","enum":["mp4","mov"]}},"required":["content"],"additionalProperties":false},"ProviderSeedreamCreate":{"type":"object","properties":{"model":{"type":"string","enum":["doubao-seedream-5-0-260128"]},"prompt":{"type":"string","minLength":1,"maxLength":1000},"image":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":10}]},"size":{"type":"string","default":"2K"},"response_format":{"type":"string","enum":["url","b64_json"],"default":"url"},"output_format":{"type":"string","enum":["png","jpeg"]},"optimize_prompt_options":{"type":"object","properties":{"mode":{"type":"string","enum":["standard"]}},"additionalProperties":false},"stream":{"type":"boolean","default":false},"sequential_image_generation":{"type":"string","enum":["disabled","auto"],"default":"disabled"},"sequential_image_generation_options":{"type":"object","properties":{"max_images":{"type":"integer","minimum":1,"maximum":15}},"additionalProperties":false},"watermark":{"type":"boolean"},"tools":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["web_search"]}},"required":["type"],"additionalProperties":false}}},"required":["model","prompt"],"additionalProperties":false},"ProviderOpenAIImageResponse":{"type":"object","properties":{"created":{"type":"number"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"}},"additionalProperties":{}},"minItems":1,"maxItems":10}},"required":["created","data"],"additionalProperties":{}}},"securitySchemes":{"OOMOLAPIKey":{"type":"http","scheme":"bearer","description":"OOMOL 个人 API key"}}}}