{"openapi":"3.1.0","info":{"title":"OOMOL Image and Video API Reference","version":"1.0.0","description":"[English](/public/docs?lang=en) · [简体中文](/public/docs?lang=zh-cn)\n\nSelected provider APIs. Create a personal API key at https://console.oomol.com/api-key and send it as a Bearer token. Availability depends on the model and operation. Gateway authentication and balance errors may use a different response format. Unspecified response fields are not fully described by this schema."},"servers":[{"url":"https://fusion-api.oomol.com"}],"paths":{"/v1/provider/openai/v1/images/generations":{"post":{"tags":["provider-openai"],"summary":"Generate GPT images","description":"Supports gpt-image-2 and gpt-image-2.5. Synchronous responses only. Disable SDK retries. Up to 10 MiB per reference and 64 MiB per request and response.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":32000,"description":"Text prompt for image generation","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":"Background mode","examples":["auto"]},"moderation":{"type":"string","enum":["auto","low"],"description":"Content moderation strictness","examples":["auto"]},"n":{"type":"integer","minimum":1,"maximum":10,"description":"Number of images to generate","examples":[1]},"output_compression":{"type":"integer","minimum":0,"maximum":100,"description":"JPEG or WebP output compression level"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"description":"Output image format","examples":["png"]},"quality":{"type":"string","enum":["auto","high","medium","low"]},"size":{"type":"string","minLength":1,"description":"Output image size","examples":["1536x864"]},"user":{"type":"string","minLength":1,"description":"End-user identifier","examples":["user-123"]},"stream":{"type":"boolean","enum":[false]}},"required":["prompt","model"],"additionalProperties":false},"examples":{"minimal":{"summary":"Lowest cost","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":"Generated images","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOpenAIImageResponse"}}}},"400":{"description":"Invalid image request","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":"Insufficient OOMOL credit","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":"Image or request too large","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":"Rate limit exceeded"},"502":{"description":"Upstream failure or uncertain generation outcome"},"503":{"description":"Provider unavailable","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":"Edit GPT images","description":"Supports gpt-image-2 and gpt-image-2.5. Synchronous responses only. Disable SDK retries. Up to 10 MiB per reference and 64 MiB per request and response.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":32000,"description":"Text prompt for image editing","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":"Background mode","examples":["auto"]},"n":{"type":"integer","minimum":1,"maximum":10,"description":"Number of images to generate","examples":[1]},"output_compression":{"type":"integer","minimum":0,"maximum":100,"description":"JPEG or WebP output compression level"},"output_format":{"type":"string","enum":["png","jpeg","webp"],"description":"Output image format","examples":["png"]},"quality":{"type":"string","enum":["auto","high","medium","low"]},"size":{"type":"string","minLength":1,"description":"Output image size","examples":["1536x864"]},"user":{"type":"string","minLength":1,"description":"End-user identifier","examples":["user-123"]},"images":{"type":"array","items":{"type":"object","properties":{"image_url":{"type":"string","description":"Publicly accessible image URL or base64-encoded image data URL"}},"required":["image_url"],"additionalProperties":false},"minItems":1,"maxItems":16,"description":"Reference images to edit or compose from","examples":[[{"image_url":"https://static.oomol.com/community-banner/images/8d.png"}]]},"mask":{"type":"object","properties":{"image_url":{"type":"string","description":"Publicly accessible image URL or base64-encoded image data URL"}},"required":["image_url"],"additionalProperties":false,"description":"Mask image reference for partial edits"},"stream":{"type":"boolean","enum":[false]}},"required":["prompt","model","images"],"additionalProperties":false},"examples":{"minimal":{"summary":"Lowest cost","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":"Text prompt for image editing","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":"Number of images to generate","examples":[1]},"size":{"type":"string","minLength":1,"description":"Output image size","examples":["1536x864"]},"quality":{"type":"string","enum":["auto","high","medium","low"]},"background":{"type":"string","enum":["transparent","opaque","auto"],"description":"Background mode","examples":["auto"]},"output_format":{"type":"string","enum":["png","jpeg","webp"],"description":"Output image format","examples":["png"]},"output_compression":{"type":"integer","minimum":0,"maximum":100,"description":"JPEG or WebP output compression level"},"user":{"type":"string","minLength":1,"description":"End-user identifier","examples":["user-123"]},"stream":{"type":"boolean","enum":[false]}},"required":["model","prompt","image"]}}}},"responses":{"200":{"description":"Generated images","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOpenAIImageResponse"}}}},"400":{"description":"Invalid image request","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":"Insufficient OOMOL credit","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":"Image or request too large","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":"Rate limit exceeded"},"502":{"description":"Upstream failure or uncertain generation outcome"},"503":{"description":"Provider unavailable","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":"Generate Seedream images","description":"When stream is true, the response is text/event-stream instead of JSON.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSeedreamCreate"},"examples":{"minimal":{"summary":"Lowest cost","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":"Provider response","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":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"Create Seedance video task","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSeedanceCreate"},"examples":{"minimal":{"summary":"Lowest cost","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":"Provider response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"400":{"description":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"List Seedance video tasks","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":"Provider response","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"Get Seedance video task","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Provider response","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"Create Wanx video task","description":"Requires X-DashScope-Async: enable. Temporary oss:// media also requires 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":"Lowest cost","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":"Provider response","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":"Invalid provider request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"402":{"description":"Insufficient OOMOL credit","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"404":{"description":"Resource or operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"502":{"description":"Upstream error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"503":{"description":"Provider unavailable","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":"Get Wanx video task","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Provider response","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid provider request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"404":{"description":"Resource or operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"502":{"description":"Upstream error","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":"Get Wanx upload policy","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":"Provider response","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string"},"data":{}},"required":["request_id"]}}}},"400":{"description":"Invalid provider request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"404":{"description":"Resource or operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"502":{"description":"Upstream error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"503":{"description":"Provider unavailable","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":"Upload Wanx temporary media","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":"Upload completed"},"400":{"description":"Invalid upload","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"]}}}},"413":{"description":"Upload is too large","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":"Create MiniMax video task","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["MiniMax-H3"],"description":"Video model"},"content":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":7000,"description":"Video prompt"}},"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":"Media URL or data 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":"Media URL or data 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":"Media URL or data URI"}},"required":["url"],"additionalProperties":false},"role":{"type":"string","enum":["reference_audio"]}},"required":["type","audio_url","role"],"additionalProperties":false}]},"minItems":1,"description":"Multimodal input content"},"resolution":{"type":"string","enum":["768P","2K"],"default":"2K","description":"Output resolution"},"duration":{"type":"integer","minimum":4,"maximum":15,"description":"Output duration in seconds"},"ratio":{"type":"string","enum":["adaptive","21:9","16:9","4:3","1:1","3:4","9:16"],"description":"Output aspect ratio"},"aigc_watermark":{"type":"boolean","description":"Whether to add an AIGC watermark"}},"required":["model","content","duration"],"additionalProperties":false},"examples":{"minimal":{"summary":"Lowest cost","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":"Provider response","content":{"application/json":{"schema":{"type":"object","properties":{"task_id":{"type":"string"}},"required":["task_id"]}}}},"400":{"description":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"Get MiniMax video task","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Provider response","content":{"application/json":{"schema":{"type":"object","properties":{"task":{}}}}}},"400":{"description":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"Upload MiniMax input file","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":"Uploaded file","content":{"application/json":{"schema":{"type":"object","properties":{"file":{},"base_resp":{}}}}}},"400":{"description":"Invalid upload","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"413":{"description":"Upload is too large","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/minimax/v1/files/list":{"get":{"tags":["provider-minimax"],"summary":"List MiniMax input files","parameters":[{"schema":{"type":"string","enum":["video_generation_input"]},"required":true,"name":"purpose","in":"query"}],"responses":{"200":{"description":"Provider response","content":{"application/json":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{}},"base_resp":{}},"required":["files"]}}}},"400":{"description":"Invalid provider request","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"404":{"description":"Resource or operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"502":{"description":"Upstream error","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}}},"security":[{"OOMOLAPIKey":[]}]}},"/v1/provider/minimax/v1/files/delete":{"post":{"tags":["provider-minimax"],"summary":"Delete MiniMax input file","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":"Replace file_id with the ID returned by the upload","value":{"file_id":"<file_id>","purpose":"video_generation_input"}}}}}},"responses":{"200":{"description":"Provider response","content":{"application/json":{"schema":{"type":"object","properties":{"file_id":{"type":"string"},"base_resp":{}},"required":["file_id"]}}}},"400":{"description":"Invalid provider request","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"404":{"description":"Resource or operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"413":{"description":"Request body is too large","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"base_resp":{}}}}}},"502":{"description":"Upstream error","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":"Create Kling text-to-video task","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":"Lowest cost","value":{"prompt":"A paper boat drifts slowly across a calm pond.","settings":{"resolution":"720p","duration":3,"audio":"off"}}}}}}},"responses":{"200":{"description":"Provider response","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":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"Create Kling image-to-video task","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":"Lowest cost","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":"Provider response","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":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"Create Kling text-to-video task","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":"Lowest cost","value":{"prompt":"A paper boat drifts slowly across a calm pond.","settings":{"resolution":"720p","duration":3,"audio":"off"}}}}}}},"responses":{"200":{"description":"Provider response","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":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"Create Kling image-to-video task","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":"Lowest cost","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":"Provider response","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":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"Create Kling omni-video task","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":"Lowest cost","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":"Provider response","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":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"Get Kling tasks","description":"Supply exactly one of task_ids or external_task_ids as 1–500 comma-separated IDs.","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":"Provider response","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":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"List Kling tasks","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":"Provider response","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":"Invalid provider request","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Create Kling element","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":"Provider response","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":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"List Kling element tasks","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":"Provider response","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":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"Get Kling element task","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Provider response","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":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"List Kling preset elements","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":"Provider response","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":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"Create Kling voice","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":"Provider response","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":"Invalid provider request","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":"Insufficient OOMOL credit","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":"Resource or operation not found","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":"Request body is too large","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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":"List Kling voice tasks","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":"Provider response","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":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"Get Kling voice task","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Provider response","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":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"List Kling preset voices","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":"Provider response","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":"Invalid provider request","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":"Resource or operation not found","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":"Rate limit exceeded","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":"Upstream error","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":"Provider unavailable","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 personal API key"}}}}