{"openapi":"3.0.2","info":{"title":"higgsfield/higgsfield-wan-3","description":"The request body Comfy Router accepts for the model \"higgsfield/higgsfield-wan-3\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"dfed30849551"},"paths":{"/v2/models/higgsfield/higgsfield-wan-3":{"post":{"operationId":"runRouterModel","summary":"Run higgsfield/higgsfield-wan-3 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Real wire request for Higgsfield's Wan 3.0 reference-to-video endpoint (alibaba/wan-3.0/reference-to-video). Unlike the Kling family the tier is a BODY field here (`resolution`). Higgsfield documents two rules JSON Schema cannot express and the provider therefore enforces: at least one reference input must be present, and `file_url` and `link_url` are mutually exclusive.\nComfy Router publishes and ENFORCES this schema for `POST /v2/models/higgsfield/higgsfield-wan-3`, which forwards the body below to Higgsfield untranslated. The alternate-provider leg `wan/wan3.0-video?model_provider=higgsfield` is a different route with a different contract: it takes `wan/wan3.0-video`'s own Wan-native body, is validated against that model's authored schema, and is translated onto this wire shape before dispatch. The two bodies are not interchangeable.","example":{"aspect_ratio":"adaptive","duration":8,"generate_audio":true,"image_urls":["https://cdn.example.com/character.jpg"],"prompt":"Use Image 1 for the character and Video 1 for the camera movement","resolution":"1080p","video_urls":["https://cdn.example.com/camera-reference.mp4"]},"properties":{"aspect_ratio":{"default":"adaptive","description":"Output aspect ratio. `adaptive` lets the model pick one from the input media.","enum":["adaptive","16:9","4:3","1:1","3:4","9:16"],"type":"string"},"audio_urls":{"description":"Public WAV or MP3 reference URLs, up to 5 files with a combined duration of at most 30 seconds.","items":{"type":"string"},"maxItems":5,"type":"array"},"duration":{"default":5,"description":"Output duration in seconds, 2-30. With video input, input duration plus output duration must not exceed 30 seconds — a cross-field rule the provider enforces.","maximum":30,"minimum":2,"type":"integer"},"enable_thinking":{"default":false,"description":"Enable additional reasoning. Higgsfield enables it automatically when `file_url` or `link_url` is supplied.","type":"boolean"},"file_url":{"description":"Public document URL used as context (PDF, DOCX, XLSX, PPTX, TXT, Markdown). Cannot be combined with `link_url`.","type":"string"},"generate_audio":{"default":true,"description":"Generate synchronized dialogue, ambience, sound effects and music.","type":"boolean"},"image_urls":{"description":"Public reference image URLs, up to 10.","items":{"type":"string"},"maxItems":10,"type":"array"},"link_url":{"description":"Public web page URL used as context. Cannot be combined with `file_url`.","type":"string"},"prompt":{"description":"Text instructions for the output. Reference the supplied assets by order — \"Image 1\", \"Video 1\", \"Audio 1\" — matching the order of the corresponding *_urls array.","type":"string"},"resolution":{"default":"1080p","description":"Output resolution tier. This is where Wan 3.0 carries its tier — the Kling family carries the equivalent choice in the path.","enum":["480p","720p","1080p"],"type":"string"},"seed":{"description":"Optional seed for reproducibility.","maximum":2147483647,"minimum":0,"type":"integer"},"video_urls":{"description":"Public reference video URLs, up to 5 clips with a combined duration of at most 30 seconds.","items":{"type":"string"},"maxItems":5,"type":"array"}},"required":["prompt"],"type":"object"}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"description":"Higgsfield's request envelope, returned BOTH by a generation POST (as `{status: \"queued\", request_id, status_url, cancel_url}`) and by the shared status route, which adds the output once the request completes. Only the video output is modelled here because the two enrolled families are video models; Higgsfield's own shared component also carries image and audio outputs for families Comfy does not enrol.\nThis is also the Comfy Router output schema for every Higgsfield video id Router publishes — `higgsfield/higgsfield-kling-3-{std,pro,4k}`, `higgsfield/higgsfield-kling-3-turbo` and `higgsfield/higgsfield-wan-3`. All five are SUBMIT-AND-POLL: Router polls the shared status route on the caller's behalf, so the body a caller receives is this TERMINAL document rather than the queued handle the generation POST answers with. A caller therefore reads `status: \"completed\"` with the download URL at `video.url`; `queued` and `in_progress` are in-flight states Router does not return, and `nsfw`, `failed` and `canceled` are the terminal failures. `url` is required on the video output, so a `completed` carrying no `video` is a contract break rather than a finished generation.","example":{"cancel_url":"https://api.higgsfield.ai/requests/6a83c1de-2f95-4b70-91c4-0d8e5f37ab16/cancel","request_id":"6a83c1de-2f95-4b70-91c4-0d8e5f37ab16","status":"completed","status_url":"https://api.higgsfield.ai/requests/6a83c1de-2f95-4b70-91c4-0d8e5f37ab16/status","video":{"url":"https://example.invalid/higgsfield/higgsfield-wan-3/generated.mp4"}},"properties":{"cancel_url":{"description":"Absolute URL used to cancel a request before processing starts.","type":"string"},"error":{"description":"Failure detail, set when `status` is `failed`.","nullable":true,"type":"string"},"request_id":{"description":"Stable identifier used for polling, cancellation and support.","type":"string"},"status":{"description":"Current request state.","enum":["queued","in_progress","nsfw","failed","completed","canceled"],"type":"string"},"status_url":{"description":"Absolute URL to poll until the request reaches a terminal state.","type":"string"},"video":{"$ref":"#/components/schemas/HiggsfieldMediaOutput"}},"required":["status","request_id"],"type":"object"}}}}}}}},"components":{"schemas":{"HiggsfieldMediaOutput":{"description":"One Higgsfield media output.","properties":{"url":{"description":"Download URL of the generated media.","type":"string"}},"required":["url"],"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"higgsfield/higgsfield-wan-3","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["image","video","text","audio"],"x-comfy-router-output-modalities":["video","audio"],"x-comfy-router-alias-of":"wan/wan3.0-video","x-comfy-router-alias-provider":"higgsfield"}
