{"openapi":"3.0.2","info":{"title":"higgsfield/higgsfield-kling-3-std","description":"The request body Comfy Router accepts for the model \"higgsfield/higgsfield-kling-3-std\", 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":"0bc803003752"},"paths":{"/v2/models/higgsfield/higgsfield-kling-3-std":{"post":{"operationId":"runRouterModel","summary":"Run higgsfield/higgsfield-kling-3-std synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Real wire request for Higgsfield's Kling 3.0 std/pro/4k text-to-video endpoints. The three tiers share one documented input schema; the tier itself is the PATH segment, so it has no body field here. `prompt` is not required because Higgsfield documents a multi-shot form (`multi_shots: true` with `multi_prompt`) in which the top-level prompt is unused. Comfy Router publishes and ENFORCES this schema for all three tiers: `POST /v2/models/higgsfield/higgsfield-kling-3-{std,pro,4k}` forwards the body below to Higgsfield untranslated, and a body outside the bounds declared here is refused with `422 invalid_input` before any provider is dialled.\n`std` additionally has a SECOND route, which does not take this body: the alternate-provider leg `kling/kling-v3?model_provider=higgsfield` takes `kling/kling-v3`'s own Kling-native body (with `mode`), is validated against that model's authored schema, and is translated onto this wire shape before dispatch. Build a Higgsfield body for `higgsfield/higgsfield-kling-3-std` and a Kling body for `kling/kling-v3?model_provider=higgsfield`; they are not interchangeable.","example":{"aspect_ratio":"16:9","cfg_scale":0.5,"duration":5,"prompt":"A cinematic glass pavilion in a misty pine forest at sunrise","sound":"on"},"properties":{"aspect_ratio":{"default":"16:9","description":"Output aspect ratio.","enum":["16:9","9:16","1:1"],"type":"string"},"cfg_scale":{"default":0.5,"description":"How strongly the generation follows the prompt. Higgsfield documents 0-1 in increments of 0.01, but only the 0-1 bound is declared here: a `multipleOf: 0.01` would be evaluated in binary floating point and would refuse ordinary values such as 0.3, so a finer-grained value is ACCEPTED and forwarded rather than refused, the same way `prompt` caveats its undeclared length ceiling.","maximum":1,"minimum":0,"type":"number"},"duration":{"default":5,"description":"Output duration in seconds. Supported range: 3-15.","maximum":15,"minimum":3,"type":"integer"},"elements":{"description":"Reusable Kling element ids, for subject consistency across generations.","items":{"type":"string"},"type":"array"},"multi_prompt":{"description":"Ordered shot definitions, used when `multi_shots` is true. 1-6 shots; the per-shot durations are bounded by the task's own total duration, which is not expressible here.","items":{"$ref":"#/components/schemas/HiggsfieldKling30Shot"},"maxItems":6,"minItems":1,"type":"array"},"multi_shots":{"default":false,"description":"Enable a multi-shot sequence. When true, `multi_prompt` carries the per-shot definitions.","type":"boolean"},"prompt":{"description":"Prompt describing the desired output. Higgsfield documents that Kling uses up to the first 2,500 characters and truncates beyond that, so no maxLength is declared — a longer body is accepted, not refused.","type":"string"},"sound":{"default":"on","description":"Enable or disable generated sound.","enum":["on","off"],"type":"string"}},"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/0c4a9e17-5b82-4d66-9a3f-7c1e08b45d29/cancel","request_id":"0c4a9e17-5b82-4d66-9a3f-7c1e08b45d29","status":"completed","status_url":"https://api.higgsfield.ai/requests/0c4a9e17-5b82-4d66-9a3f-7c1e08b45d29/status","video":{"url":"https://example.invalid/higgsfield/higgsfield-kling-3-std/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":{"HiggsfieldKling30Shot":{"description":"One shot of a Higgsfield Kling 3.0 multi-shot sequence.","properties":{"duration":{"description":"Duration of this shot in seconds, 1-15. The sum across shots must not exceed the task's total duration, which JSON Schema cannot express; Higgsfield enforces it.","maximum":15,"minimum":1,"type":"integer"},"prompt":{"description":"Prompt for this shot. Higgsfield documents a 512-character ceiling.","maxLength":512,"type":"string"}},"type":"object"},"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-kling-3-std","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text"],"x-comfy-router-output-modalities":["video","audio"],"x-comfy-router-alias-of":"kling/kling-v3","x-comfy-router-alias-provider":"higgsfield"}
