{"openapi":"3.0.2","info":{"title":"bfl/flux-3-video","description":"The request body Comfy Router accepts for the model \"bfl/flux-3-video\", 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":"b0717bc17c9b"},"paths":{"/v2/models/bfl/flux-3-video":{"post":{"operationId":"runRouterModel","summary":"Run bfl/flux-3-video synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Request body for BFL FLUX 3 video generation. The mode field selects the generation type and decides which fields are required: t2v needs prompt; i2v needs prompt and keyframes; v2v needs prompt and start_video; draft_enhance needs draft_cache and accepts no other generation parameters.","example":{"mode":"t2v","prompt":"A slow dolly shot through a rain-soaked neon street at night"},"properties":{"aspect_ratio":{"default":"auto","description":"Output aspect ratio: auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, or 9:16. auto lets BFL choose from the prompt and any references.","type":"string"},"draft":{"default":false,"description":"Draft mode: generate a fast preview whose result includes a draft_cache download URL. Send that bundle back with mode draft_enhance to render the full-quality version of the same generation.","type":"boolean"},"draft_cache":{"description":"draft_enhance only. Encrypted draft-cache bundle from a prior draft generation, as the base64-encoded downloaded bundle or its still-valid http(s) URL. The original inputs are embedded in the bundle.","type":"string"},"duration":{"default":"auto","description":"Video duration in seconds (any whole second from 5 to 20), or auto to fit the content.","oneOf":[{"maximum":20,"minimum":5,"type":"integer"},{"type":"string"}]},"generate_audio":{"default":true,"description":"Generate synchronized audio alongside the video.","type":"boolean"},"keyframes":{"anyOf":[{"type":"string"},{"items":{"oneOf":[{"type":"number"},{"type":"string"}]},"maxItems":2,"minItems":2,"type":"array"},{"items":{"type":"string"},"maxItems":10,"minItems":1,"type":"array"},{"items":{"items":{"oneOf":[{"type":"number"},{"type":"string"}]},"maxItems":2,"minItems":2,"type":"array"},"maxItems":10,"minItems":1,"type":"array"}],"description":"i2v only. Images that become frames of the video, each an http(s) URL or base64, one to ten total. Accepts a single image, a list of images (one starts the video, two start and end it, more spread evenly and need a set duration), or timestamped [seconds, image] pairs in time order, e.g. [[0, \"...\"], [3.5, \"...\"]]. A pair is a two-element array: number of seconds first, then the image."},"mode":{"description":"Generation mode: t2v (text-to-video), i2v (image-continuation), v2v (video-continuation), or draft_enhance (full-quality render of a prior draft). Spelled-out aliases such as text-to-video are accepted.","type":"string"},"prompt":{"description":"Free-form prompt describing the video. Required for every mode except draft_enhance.","type":"string"},"resolution":{"description":"Video resolution class: hd (720p), or fhd (1080p), qhd (2K) or uhd (4K) for a higher-resolution result finished by the video upsampler. Defaults to hd for t2v, i2v and v2v, and to fhd for draft_enhance. Exact dimensions vary with the aspect ratio.","enum":["hd","fhd","qhd","uhd"],"type":"string"},"safety_tolerance":{"default":2,"description":"Tolerance level for input and output harm moderation, 0 strictest. Sexual content is limited to level 3 and hate content to level 2 regardless of the requested tolerance; requests with conditioning media are limited to level 2.","maximum":4,"minimum":0,"type":"integer"},"start_video":{"description":"v2v only. The video to continue, an http(s) URL or base64 MP4; the generated clip carries on from its final frames.","type":"string"},"version":{"default":"latest","description":"Endpoint version. latest serves the current release; dated pinnable release tags are added as they are published.","type":"string"}},"required":["mode"],"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":"Comfy Router output schema for `bfl/flux-3-video`: the terminal `GET /v1/get_result` document BFL returns, forwarded unchanged EXCEPT for the re-hosted result leaf described below - every other field is BFL's own. Router submits the generation and polls on the caller's behalf, so the body a caller receives is the finished status document rather than the task handle the underlying `/proxy/bfl/v1/flux-3-video` submit returns.\nThe result leaf DEPENDS ON THE MODE. The default mode returns `result.sample`; the `draft: true` mode returns `result.draft_cache` and no `sample`. Both are legitimate successes — Router's own poll classifier terminates on either — so `result` is an `anyOf` over the two rather than requiring `sample`. Branch on which key is present rather than on which is absent: `anyOf` asks for at least one leaf, so a document that carried both would still validate.\nBoth leaves are COMFY-HOSTED signed URLs, valid for up to 24 hours: Router re-hosts each asset onto Comfy storage and rewrites the leaf, so what a caller receives is a Comfy link and not BFL's own roughly two-hour delivery URL. Durability is per leaf, not per response: a leaf whose re-host could not be performed keeps BFL's own short-lived URL rather than a Comfy one, and the rest of the document is unaffected — so a caller that stores or replays this document should not assume every URL in it outlives the call. 24 hours is the CEILING, not a guarantee: the Comfy link is signed for 24 hours from the moment it is minted, and Router memoises it for 23 hours, so a later poll or an `Idempotency-Key` replay can hand back a link with as little as an hour left. Either way the link expires, so download the asset rather than storing the URL.\n`status` is deliberately NOT narrowed to the `BFLStatus` enum, for the reason `BFLRouterResultOutput` documents: Router forwards this field exactly as BFL spelled it and the classifier case-folds it before comparing.","example":{"cost":null,"id":"3f7a1b28-5c0d-4e91-8a6f-1b2c3d4e5f60","progress":null,"result":{"cost":null,"draft_cache":"https://example.invalid/bfl/flux-3-video/draft.mp4"},"status":"Ready"},"properties":{"cost":{"description":"Provider-reported cost in credits, populated once the task is Ready.","format":"float","nullable":true,"type":"number"},"id":{"description":"BFL task identifier.","type":"string"},"progress":{"description":"Optional generation progress reported by BFL.","format":"float","maximum":1,"minimum":0,"nullable":true,"type":"number"},"result":{"anyOf":[{"required":["sample"]},{"required":["draft_cache"]}],"description":"The finished generation. Exactly one of the two URL leaves is populated: `sample` in the default mode, `draft_cache` in `draft: true` mode.","properties":{"cost":{"description":"Provider-reported task cost. This is BFL's number, not the Comfy charge.","format":"double","nullable":true,"type":"number"},"draft_cache":{"description":"Signed URL returned INSTEAD of `sample` by the `draft: true` mode, re-hosted onto Comfy storage the same way `sample` is: normally a Comfy-hosted URL valid for up to 24 hours, and BFL's own roughly two-hour delivery URL when the re-host could not be performed.","format":"uri","type":"string"},"sample":{"description":"Signed URL for the generated MP4. Router re-hosts the asset onto Comfy storage and rewrites this field, so it is normally a Comfy-hosted URL valid for up to 24 hours - signed for 24 hours when minted and replayed from a 23-hour memo, so a later poll can hand back one with as little as an hour left; a leaf whose re-host could not be performed keeps BFL's own roughly two-hour delivery URL instead. Absent in `draft: true` mode.","format":"uri","type":"string"}},"type":"object"},"status":{"description":"Task status: Pending, Reasoning, Generating, Ready, Request Moderated, Content Moderated, Error, or Task not found. Compare case-insensitively; Router forwards BFL's spelling unchanged.","type":"string"}},"required":["id","status","result"],"type":"object"}}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"bfl/flux-3-video","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text","image"],"x-comfy-router-output-modalities":["video","audio"]}
