The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Kandinsky 6.0 in the cloud: Pro or Lite clips with dialogue and sound priced by their steps, and Kandinsky VSR priced per output frame
Claudecbee712d5b4e
diff --git a/docs/research/new-models-10.json b/docs/research/new-models-10.jsonindex 99c5f512..82e48fa0 100644--- a/docs/research/new-models-10.json+++ b/docs/research/new-models-10.json@@ -3943,6 +3943,720 @@"notes": "Nine premade voices (voice enum) or a cloned voice (speaker_voice_embedding_file_url from clone-voice; voice is then ignored). Its own prompt field is a style hint for a premade voice, not a voice design.","sourceUrl": "https://fal.ai/models/fal-ai/qwen-3-tts/text-to-speech/1.7b/api","schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/qwen-3-tts/text-to-speech/1.7b"+ },+ {+ "family": "kandinsky-6",+ "model": "Kandinsky 6.0 Pro",+ "title": "Kandinsky 6.0 Pro",+ "vendor": "Kandinsky Lab",+ "operation": "t2v",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-pro/text-to-video",+ "variant": "pro",+ "falCategory": "text-to-video",+ "status": "active",+ "keyFields": {+ "prompt": "prompt",+ "aspectRatio": "aspect_ratio",+ "generateAudio": "generate_audio",+ "seed": "seed",+ "steps": "num_inference_steps",+ "enhancePrompt": "enable_prompt_expansion",+ "negativePrompt": "negative_prompt"+ },+ "inputs": {+ "prompt": {+ "type": "string",+ "required": true,+ "desc": "The text prompt describing the video and its sound.",+ "examples": [+ "A cat and a dog baking a cake together in a kitchen. The cat whisks batter while the dog sniffs the flour; a kitchen timer ticks and a mixer hums in the background."+ ]+ },+ "negative_prompt": {+ "nullable": true,+ "type": "string",+ "required": false,+ "desc": "What to avoid in the video. Defaults to the model's built-in negative prompt."+ },+ "aspect_ratio": {+ "type": "enum",+ "values": [+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4"+ ],+ "valueType": "string",+ "required": false,+ "default": "16:9",+ "desc": "The aspect ratio of the generated video."+ },+ "generate_audio": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Whether to generate a synchronized audio track."+ },+ "enable_prompt_expansion": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "Whether to rewrite the prompt into a detailed video+audio description with the model's own Qwen2.5-VL text encoder before generating."+ },+ "upscale_factor": {+ "nullable": true,+ "type": "enum",+ "values": [+ 2,+ 2.25,+ 4,+ null+ ],+ "valueType": "number",+ "required": false,+ "desc": "If set, upscale the generated video by this factor with Kandinsky 6 video super-resolution. One of 2, 2.25 or 4; 2.25 turns the 480p output into 1080p."+ },+ "seed": {+ "nullable": true,+ "type": "integer",+ "required": false,+ "desc": "The random seed used for the generation process."+ },+ "sync_mode": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history."+ },+ "num_inference_steps": {+ "type": "integer",+ "required": false,+ "default": 50,+ "minimum": 8,+ "maximum": 50,+ "desc": "The number of denoising steps."+ },+ "guidance_scale": {+ "type": "number",+ "required": false,+ "default": 5,+ "minimum": 1,+ "maximum": 10,+ "desc": "Classifier-free guidance strength."+ },+ "enable_safety_checker": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Authorized callers may set false to request relaxed screening."+ }+ },+ "output": "video.url",+ "price": "A 5-second 480p video costs $1.35 at the default 50 steps. 20 steps cost $0.56, 8 steps cost $0.24, and each step adds about $0.027. Upscaling (16:9) adds $0.14 for 2×, $0.18 for 1080p and $0.56 for 4×, so at 50 steps these cost $1.49, $1.53 and $1.91. For example, 8 steps with 4× upscaling costs about $0.79.",+ "pricing": {+ "usd": 1.35,+ "unit": "video",+ "seconds": 5,+ "resolution": "480p",+ "defaultSteps": 50,+ "bySteps": {+ "8": 0.24,+ "20": 0.56,+ "50": 1.35+ },+ "upscaleAdds": {+ "2": 0.14,+ "2.25": 0.18,+ "4": 0.56+ }+ },+ "license": "MIT (Kandinsky 6.0 weights, kandinskylab/Kandinsky-6.0-*-Diffusers model cards); the Qwen2.5-VL 7B text encoder is Apache-2.0, the BigVGAN v2 vocoder MIT (NVIDIA), the MMAudio audio VAE MIT",+ "notes": "5 s at 24 fps, 480p; the sound is made with the picture (generate_audio). Spoken lines go in the prompt; enable_prompt_expansion rewrites a short prompt first (off by default). upscale_factor runs the VSR after it, at extra cost.",+ "verified": true,+ "sourceUrl": "https://fal.ai/models/fal-ai/kandinsky6-pro/text-to-video",+ "schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/kandinsky6-pro/text-to-video",+ "capability": "t2v",+ "fetched": "2026-11-02"+ },+ {+ "family": "kandinsky-6",+ "model": "Kandinsky 6.0 Pro",+ "title": "Kandinsky 6.0 Pro",+ "vendor": "Kandinsky Lab",+ "operation": "i2v",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-pro/image-to-video",+ "variant": "pro",+ "falCategory": "image-to-video",+ "status": "active",+ "keyFields": {+ "prompt": "prompt",+ "aspectRatio": "aspect_ratio",+ "generateAudio": "generate_audio",+ "seed": "seed",+ "steps": "num_inference_steps",+ "enhancePrompt": "enable_prompt_expansion",+ "negativePrompt": "negative_prompt",+ "image": "image_url"+ },+ "inputs": {+ "prompt": {+ "type": "string",+ "required": true,+ "desc": "The text prompt describing the video and its sound.",+ "examples": [+ "A cat and a dog baking a cake together in a kitchen. The cat whisks batter while the dog sniffs the flour; a kitchen timer ticks and a mixer hums in the background."+ ]+ },+ "image_url": {+ "type": "string",+ "required": true,+ "desc": "The image used as the first frame of the video.",+ "examples": [+ "https://storage.googleapis.com/falserverless/example_inputs/ltxv-2-i2v-input.jpg"+ ]+ },+ "negative_prompt": {+ "nullable": true,+ "type": "string",+ "required": false,+ "desc": "What to avoid in the video. Defaults to the model's built-in negative prompt."+ },+ "aspect_ratio": {+ "type": "union",+ "variants": [+ {+ "type": "enum",+ "values": [+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4"+ ],+ "valueType": "string",+ "required": false+ },+ {+ "type": "string",+ "required": false+ }+ ],+ "default": "auto",+ "desc": "The aspect ratio of the generated video. `auto` picks the supported ratio closest to the image's; the image is center-cropped to it."+ },+ "generate_audio": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Whether to generate a synchronized audio track."+ },+ "enable_prompt_expansion": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "Whether to rewrite the prompt into a detailed video+audio description with the model's own Qwen2.5-VL text encoder before generating."+ },+ "upscale_factor": {+ "nullable": true,+ "type": "enum",+ "values": [+ 2,+ 2.25,+ 4,+ null+ ],+ "valueType": "number",+ "required": false,+ "desc": "If set, upscale the generated video by this factor with Kandinsky 6 video super-resolution. One of 2, 2.25 or 4; 2.25 turns the 480p output into 1080p."+ },+ "seed": {+ "nullable": true,+ "type": "integer",+ "required": false,+ "desc": "The random seed used for the generation process."+ },+ "sync_mode": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history."+ },+ "num_inference_steps": {+ "type": "integer",+ "required": false,+ "default": 50,+ "minimum": 8,+ "maximum": 50,+ "desc": "The number of denoising steps."+ },+ "guidance_scale": {+ "type": "number",+ "required": false,+ "default": 5,+ "minimum": 1,+ "maximum": 10,+ "desc": "Classifier-free guidance strength."+ },+ "enable_safety_checker": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Authorized callers may set false to request relaxed screening."+ }+ },+ "output": "video.url",+ "price": "A 5-second 480p video costs $1.40 at the default 50 steps. 20 steps cost $0.58, 8 steps cost $0.25, and each step adds about $0.027. Upscaling (16:9) adds $0.14 for 2×, $0.18 for 1080p and $0.58 for 4×, so at 50 steps these cost $1.54, $1.58 and $1.98 (square output at 4×: $1.97). For example, 8 steps with 4× upscaling costs about $0.82.",+ "pricing": {+ "usd": 1.4,+ "unit": "video",+ "seconds": 5,+ "resolution": "480p",+ "defaultSteps": 50,+ "bySteps": {+ "8": 0.25,+ "20": 0.58,+ "50": 1.4+ },+ "upscaleAdds": {+ "2": 0.14,+ "2.25": 0.18,+ "4": 0.58+ }+ },+ "license": "MIT (Kandinsky 6.0 weights, kandinskylab/Kandinsky-6.0-*-Diffusers model cards); the Qwen2.5-VL 7B text encoder is Apache-2.0, the BigVGAN v2 vocoder MIT (NVIDIA), the MMAudio audio VAE MIT",+ "notes": "5 s at 24 fps, 480p; the sound is made with the picture (generate_audio). Spoken lines go in the prompt; enable_prompt_expansion rewrites a short prompt first (off by default). upscale_factor runs the VSR after it, at extra cost.",+ "verified": true,+ "sourceUrl": "https://fal.ai/models/fal-ai/kandinsky6-pro/image-to-video",+ "schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/kandinsky6-pro/image-to-video",+ "capability": "i2v",+ "fetched": "2026-11-02"+ },+ {+ "family": "kandinsky-6",+ "model": "Kandinsky 6.0 Lite",+ "title": "Kandinsky 6.0 Lite",+ "vendor": "Kandinsky Lab",+ "operation": "t2v",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-lite/text-to-video",+ "variant": "lite",+ "falCategory": "text-to-video",+ "status": "active",+ "keyFields": {+ "prompt": "prompt",+ "aspectRatio": "aspect_ratio",+ "generateAudio": "generate_audio",+ "seed": "seed",+ "steps": "num_inference_steps",+ "enhancePrompt": "enable_prompt_expansion"+ },+ "inputs": {+ "prompt": {+ "type": "string",+ "required": true,+ "desc": "The text prompt describing the video and its sound.",+ "examples": [+ "A cat and a dog baking a cake together in a kitchen. The cat whisks batter while the dog sniffs the flour; a kitchen timer ticks and a mixer hums in the background."+ ]+ },+ "aspect_ratio": {+ "type": "enum",+ "values": [+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4"+ ],+ "valueType": "string",+ "required": false,+ "default": "16:9",+ "desc": "The aspect ratio of the generated video."+ },+ "generate_audio": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Whether to generate a synchronized audio track."+ },+ "enable_prompt_expansion": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "Whether to rewrite the prompt into a detailed video+audio description with the model's own Qwen2.5-VL text encoder before generating."+ },+ "upscale_factor": {+ "nullable": true,+ "type": "enum",+ "values": [+ 2,+ 2.25,+ 4,+ null+ ],+ "valueType": "number",+ "required": false,+ "desc": "If set, upscale the generated video by this factor with Kandinsky 6 video super-resolution. One of 2, 2.25 or 4; 2.25 turns the 480p output into 1080p."+ },+ "seed": {+ "nullable": true,+ "type": "integer",+ "required": false,+ "desc": "The random seed used for the generation process."+ },+ "sync_mode": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history."+ },+ "num_inference_steps": {+ "type": "integer",+ "required": false,+ "default": 10,+ "minimum": 4,+ "maximum": 16,+ "desc": "The number of denoising steps. Lite is tuned for 10."+ },+ "enable_safety_checker": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Authorized callers may set false to request relaxed screening."+ }+ },+ "output": "video.url",+ "price": "A 5-second 480p video costs $0.16 at the default 10 steps. 4 steps cost $0.08, 16 steps cost $0.24, and each extra step adds about $0.013. Upscaling (16:9) adds $0.12 for 2×, $0.16 for 1080p and $0.49 for 4×, so at 10 steps these cost $0.28, $0.32 and $0.65. For example, 16 steps with 4× upscaling costs $0.73.",+ "pricing": {+ "usd": 0.16,+ "unit": "video",+ "seconds": 5,+ "resolution": "480p",+ "defaultSteps": 10,+ "bySteps": {+ "4": 0.08,+ "10": 0.16,+ "16": 0.24+ },+ "upscaleAdds": {+ "2": 0.12,+ "2.25": 0.16,+ "4": 0.49+ }+ },+ "license": "MIT (Kandinsky 6.0 weights, kandinskylab/Kandinsky-6.0-*-Diffusers model cards); the Qwen2.5-VL 7B text encoder is Apache-2.0, the BigVGAN v2 vocoder MIT (NVIDIA), the MMAudio audio VAE MIT",+ "notes": "5 s at 24 fps, 480p; the sound is made with the picture (generate_audio). Spoken lines go in the prompt; enable_prompt_expansion rewrites a short prompt first (off by default). upscale_factor runs the VSR after it, at extra cost.",+ "verified": true,+ "sourceUrl": "https://fal.ai/models/fal-ai/kandinsky6-lite/text-to-video",+ "schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/kandinsky6-lite/text-to-video",+ "capability": "t2v",+ "fetched": "2026-11-02"+ },+ {+ "family": "kandinsky-6",+ "model": "Kandinsky 6.0 Lite",+ "title": "Kandinsky 6.0 Lite",+ "vendor": "Kandinsky Lab",+ "operation": "i2v",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-lite/image-to-video",+ "variant": "lite",+ "falCategory": "image-to-video",+ "status": "active",+ "keyFields": {+ "prompt": "prompt",+ "aspectRatio": "aspect_ratio",+ "generateAudio": "generate_audio",+ "seed": "seed",+ "steps": "num_inference_steps",+ "enhancePrompt": "enable_prompt_expansion",+ "image": "image_url"+ },+ "inputs": {+ "prompt": {+ "type": "string",+ "required": true,+ "desc": "The text prompt describing the video and its sound.",+ "examples": [+ "A cat and a dog baking a cake together in a kitchen. The cat whisks batter while the dog sniffs the flour; a kitchen timer ticks and a mixer hums in the background."+ ]+ },+ "image_url": {+ "type": "string",+ "required": true,+ "desc": "The image used as the first frame of the video.",+ "examples": [+ "https://storage.googleapis.com/falserverless/example_inputs/ltxv-2-i2v-input.jpg"+ ]+ },+ "aspect_ratio": {+ "type": "union",+ "variants": [+ {+ "type": "enum",+ "values": [+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4"+ ],+ "valueType": "string",+ "required": false+ },+ {+ "type": "string",+ "required": false+ }+ ],+ "default": "auto",+ "desc": "The aspect ratio of the generated video. `auto` picks the supported ratio closest to the image's; the image is center-cropped to it."+ },+ "generate_audio": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Whether to generate a synchronized audio track."+ },+ "enable_prompt_expansion": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "Whether to rewrite the prompt into a detailed video+audio description with the model's own Qwen2.5-VL text encoder before generating."+ },+ "upscale_factor": {+ "nullable": true,+ "type": "enum",+ "values": [+ 2,+ 2.25,+ 4,+ null+ ],+ "valueType": "number",+ "required": false,+ "desc": "If set, upscale the generated video by this factor with Kandinsky 6 video super-resolution. One of 2, 2.25 or 4; 2.25 turns the 480p output into 1080p."+ },+ "seed": {+ "nullable": true,+ "type": "integer",+ "required": false,+ "desc": "The random seed used for the generation process."+ },+ "sync_mode": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history."+ },+ "num_inference_steps": {+ "type": "integer",+ "required": false,+ "default": 10,+ "minimum": 4,+ "maximum": 16,+ "desc": "The number of denoising steps. Lite is tuned for 10."+ },+ "enable_safety_checker": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Authorized callers may set false to request relaxed screening."+ }+ },+ "output": "video.url",+ "price": "A 5-second 480p video costs $0.17 at the default 10 steps. 4 steps cost $0.085, 16 steps cost $0.25, and each extra step adds about $0.014. Upscaling (16:9) adds $0.13 for 2×, $0.17 for 1080p and $0.52 for 4×, so at 10 steps these cost $0.30, $0.34 and $0.69. For example, 16 steps with 4× upscaling costs $0.77.",+ "pricing": {+ "usd": 0.17,+ "unit": "video",+ "seconds": 5,+ "resolution": "480p",+ "defaultSteps": 10,+ "bySteps": {+ "4": 0.085,+ "10": 0.17,+ "16": 0.25+ },+ "upscaleAdds": {+ "2": 0.13,+ "2.25": 0.17,+ "4": 0.52+ }+ },+ "license": "MIT (Kandinsky 6.0 weights, kandinskylab/Kandinsky-6.0-*-Diffusers model cards); the Qwen2.5-VL 7B text encoder is Apache-2.0, the BigVGAN v2 vocoder MIT (NVIDIA), the MMAudio audio VAE MIT",+ "notes": "5 s at 24 fps, 480p; the sound is made with the picture (generate_audio). Spoken lines go in the prompt; enable_prompt_expansion rewrites a short prompt first (off by default). upscale_factor runs the VSR after it, at extra cost.",+ "verified": true,+ "sourceUrl": "https://fal.ai/models/fal-ai/kandinsky6-lite/image-to-video",+ "schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/kandinsky6-lite/image-to-video",+ "capability": "i2v",+ "fetched": "2026-11-02"+ },+ {+ "family": "kandinsky-6",+ "model": "Kandinsky 6.0 VSR",+ "title": "Kandinsky 6.0 VSR",+ "vendor": "Kandinsky Lab",+ "operation": "upscale-video",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-vsr",+ "variant": "vsr",+ "falCategory": "video-to-video",+ "status": "active",+ "keyFields": {+ "video": "video_url",+ "scale": "upscale_factor",+ "steps": "num_inference_steps",+ "seed": "seed"+ },+ "inputs": {+ "video_url": {+ "type": "string",+ "required": true,+ "desc": "The input video to upscale. Clips are resampled to 24fps and capped at 121 frames (~5s). For 2x and 4x upscaling, width and height must be multiples of 16.",+ "examples": [+ "https://storage.googleapis.com/falserverless/example_inputs/seedvr-input.mp4"+ ]+ },+ "upscale_factor": {+ "type": "enum",+ "values": [+ 2,+ 2.25,+ 4+ ],+ "valueType": "number",+ "required": false,+ "default": 2.25,+ "desc": "Total upscale factor applied to the input resolution. One of 2, 2.25 or 4."+ },+ "num_inference_steps": {+ "type": "integer",+ "required": false,+ "default": 5,+ "minimum": 2,+ "maximum": 50,+ "desc": "The number of denoising steps used for each tile."+ },+ "seed": {+ "nullable": true,+ "type": "integer",+ "required": false,+ "desc": "The random seed used for the generation process."+ },+ "sync_mode": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history."+ },+ "enable_safety_checker": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Authorized callers may set false to request relaxed screening."+ }+ },+ "output": "video.url",+ "price": "Your request will cost $0.00036 per output megapixel per frame at the default 5 steps. Upscaling a 5-second 480p video to 1080p costs about $0.09, so $1.00 covers 10 upscales. 4x upscaling costs about $0.29, and more steps cost more.",+ "pricing": {+ "usd": 0.00036,+ "unit": "output megapixel per frame",+ "defaultSteps": 5,+ "maxFrames": 121,+ "fps": 24+ },+ "license": "MIT (Kandinsky 6.0 weights, kandinskylab/Kandinsky-6.0-*-Diffusers model cards); the Qwen2.5-VL 7B text encoder is Apache-2.0, the BigVGAN v2 vocoder MIT (NVIDIA), the MMAudio audio VAE MIT",+ "notes": "Clips are resampled to 24 fps and capped at 121 frames (about 5 s); 2x and 4x need sides that are multiples of 16.",+ "verified": true,+ "sourceUrl": "https://fal.ai/models/fal-ai/kandinsky6-vsr",+ "schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/kandinsky6-vsr",+ "capability": "upscale-video",+ "fetched": "2026-11-02"+ },+ {+ "family": "kandinsky-6",+ "model": "Kandinsky 6.0 VSR Lite",+ "title": "Kandinsky 6.0 VSR Lite",+ "vendor": "Kandinsky Lab",+ "operation": "upscale-video",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-vsr/lite",+ "variant": "vsr-lite",+ "falCategory": "video-to-video",+ "status": "active",+ "keyFields": {+ "video": "video_url",+ "scale": "upscale_factor",+ "steps": "num_inference_steps",+ "seed": "seed"+ },+ "inputs": {+ "video_url": {+ "type": "string",+ "required": true,+ "desc": "The input video to upscale. Clips are resampled to 24fps and capped at 121 frames (~5s). For 2x and 4x upscaling, width and height must be multiples of 16.",+ "examples": [+ "https://storage.googleapis.com/falserverless/example_inputs/seedvr-input.mp4"+ ]+ },+ "upscale_factor": {+ "type": "enum",+ "values": [+ 2,+ 2.25,+ 4+ ],+ "valueType": "number",+ "required": false,+ "default": 2.25,+ "desc": "Total upscale factor applied to the input resolution. One of 2, 2.25 or 4."+ },+ "num_inference_steps": {+ "type": "integer",+ "required": false,+ "default": 5,+ "minimum": 2,+ "maximum": 50,+ "desc": "The number of denoising steps used for each tile."+ },+ "seed": {+ "nullable": true,+ "type": "integer",+ "required": false,+ "desc": "The random seed used for the generation process."+ },+ "sync_mode": {+ "type": "boolean",+ "required": false,+ "default": false,+ "desc": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history."+ },+ "enable_safety_checker": {+ "type": "boolean",+ "required": false,+ "default": true,+ "desc": "Authorized callers may set false to request relaxed screening."+ }+ },+ "output": "video.url",+ "price": "Your request will cost $0.00036 per output megapixel per frame, with a default of 2 steps. Upscaling a 5-second 480p video to 1080p costs about $0.08, so $1.00 covers 12 upscales. 4x upscaling costs about $0.24.",+ "pricing": {+ "usd": 0.00036,+ "unit": "output megapixel per frame",+ "defaultSteps": 2,+ "maxFrames": 121,+ "fps": 24+ },+ "license": "MIT (Kandinsky 6.0 weights, kandinskylab/Kandinsky-6.0-*-Diffusers model cards); the Qwen2.5-VL 7B text encoder is Apache-2.0, the BigVGAN v2 vocoder MIT (NVIDIA), the MMAudio audio VAE MIT",+ "notes": "Clips are resampled to 24 fps and capped at 121 frames (about 5 s); 2x and 4x need sides that are multiples of 16.",+ "verified": true,+ "sourceUrl": "https://fal.ai/models/fal-ai/kandinsky6-vsr/lite",+ "schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/kandinsky6-vsr/lite",+ "capability": "upscale-video",+ "fetched": "2026-11-02"}]}diff --git a/scripts/fetch-hosted-schemas.py b/scripts/fetch-hosted-schemas.pyindex 63138786..2cfa1fd5 100644--- a/scripts/fetch-hosted-schemas.py+++ b/scripts/fetch-hosted-schemas.py@@ -23,6 +23,7 @@ Run: python3 scripts/fetch-hosted-schemas.pypython3 scripts/fetch-hosted-schemas.py --partner (partner routes in partnerEndpoints, the rest kept)python3 scripts/fetch-hosted-schemas.py --part4 [endpoint …] (PART4's records in paid-model-apis-4.json, the rest kept)python3 scripts/fetch-hosted-schemas.py --new10 [endpoint …] (FLUX 3 Klein: NEW10's records in new-models-10.json, its trainers; or those named)+ python3 scripts/fetch-hosted-schemas.py --kandinsky6 [endpoint …] (Kandinsky 6.0 Pro / Lite / VSR: KANDINSKY6's records in new-models-10.json)--part4 re-reads endpoints that research part 4 recorded (docs/research/paid-model-apis-4.json) and refreshes them inplace: their inputs, the price lines of their llms.txt, their status in fal's catalog (active / playground-only, read@@ -522,7 +523,79 @@ def new10(ids):FILE.write_text(json.dumps(raw, indent=1, ensure_ascii=False) + "\n", encoding="utf-8")++# Research #10 (build package nm10-kandinsky6): Kandinsky 6.0 Pro and Lite (text / image to video with sound) and the+# Kandinsky VSR upscaler on fal, read with --kandinsky6 into new-models-10.json endpointRecords. Part 4 recorded Pro and the+# VSR (paid-model-apis-4.json); Lite came after it (2026-10-05). Each record's pricing is parsed from its llms.txt: the price+# of a 5 s 480p clip at each step count fal names (Pro 8 / 20 / 50, Lite 4 / 10 / 16), or per output megapixel per frame.+K6_GEN = {"prompt": "prompt", "aspectRatio": "aspect_ratio", "generateAudio": "generate_audio", "seed": "seed", "steps": "num_inference_steps",+ "enhancePrompt": "enable_prompt_expansion"}+K6_VSR = {"video": "video_url", "scale": "upscale_factor", "steps": "num_inference_steps", "seed": "seed"}+K6_LICENCE = ("MIT (Kandinsky 6.0 weights, kandinskylab/Kandinsky-6.0-*-Diffusers model cards); the Qwen2.5-VL 7B text encoder is Apache-2.0, "+ "the BigVGAN v2 vocoder MIT (NVIDIA), the MMAudio audio VAE MIT")+KANDINSKY6 = {+ "fal-ai/kandinsky6-pro/text-to-video": ("t2v", {**K6_GEN, "negativePrompt": "negative_prompt"}, "Kandinsky 6.0 Pro", "pro"),+ "fal-ai/kandinsky6-pro/image-to-video": ("i2v", {**K6_GEN, "negativePrompt": "negative_prompt", "image": "image_url"}, "Kandinsky 6.0 Pro", "pro"),+ "fal-ai/kandinsky6-lite/text-to-video": ("t2v", K6_GEN, "Kandinsky 6.0 Lite", "lite"),+ "fal-ai/kandinsky6-lite/image-to-video": ("i2v", {**K6_GEN, "image": "image_url"}, "Kandinsky 6.0 Lite", "lite"),+ "fal-ai/kandinsky6-vsr": ("upscale-video", K6_VSR, "Kandinsky 6.0 VSR", "vsr"),+ "fal-ai/kandinsky6-vsr/lite": ("upscale-video", K6_VSR, "Kandinsky 6.0 VSR Lite", "vsr-lite"),+}+++def k6_pricing(price):+ """A Kandinsky 6.0 endpoint's price, parsed: per output megapixel per frame (the VSR), or a 5 s 480p clip at each step count."""+ t = price or ""+ per_mp = re.search(r"\$(\d+(?:\.\d+)?) per output megapixel per frame", t)+ if per_mp:+ steps = re.search(r"default (?:of )?(\d+) steps", t)+ return {"usd": float(per_mp.group(1)), "unit": "output megapixel per frame", "defaultSteps": int(steps.group(1)) if steps else None,+ "maxFrames": 121, "fps": 24}+ default = re.search(r"costs \$(\d+(?:\.\d+)?) at the default (\d+) steps", t)+ points = {int(s): float(v) for s, v in re.findall(r"(\d+) steps cost \$(\d+(?:\.\d+)?)", t)}+ if default:+ points[int(default.group(2))] = float(default.group(1))+ up = {"2": r"\$(\d+(?:\.\d+)?) for 2×", "2.25": r"\$(\d+(?:\.\d+)?) for 1080p", "4": r"\$(\d+(?:\.\d+)?) for 4×"}+ upscale = {k: float(m.group(1)) for k, rx in up.items() if (m := re.search(r"adds(?:[^.]|\.\d)*?" + rx, t))}+ return {"usd": float(default.group(1)) if default else None, "unit": "video", "seconds": 5, "resolution": "480p",+ "defaultSteps": int(default.group(2)) if default else None, "bySteps": {str(k): points[k] for k in sorted(points)},+ "upscaleAdds": upscale}+++def kandinsky6(ids):+ """Research #10's Kandinsky 6.0 records on fal (endpointRecords in new-models-10.json); only those named in `ids` when it names any."""+ path = ROOT / "docs/research/new-models-10.json"+ data = json.loads(path.read_text(encoding="utf-8"))+ records = {e["endpoint"]: e for e in data.get("endpointRecords") or []}+ for ep, (op, kf, model, variant) in KANDINSKY6.items():+ if ids and ep not in ids:+ continue+ inputs = fal(ep)+ missing = [f for f in kf.values() if f not in inputs]+ if missing:+ sys.exit(f"{ep}: keyFields {missing} are not inputs")+ price = llms_price(ep)+ records[ep] = {+ "family": "kandinsky-6", "model": model, "title": model, "vendor": "Kandinsky Lab", "operation": op, "provider": "fal", "endpoint": ep,+ "variant": variant, "falCategory": "video-to-video" if op == "upscale-video" else ("text-to-video" if op == "t2v" else "image-to-video"),+ "status": fal_catalog_status(ep), "keyFields": kf, "inputs": inputs, "output": "video.url", "price": price, "pricing": k6_pricing(price),+ "license": K6_LICENCE,+ "notes": ("Clips are resampled to 24 fps and capped at 121 frames (about 5 s); 2x and 4x need sides that are multiples of 16."+ if op == "upscale-video" else+ "5 s at 24 fps, 480p; the sound is made with the picture (generate_audio). Spoken lines go in the prompt; "+ "enable_prompt_expansion rewrites a short prompt first (off by default). upscale_factor runs the VSR after it, at extra cost."),+ "verified": True, "sourceUrl": f"https://fal.ai/models/{ep}", "schemaUrl": f"https://fal.ai/api/openapi/queue/openapi.json?endpoint_id={ep}",+ "capability": op, "fetched": TODAY,+ }+ print(f"{ep}: {records[ep]['status']}, {len(inputs)} inputs, {json.dumps(records[ep]['pricing'])}")+ data["endpointRecords"] = list(records.values())+ path.write_text(json.dumps(data, indent=1, ensure_ascii=False) + "\n", encoding="utf-8")++def main():+ if "--kandinsky6" in sys.argv:+ kandinsky6(sys.argv[sys.argv.index("--kandinsky6") + 1:])+ returnif "--new10" in sys.argv:new10(sys.argv[sys.argv.index("--new10") + 1:])returndiff --git a/scripts/gen-cloud-models.py b/scripts/gen-cloud-models.pyindex b0eaee0b..35b05909 100644--- a/scripts/gen-cloud-models.py+++ b/scripts/gen-cloud-models.py@@ -1291,6 +1291,49 @@ model("heygen-video", "HeyGen Video", "HeyGen", "heygen", "video",badges=["new", "fast"], defaults={"aspectRatio": "16:9", "duration": 5, "resolution": "768p"}, ranged_durations=True,pricing=("second", 0.02, "480p and 768p; 1080p and 2K $0.06", {"byResolution": {"480p": 0.02, "768p": 0.02, "1080p": 0.06, "2k": 0.06}}),controls=[("prompt_enhancement", "Prompt boost")])+# Kandinsky 6.0 on fal (nm10-kandinsky6; research new-models-10.json endpointRecords, read 2026-11-02 with+# fetch-hosted-schemas.py --kandinsky6): Kandinsky Lab's MIT model, 5 s at 480p with its own sound and lip-synced dialogue,+# from words or a first frame. One model in Fuobe: Quality picks Pro (29B) or Lite (3B), each at fal's Fast / Standard / Best+# steps (Pro 8 / 20 / 50, Lite 4 / 10 / 16), priced at fal's published price for that step count (Pricing.steps). Each+# endpoint is a route that runs for its variant (ModelRoute.when). The same model runs on your GPU (oss-kandinsky6).+K6_REC = {e["endpoint"]: e for e in NEW_MODELS_10["endpointRecords"] if e.get("family") == "kandinsky-6"}+K6_STEPS = {"pro": {"fast": 8, "standard": 20, "best": 50}, "lite": {"fast": 4, "standard": 10, "best": 16}}+K6_OPS = {"t2v": "text-to-video", "i2v": "image-to-video"}+K6_PRICES = {v: {op: K6_REC[f"fal-ai/kandinsky6-{v}/{kind}"]["pricing"]["bySteps"] for op, kind in K6_OPS.items()} for v in K6_STEPS}+K6_QUALITY = {+ "param": "quality", "label": "Quality",+ "values": [f"{v}-{t}" for v in K6_STEPS for t in K6_STEPS[v]], "default": "pro-standard",+ "labels": {f"{v}-{t}": f"{'Pro' if v == 'pro' else 'Lite'} · {t.capitalize()}, {n} steps" for v in K6_STEPS for t, n in K6_STEPS[v].items()},+ "sets": {f"{v}-{t}": {"variant": v, "num_inference_steps": n} for v in K6_STEPS for t, n in K6_STEPS[v].items()},+}+for _v, _tiers in K6_STEPS.items():+ for _op in K6_OPS:+ for _n in _tiers.values():+ if str(_n) not in K6_PRICES[_v][_op]:+ warn(f"kandinsky-6: fal publishes no {_v} {_op} price at {_n} steps")+K6_HELPER = {"param": "promptHelper", "label": "Prompt helper", "values": ["off", "on"], "default": "off",+ "labels": {"off": "Off · your words as typed", "on": "On · Kandinsky writes a fuller caption"}}+K6_LICENCE = {"licence": "MIT", "commercial": True, "note": "Kandinsky Lab's weights (Pro, Lite, VSR) on Hugging Face; the Qwen2.5-VL text encoder is Apache-2.0",+ "checked": "2026-11-02"}+_k6 = lambda op, v: (op, f"fal-ai/kandinsky6-{v}/{K6_OPS[op]}", "fal", {"when": {"param": "variant", "value": v}})+model("kandinsky-6", "Kandinsky 6.0", "Kandinsky Lab", "kandinsky", "video",+ "Kandinsky 6.0 · both engines: 5 s clips with dialogue, lip sync and sound from words or a first frame · MIT",+ [_k6("t2v", "pro"), _k6("t2v", "lite"), _k6("i2v", "pro"), _k6("i2v", "lite")], badges=["new", "audio"],+ defaults={"aspectRatio": "16:9", "duration": 5, "resolution": "480p"}, api_defaults={"enable_prompt_expansion": False},+ pricing=("video", K6_PRICES["pro"]["t2v"]["20"], "a 5 s clip at 480p: Pro about $0.027 a step ($0.24 Fast, $0.56 Standard, $1.35 Best), Lite about $0.013 ($0.08, $0.16, $0.24); from a first frame a little more",+ {"steps": {"variantKey": "variant", "stepsKey": "num_inference_steps", "prices": K6_PRICES}}),+ options={"durations": [5], "resolutions": ["480p"], "controls": [K6_QUALITY, K6_HELPER], "promptFormat": "kandinsky6",+ "promptPlaceholder": "Describe the shot. Put what someone says in quotes: she smiles and says “Look over there!” · end with Sound: … for ambience or music"},+ licence=K6_LICENCE)+# Kandinsky VSR on fal: the same upscaler as on your GPU (oss-kandinsky6-vsr), 2x, 2.25x (480p to 1080p) or 4x, billed per+# output megapixel per frame ($0.00036; clips are resampled to 24 fps and capped at 121 frames). The Lite endpoint's 2 steps+# cost the same rate per frame, so the full one (5 steps) runs.+model("kandinsky-vsr", "Kandinsky VSR", "Kandinsky Lab", "kandinsky", "video",+ "Kandinsky 6.0 · both engines: sharp 2x, 2.25x or 4x video upscale, clips up to 5 s · MIT",+ [("upscale-video", "fal-ai/kandinsky6-vsr")], badges=["new", "fast"], defaults={"resolution": "2.25x"}, upscale_tiers=["2x", "2.25x", "4x"],+ pricing=("video", 0.09, "$0.00036 per output megapixel per frame: about $0.09 for 5 s of 480p to 1080p, $0.29 at 4x",+ {"outputFrames": {"usd": K6_REC["fal-ai/kandinsky6-vsr"]["pricing"]["usd"], "fps": 24, "maxFrames": 121, "assume": {"width": 848, "height": 480}}}),+ options={"maxSourceSeconds": 5}, licence=K6_LICENCE)# Its routes take different values (fal's reference-to-video stops at 720p), so each lists its own (fit_values).model("grok-imagine-video-1-5", "Grok Imagine Video 1.5", "xAI", "grok", "video", "xAI's video model with references and audio",[("t2v", "xai/grok-imagine-video/v1.5/text-to-video"), ("i2v", "xai/grok-imagine-video/v1.5/image-to-video"),@@ -2030,7 +2073,8 @@ def build_route(op, ep, provider, m, opts, ropts=None):# Upscalers that take a factor: the resolution tier becomes target / the clip's shorter edge.if m.get("upscale_tiers") and op == "upscale-video":spec = inputs.get("upscale_factor") or {}- if spec.get("type") in ("number", "integer"):+ # A number field, or an enum of numbers (fal's Kandinsky VSR: 2, 2.25 or 4, offered as factor tiers).+ if spec.get("type") in ("number", "integer") or (spec.get("type") == "enum" and spec.get("valueType") == "number"):fmap["upscaleFactor"] = {"key": "upscale_factor", **{k: num(spec[f]) for k, f in (("min", "minimum"), ("max", "maximum")) if num(spec.get(f)) is not None}}opts["resolutions"] = union(opts.get("resolutions", []), m["upscale_tiers"])else:@@ -2152,7 +2196,7 @@ def build_route(op, ep, provider, m, opts, ropts=None):del fmap["defaults"]# A model that reads layouts (ModelOptions.layout) turns the API's own prompt expansion off for a layout request# (FieldMap.promptExpansion), which would rewrite the boxes; a plain prompt keeps the API's default.- if (m["options"] or {}).get("layout"):+ if (m["options"] or {}).get("layout") or any(c.get("param") == "promptHelper" for c in (m["options"] or {}).get("controls") or []):pe = kf.get("enhancePrompt") or ("enable_prompt_expansion" if "enable_prompt_expansion" in inputs else None)if pe and (inputs.get(pe) or {}).get("type") == "boolean":fmap["promptExpansion"] = pe@@ -2196,6 +2240,10 @@ def build_route(op, ep, provider, m, opts, ropts=None):route = {"op": op, "provider": provider, "endpoint": f"{ep}:{version}" if ropts.get("pin") else ep, "map": fmap}if ropts.get("note"):route["note"] = ropts["note"]+ # A route that runs for one value of a setting (Kandinsky 6.0's Pro or Lite): the setting is Fuobe's, never sent.+ if ropts.get("when"):+ route["when"] = ropts["when"]+ fmap["ignore"] = sorted(set(fmap.get("ignore") or []) | {ropts["when"]["param"]})# The picture follows image 1's shape at the chosen tier (ModelRoute.followsImage: fal's FLUX 3 Klein edit; the server sizes it).if ropts.get("followsImage"):if "size" not in fmap:@@ -2272,7 +2320,7 @@ for m in M:inputs = (EPS.get((route["provider"], route["endpoint"])) or {}).get("inputs") or {}missing = [x for x in offered if x.split(".")[0] not in inputs]if missing:- route["map"] = {**route["map"], "ignore": missing}+ route["map"] = {**route["map"], "ignore": sorted(set(route["map"].get("ignore") or []) | set(missing)) if route["map"].get("ignore") else missing}pricing = Noneif m["pricing"]:u, usd, *rest = m["pricing"]diff --git a/src/components/studio/composer.tsx b/src/components/studio/composer.tsxindex 1aa80581..a6430d2b 100644--- a/src/components/studio/composer.tsx+++ b/src/components/studio/composer.tsx@@ -314,11 +314,20 @@ export function Composer({ docked }: { docked: boolean }) {const draft = useMemo(() =>config.clipFacts- ? { ...typed, params: { ...typed.params, sourceDuration: typed.slots.video?.ref ? facts?.duration : undefined, sourceFps: typed.slots.video?.ref ? facts?.fps : undefined } }+ ? {+ ...typed,+ params: {+ ...typed.params,+ sourceDuration: typed.slots.video?.ref ? facts?.duration : undefined,+ sourceFps: typed.slots.video?.ref ? facts?.fps : undefined,+ // An upscale billed per output frame (Kandinsky VSR) is priced on the clip's size.+ sourceSize: typed.slots.video?.ref && facts?.width && facts.height ? { width: facts.width, height: facts.height } : undefined,+ },+ }: config.voiceFacts? { ...typed, params: { ...typed.params, sourceDuration: voiceRef ? voice?.duration : undefined } }: typed,- [config.clipFacts, config.voiceFacts, typed, facts?.duration, facts?.fps, voiceRef, voice?.duration],+ [config.clipFacts, config.voiceFacts, typed, facts?.duration, facts?.fps, facts?.width, facts?.height, voiceRef, voice?.duration],);const liveElements = useElements().data;const elements = (hydrated && liveElements) || EMPTY;diff --git a/src/lib/av/upscale.ts b/src/lib/av/upscale.tsindex 0447b62e..f9296a85 100644--- a/src/lib/av/upscale.ts+++ b/src/lib/av/upscale.ts@@ -16,6 +16,12 @@ export function targetShortEdge(resolution: string | undefined): number | undefireturn n === 1 ? 1080 : n === 2 ? 1440 : Math.round(n * 540);}+/** A factor tier ("2x", "2.25x", "4x": Kandinsky VSR picks a factor, not a size) as its number. */+export function factorTier(resolution: string | undefined): number | undefined {+ const m = /^(\d+(?:\.\d+)?)x$/i.exec(resolution?.trim() ?? "");+ return m ? Number(m[1]) : undefined;+}+/*** The factor an upscaler that takes one needs to reach `resolution` from a clip of `source` size: target ÷* shorter edge, kept within the API's min–max and rounded to 3 decimals (1080p → 1440p is 1.333, which lands on@@ -25,6 +31,8 @@ export function targetShortEdge(resolution: string | undefined): number | undefiexport function upscaleFactorFor(resolution: string | undefined, source: { width: number; height: number } | undefined, min = 1, max = 4): number | undefined {const lo = Math.min(min, max);if (resolution?.trim().toLowerCase() === "original") return Math.max(lo, 1);+ const factor = factorTier(resolution);+ if (factor !== undefined) return Math.max(lo, Math.min(Math.max(min, max), factor));const target = targetShortEdge(resolution);const short = source ? Math.min(source.width, source.height) : 0;if (!target || !(short > 0)) return undefined;@@ -34,7 +42,7 @@ export function upscaleFactorFor(resolution: string | undefined, source: { width/** The size a clip comes out at for `resolution` (its shape kept, even numbers), or undefined when unknown. */export function upscaledSize(source: { width: number; height: number } | undefined, resolution: string | undefined, factor?: number): { width: number; height: number } | undefined {if (!source?.width || !source.height) return undefined;- const k = factor ?? (resolution?.trim().toLowerCase() === "original" ? 1 : (targetShortEdge(resolution) ?? 0) / Math.min(source.width, source.height));+ const k = factor ?? factorTier(resolution) ?? (resolution?.trim().toLowerCase() === "original" ? 1 : (targetShortEdge(resolution) ?? 0) / Math.min(source.width, source.height));if (!(k > 0)) return undefined;const even = (n: number) => Math.max(2, Math.round(n / 2) * 2);return { width: even(source.width * k), height: even(source.height * k) };diff --git a/src/lib/catalog/cloud-models.generated.ts b/src/lib/catalog/cloud-models.generated.tsindex 307f210b..5390066d 100644--- a/src/lib/catalog/cloud-models.generated.ts+++ b/src/lib/catalog/cloud-models.generated.ts@@ -16717,6 +16717,308 @@ export const CLOUD_MODELS: ModelDef[] = [}}},+ {+ "id": "kandinsky-6",+ "name": "Kandinsky 6.0",+ "vendor": "Kandinsky Lab",+ "family": "kandinsky",+ "engine": "cloud",+ "kind": "video",+ "tagline": "Kandinsky 6.0 \u00b7 both engines: 5 s clips with dialogue, lip sync and sound from words or a first frame \u00b7 MIT",+ "routes": [+ {+ "op": "t2v",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-pro/text-to-video",+ "map": {+ "negativePrompt": "negative_prompt",+ "seed": "seed",+ "generateAudio": "generate_audio",+ "aspectRatio": "aspect_ratio",+ "defaults": {+ "enable_prompt_expansion": false+ },+ "promptExpansion": "enable_prompt_expansion",+ "ignore": [+ "promptHelper",+ "quality",+ "variant"+ ]+ },+ "when": {+ "param": "variant",+ "value": "pro"+ }+ },+ {+ "op": "t2v",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-lite/text-to-video",+ "map": {+ "seed": "seed",+ "generateAudio": "generate_audio",+ "aspectRatio": "aspect_ratio",+ "defaults": {+ "enable_prompt_expansion": false+ },+ "promptExpansion": "enable_prompt_expansion",+ "ignore": [+ "promptHelper",+ "quality",+ "variant"+ ]+ },+ "when": {+ "param": "variant",+ "value": "lite"+ }+ },+ {+ "op": "i2v",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-pro/image-to-video",+ "map": {+ "negativePrompt": "negative_prompt",+ "image": "image_url",+ "seed": "seed",+ "generateAudio": "generate_audio",+ "aspectRatio": "aspect_ratio",+ "defaults": {+ "enable_prompt_expansion": false+ },+ "promptExpansion": "enable_prompt_expansion",+ "ignore": [+ "promptHelper",+ "quality",+ "variant"+ ]+ },+ "when": {+ "param": "variant",+ "value": "pro"+ }+ },+ {+ "op": "i2v",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-lite/image-to-video",+ "map": {+ "image": "image_url",+ "seed": "seed",+ "generateAudio": "generate_audio",+ "aspectRatio": "aspect_ratio",+ "defaults": {+ "enable_prompt_expansion": false+ },+ "promptExpansion": "enable_prompt_expansion",+ "ignore": [+ "promptHelper",+ "quality",+ "variant"+ ]+ },+ "when": {+ "param": "variant",+ "value": "lite"+ }+ }+ ],+ "options": {+ "negativePrompt": true,+ "seed": true,+ "audio": true,+ "aspectRatios": [+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4"+ ],+ "maxImages": 1,+ "durations": [+ 5+ ],+ "resolutions": [+ "480p"+ ],+ "controls": [+ {+ "param": "quality",+ "label": "Quality",+ "values": [+ "pro-fast",+ "pro-standard",+ "pro-best",+ "lite-fast",+ "lite-standard",+ "lite-best"+ ],+ "default": "pro-standard",+ "labels": {+ "pro-fast": "Pro \u00b7 Fast, 8 steps",+ "pro-standard": "Pro \u00b7 Standard, 20 steps",+ "pro-best": "Pro \u00b7 Best, 50 steps",+ "lite-fast": "Lite \u00b7 Fast, 4 steps",+ "lite-standard": "Lite \u00b7 Standard, 10 steps",+ "lite-best": "Lite \u00b7 Best, 16 steps"+ },+ "sets": {+ "pro-fast": {+ "variant": "pro",+ "num_inference_steps": 8+ },+ "pro-standard": {+ "variant": "pro",+ "num_inference_steps": 20+ },+ "pro-best": {+ "variant": "pro",+ "num_inference_steps": 50+ },+ "lite-fast": {+ "variant": "lite",+ "num_inference_steps": 4+ },+ "lite-standard": {+ "variant": "lite",+ "num_inference_steps": 10+ },+ "lite-best": {+ "variant": "lite",+ "num_inference_steps": 16+ }+ }+ },+ {+ "param": "promptHelper",+ "label": "Prompt helper",+ "values": [+ "off",+ "on"+ ],+ "default": "off",+ "labels": {+ "off": "Off \u00b7 your words as typed",+ "on": "On \u00b7 Kandinsky writes a fuller caption"+ }+ }+ ],+ "promptFormat": "kandinsky6",+ "promptPlaceholder": "Describe the shot. Put what someone says in quotes: she smiles and says \u201cLook over there!\u201d \u00b7 end with Sound: \u2026 for ambience or music"+ },+ "badges": [+ "new",+ "audio"+ ],+ "licence": {+ "licence": "MIT",+ "commercial": true,+ "note": "Kandinsky Lab's weights (Pro, Lite, VSR) on Hugging Face; the Qwen2.5-VL text encoder is Apache-2.0",+ "checked": "2026-11-02"+ },+ "defaults": {+ "aspectRatio": "16:9",+ "duration": 5,+ "resolution": "480p",+ "generateAudio": true+ },+ "pricing": {+ "unit": "video",+ "usd": 0.56,+ "note": "a 5 s clip at 480p: Pro about $0.027 a step ($0.24 Fast, $0.56 Standard, $1.35 Best), Lite about $0.013 ($0.08, $0.16, $0.24); from a first frame a little more",+ "steps": {+ "variantKey": "variant",+ "stepsKey": "num_inference_steps",+ "prices": {+ "pro": {+ "t2v": {+ "8": 0.24,+ "20": 0.56,+ "50": 1.35+ },+ "i2v": {+ "8": 0.25,+ "20": 0.58,+ "50": 1.4+ }+ },+ "lite": {+ "t2v": {+ "4": 0.08,+ "10": 0.16,+ "16": 0.24+ },+ "i2v": {+ "4": 0.085,+ "10": 0.17,+ "16": 0.25+ }+ }+ }+ }+ }+ },+ {+ "id": "kandinsky-vsr",+ "name": "Kandinsky VSR",+ "vendor": "Kandinsky Lab",+ "family": "kandinsky",+ "engine": "cloud",+ "kind": "video",+ "tagline": "Kandinsky 6.0 \u00b7 both engines: sharp 2x, 2.25x or 4x video upscale, clips up to 5 s \u00b7 MIT",+ "routes": [+ {+ "op": "upscale-video",+ "provider": "fal",+ "endpoint": "fal-ai/kandinsky6-vsr",+ "map": {+ "prompt": false,+ "video": "video_url",+ "seed": "seed",+ "upscaleFactor": {+ "key": "upscale_factor"+ }+ }+ }+ ],+ "options": {+ "resolutions": [+ "2x",+ "2.25x",+ "4x"+ ],+ "seed": true,+ "promptless": true,+ "maxSourceSeconds": 5+ },+ "badges": [+ "new",+ "fast"+ ],+ "licence": {+ "licence": "MIT",+ "commercial": true,+ "note": "Kandinsky Lab's weights (Pro, Lite, VSR) on Hugging Face; the Qwen2.5-VL text encoder is Apache-2.0",+ "checked": "2026-11-02"+ },+ "defaults": {+ "resolution": "2.25x"+ },+ "pricing": {+ "unit": "video",+ "usd": 0.09,+ "note": "$0.00036 per output megapixel per frame: about $0.09 for 5 s of 480p to 1080p, $0.29 at 4x",+ "outputFrames": {+ "usd": 0.00036,+ "fps": 24,+ "maxFrames": 121,+ "assume": {+ "width": 848,+ "height": 480+ }+ }+ }+ },{"id": "grok-imagine-video-1-5","name": "Grok Imagine Video 1.5",diff --git a/src/lib/catalog/payload.ts b/src/lib/catalog/payload.tsindex 86e2372e..bf489f57 100644--- a/src/lib/catalog/payload.ts+++ b/src/lib/catalog/payload.ts@@ -533,9 +533,11 @@ export function buildPayload(map: FieldMap, input: GenInput): Record<string, unkfor (const [k, v] of Object.entries({ ...map.fixed, ...input.extra })) if (!(map.timeline && k === "timeline") && !ignore.has(k)) setPath(out, k, v);// The API's prompt expansion would rewrite a layout's boxes: off whenever the request carries one (a route that takes the// boxes in a field of their own, fal's FLUX 3 Klein, only when the draft places any). Prompt helper "off" turns it off too;- // "on" leaves the API's default (on).+ // "on" leaves the API's default, or turns it on where the route sends it off by default.const laidOut = map.boundingBoxes ? carriesBoxes(input.extra) : carriesLayout(input.extra);if (map.promptExpansion && (laidOut || input.extra?.[PROMPT_HELPER_PARAM] === "off")) out[map.promptExpansion] = false;+ // "on" for an API whose expansion is off unless asked (fal's Kandinsky 6.0: the route's default sends false).+ else if (map.promptExpansion && input.extra?.[PROMPT_HELPER_PARAM] === "on" && map.defaults?.[map.promptExpansion] === false) out[map.promptExpansion] = true;// A background colour given as hex goes out in the palette's shape (Recraft wants {r,g,b}).const bg = map.palette?.background;if (bg && typeof out[bg] === "string") {diff --git a/src/lib/catalog/plan.ts b/src/lib/catalog/plan.tsindex 79998352..d76ae89e 100644--- a/src/lib/catalog/plan.ts+++ b/src/lib/catalog/plan.ts@@ -1,4 +1,5 @@import { FORMAT_INFO, formatList } from "@/lib/av/formats";+import { factorTier } from "@/lib/av/upscale";import type {Engine,GenerationRequest,@@ -10,6 +11,7 @@ import type {Preset,PresetEndStep,PresetRoute,+ Pricing,} from "./types";import { billedClipSeconds, editClipsProblem, sourceSeconds } from "./clip-windows";import { chainGapProblem, chainTiming, FIRST_AT_ZERO, frameTimes, keyframeChain, MAX_KEYFRAMES, spread } from "./keyframes";@@ -66,8 +68,28 @@ export function inferOperation(model: ModelDef, req: Pick<GenerationRequest, "opreturn model.routes[0].op;}-export function routesFor(model: ModelDef, op: Operation): ModelRoute[] {- return model.routes.filter((r) => r.op === op);+/**+ * Why a clip is too long for a model that takes clips up to a length (ModelOptions.maxSourceSeconds: Kandinsky VSR's 121+ * frames at 24 fps), in the words the composer shows and the server refuses with; null when it fits or isn't known.+ */+export function sourceLengthProblem(model: Pick<ModelDef, "name" | "options">, seconds: number | undefined): string | null {+ const max = model.options.maxSourceSeconds;+ if (!max || !seconds || seconds <= max + 0.05) return null;+ return `${model.name} takes clips up to ${max} s, and this one is ${Math.round(seconds * 10) / 10} s: trim it first, or pick SeedVR2 for longer clips`;+}++/**+ * The routes that run `op`. With the run's params, a route that runs only for one value of a setting (ModelRoute.when:+ * Kandinsky 6.0's Pro or Lite on fal) qualifies when the setting has that value, or is unset and it is the first such route.+ */+export function routesFor(model: ModelDef, op: Operation, params?: GenParams): ModelRoute[] {+ const routes = model.routes.filter((r) => r.op === op);+ if (!params || !routes.some((r) => r.when)) return routes;+ return routes.filter((r) => {+ if (!r.when) return true;+ const v = params.extra?.[r.when.param];+ return v === undefined || v === null ? routes.find((x) => x.when?.param === r.when!.param) === r : String(v) === r.when.value;+ });}/** Fewer characters than this of the overall prompt in front of a capped shot prompt say too little: it is left out. */@@ -531,6 +553,8 @@ export function planGeneration(if (missing) throw new Error(missing);const tooMany = extraImages(model, op, req);if (tooMany) throw new Error(tooMany);+ const tooLong = sourceLengthProblem(model, params.sourceDuration);+ if (tooLong) throw new Error(tooLong);// Soul Cinema's 21:9 (research §4.5: a crop option): made at 16:9 on both engines, then cropped to 21:9 with// its grade after generation (meta.crop).@@ -1019,6 +1043,42 @@ function routeMegapixels(model: ModelDef, params: GenParams, op?: Operation): nureturn (width * height) / (1024 * 1024);}+/**+ * A clip's price by its steps on the variant it runs (Pricing.steps: fal's Kandinsky 6.0): the settings the run carries, else+ * the ones its controls' defaults stand for; between two step counts fal prices, the line between them. Undefined when the+ * variant or the operation has no prices.+ */+function stepsPrice(model: ModelDef, s: NonNullable<Pricing["steps"]>, params: GenParams, op?: Operation): number | undefined {+ const own = controlSets(model, { extra: {} }).extra ?? {};+ const variant = String(params.extra?.[s.variantKey] ?? own[s.variantKey] ?? Object.keys(s.prices)[0]);+ const byOp = s.prices[variant];+ const table = byOp?.[op ?? model.routes[0]?.op] ?? Object.values(byOp ?? {})[0];+ const steps = Number(params.extra?.[s.stepsKey] ?? own[s.stepsKey]);+ if (!table || !Number.isFinite(steps)) return undefined;+ const points = Object.entries(table)+ .map(([k, v]) => [Number(k), v] as const)+ .sort((a, b) => a[0] - b[0]);+ if (!points.length) return undefined;+ const exact = points.find(([k]) => k === steps);+ if (exact) return exact[1];+ const hi = points.findIndex(([k]) => k > steps);+ // Outside the published counts: the nearest two's line, never below nothing.+ const [a, b] = hi <= 0 ? [points[0], points[1] ?? points[0]] : hi === -1 ? [points.at(-2) ?? points[0], points.at(-1)!] : [points[hi - 1], points[hi]];+ if (a[0] === b[0]) return a[1];+ return Math.max(0, a[1] + ((b[1] - a[1]) * (steps - a[0])) / (b[0] - a[0]));+}++/**+ * An upscale billed per output megapixel per frame (Pricing.outputFrames: fal's Kandinsky VSR): the clip's size times the+ * factor, every frame at the API's rate up to its cap. A clip not read yet is priced at the assumed size and the cap.+ */+function outputFramesPrice(o: NonNullable<Pricing["outputFrames"]>, params: GenParams, fallback?: string): number {+ const k = factorTier(params.resolution ?? fallback) ?? 2;+ const src = params.sourceSize?.width && params.sourceSize.height ? params.sourceSize : o.assume;+ const frames = params.sourceDuration && params.sourceDuration > 0 ? Math.min(o.maxFrames, Math.round(params.sourceDuration * o.fps)) : o.maxFrames;+ return o.usd * ((src.width * k * src.height * k) / 1e6) * frames;+}+/*** Rough USD estimate for a plan (BYO-key cloud runs). Open-source runs are free. A launch price (Pricing.promo) is read* at `now` (./promo): the clock when not given (the server planning a run, the browser after it hydrates); with null (a@@ -1061,6 +1121,11 @@ export function estimateCost(model: ModelDef, params: GenParams, jobs = 1, op?:per = mp !== undefined && rate ? Math.ceil(mp - 1e-9) * rate : usd * seconds;}if (p.unit === "minute") per = (usd * (voice ?? params.duration ?? 60)) / 60;+ if (p.steps) {+ const clip = stepsPrice(model, p.steps, params, op);+ if (clip !== undefined) per = clip * n;+ }+ if (p.outputFrames) per = outputFramesPrice(p.outputFrames, params, model.defaults?.resolution);// Settings that change the price (60 fps, a Pro tier, a cheaper model).for (const f of p.factors ?? []) {const v = f.param === "targetFps" ? (params.targetFps ?? model.defaults?.targetFps) : (params.extra?.[f.param] ?? model.options.controls?.find((c) => c.param === f.param)?.default);diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.tsindex fc2efd1c..fb3866c8 100644--- a/src/lib/catalog/types.ts+++ b/src/lib/catalog/types.ts@@ -526,7 +526,8 @@ export interface FieldMap {/*** An upscaler that takes a factor, not a size (Topaz, FLUX Upscale): params.resolution ("1080p", "4K",* "Original" = 1) becomes target ÷ the clip's shorter edge (GenInput.sourceSize), kept within min–max.- * Nothing is sent when the clip's size is unknown (the API's default factor applies).+ * Nothing is sent when the clip's size is unknown (the API's default factor applies). A factor tier ("2x", "2.25x",+ * "4x": Kandinsky VSR) is sent as that factor.*/upscaleFactor?: { key: string; min?: number; max?: number };}@@ -544,6 +545,12 @@ export interface ModelRoute {preview?: Pick<FieldMap, "upscaleFactor" | "numFrames" | "size">;/** Optional note shown in the UI (e.g. "uses Lightx2v 4-step LoRA"). */note?: string;+ /**+ * The route runs only when a setting has this value (params.extra[param], after a control's `sets`): Kandinsky 6.0 on fal+ * is one model in Fuobe whose Quality picks Pro's or Lite's endpoint. Routes without `when` always qualify; a run whose+ * setting is unset takes the first route (routesFor).+ */+ when?: { param: string; value: string };/*** Same model with LoRA support (fal's `/lora` variants): the run switches to it when it carries LoRAs* (a trained identity, a preset's look or motion). `map.loras` says how they go in its payload.@@ -658,8 +665,15 @@ export interface ModelOptions {* "minimax-h3" = MiniMax H3's layout: an alignment line for the start (and end) frame, then integrated_multimodal_description,* overall_soundscape and non_diegetic_music. The server wraps the words in it (src/lib/h3-prompt.ts) and keeps the result* as the run's prompt; words already in the layout pass through.+ * "kandinsky6" = Kandinsky 6.0's tags: words in quotes become spoken lines (<S>…<E>) and a "Sound:" line the sound caption+ * (<AUDCAP>…<ENDAUDCAP>), on both engines (src/lib/kandinsky-prompt.ts); the run keeps the words as typed.*/- promptFormat?: "ideogram4" | "minimax-h3";+ promptFormat?: "ideogram4" | "minimax-h3" | "kandinsky6";+ /**+ * The longest clip it takes, in seconds (Kandinsky VSR: 121 frames at 24 fps on both engines): a longer one is refused+ * before it runs, never cut short.+ */+ maxSourceSeconds?: number;/*** LoRAs the model's recipe always loads (Fuobe Try-On's try-on LoRA): every run carries them before the user's own* (an API's LoRA cap leaves out the user's first), their trigger words leading the prompt. A ComfyUI graph that loads@@ -742,6 +756,19 @@ export interface Pricing {videoMegapixel?: { usd: number; withLoras?: number };/** Per-megapixel prices billed on whole megapixels (fal's Qwen-Image 2512). */roundUp?: true;+ /**+ * Billed per clip by the steps it takes, on the variant a setting picks (fal's Kandinsky 6.0, a 5 s 480p clip: Pro $0.24 at+ * 8 steps, $0.56 at 20, $1.35 at 50; Lite $0.08 at 4, $0.16 at 10, $0.24 at 16). `prices[variant][op]` maps the step counts fal+ * publishes to a clip's price (linear between them); the variant is params.extra[variantKey], the steps params.extra[stepsKey],+ * each from the controls' `sets` when the run leaves them out. Replaces `usd` (the default's price) for a clip.+ */+ steps?: { variantKey: string; stepsKey: string; prices: Record<string, Partial<Record<Operation, Record<string, number>>>> };+ /**+ * Billed per megapixel of every frame made (fal's Kandinsky VSR: $0.00036 per output megapixel per frame): the clip's+ * size (params.sourceSize) times the factor asked (params.resolution "2x" / "2.25x" / "4x"), its frames at `fps` up to+ * `maxFrames` (params.sourceDuration). A clip whose size isn't known yet is priced as `assume` (480p, 16:9).+ */+ outputFrames?: { usd: number; fps: number; maxFrames: number; assume: { width: number; height: number } };/** What an animation preset adds to a run (params.animation: Meshy rigging +$0.12). */animationUsd?: number;/**@@ -831,6 +858,8 @@ export interface ModelDef {/** User-facing generation parameters (canonical, provider-agnostic). */export interface GenParams {+ /** The input clip's size, when the caller knows it (Upscale's header read): what an upscale billed per output frame costs. */+ sourceSize?: { width: number; height: number };aspectRatio?: string;resolution?: string;duration?: number;diff --git a/src/lib/composer.ts b/src/lib/composer.tsindex 7d1da00c..4e678d21 100644--- a/src/lib/composer.ts+++ b/src/lib/composer.ts@@ -8,7 +8,7 @@ import { fpsPlan, fpsSummary } from "./av/fps";import { targetShortEdge, upscaledSize, upscaleFactorFor, upscaleTier } from "./av/upscale";import { wholeClipProblem, wholeClipTool } from "./av/video-finish";import { clipFpsProblem, clipSizeProblem, clipWindowProblem } from "./catalog/clip-windows";-import { clipBilling } from "./catalog/plan";+import { clipBilling, sourceLengthProblem } from "./catalog/plan";import { addFrameAt, frameTimes, framesInputs, removeFrameAt, spread, type FrameSupport } from "./catalog/keyframes";import { FACE_MOSAIC_MODELS } from "./catalog/open-tools";import { pricingOn, type PriceClock } from "./catalog/promo";@@ -310,6 +310,8 @@ export function clipBlocker((facts.fps ? clipFpsProblem(named, facts.fps) : null));}+ const long = model && "name" in model && model.name ? sourceLengthProblem({ name: model.name, options: model.options }, facts?.duration) : null;+ if (long) return long;if (!facts?.width || !facts.height || !model) return null;if (op === "upscale-video") {const tier = upscaleTier(params.resolution ?? model.defaults?.resolution, model.options.resolutions, { width: facts.width, height: facts.height }, params.resolution !== undefined);diff --git a/src/lib/kandinsky-prompt.ts b/src/lib/kandinsky-prompt.tsnew file mode 100644index 00000000..840d6f21--- /dev/null+++ b/src/lib/kandinsky-prompt.ts@@ -0,0 +1,38 @@+/**+ * Kandinsky 6.0 (oss-kandinsky6 on your GPU, kandinsky-6 on fal): the prompt the model reads. Kandinsky's captions mark+ * the words a character says as <S>…<E>, at the moment they are said, and the sound of the shot as <AUDCAP>…<ENDAUDCAP>+ * after the picture (the Kandinsky 6 README and its prompt helper's examples). People write neither: words in quotes are+ * what is said, and a line or sentence starting "Sound:" (or "Audio:", "Music:") is the sound. Pure, so the server (which+ * formats the words just before a run, on either engine) and the tests share it.+ */++/** Words already in Kandinsky's form (a reused run, or someone who knows the tags): left as they are. */+export const inKandinskyForm = (text: string): boolean => /<S>[\s\S]*?<E>|<AUDCAP>[\s\S]*?<ENDAUDCAP>/.test(text);++/** Quoted words: straight, curly or angle quotes, at least one letter inside. */+const QUOTED = /"([^"\n]*\p{L}[^"\n]*)"|“([^”\n]*\p{L}[^”\n]*)”|«([^»\n]*\p{L}[^»\n]*)»|„([^“”\n]*\p{L}[^“”\n]*)[“”]/gu;++/** A sound line: "Sound: rain on the glass", on a line of its own or as the last sentence. */+const SOUND = /(?:^|\n|(?<=[.!?…])\s+)(?:sounds?|audio|music)\s*:\s*([^\n]+?)\s*$/i;++/**+ * The person's words in Kandinsky 6.0's form: quoted words become spoken lines, a closing "Sound: …" line the sound caption.+ * "She smiles and says “Look over there!” Sound: rain on the window" →+ * "She smiles and says <S>Look over there!<E> <AUDCAP>rain on the window<ENDAUDCAP>". Words already tagged pass through.+ */+export function kandinskyPrompt(words: string): string {+ const text = words.trim();+ if (!text || inKandinskyForm(text)) return text;+ let picture = text;+ let sound = "";+ const m = SOUND.exec(text);+ if (m && m.index > 0) {+ sound = m[1].trim();+ picture = text.slice(0, m.index).trim();+ }+ picture = picture.replace(QUOTED, (_, a, b, c, d) => `<S>${String(a ?? b ?? c ?? d).trim()}<E>`);+ return sound ? `${picture} <AUDCAP>${sound}<ENDAUDCAP>` : picture;+}++/** The prompt box's hint for Kandinsky 6.0: how to give a character words, and the shot its sound. */+export const KANDINSKY_PLACEHOLDER = "Describe the shot. Put what someone says in quotes: she smiles and says “Look over there!” · end with Sound: … for ambience or music";diff --git a/src/server/generations.ts b/src/server/generations.tsindex ac0bbfc1..672fe15f 100644--- a/src/server/generations.ts+++ b/src/server/generations.ts@@ -13,7 +13,7 @@ import { HELPER_FEATURES, HELPER_SUFFIX, isReviewStatus, type AssetUse, type Revimport { upscaleTier } from "@/lib/av/upscale";import { chainedWaitMessage, framesWait, keyframeChain } from "@/lib/catalog/keyframes";import { clipFpsProblem, clipSizeProblem, clipTotalProblem, clipWindowProblem, elementClipProblem, sourceFrames } from "@/lib/catalog/clip-windows";-import { avatarSeconds, clipEditSeconds, estimateCost, inferOperation, movedAppRequest, planGeneration, presetRoute, routeLoras, routesFor, withoutTriggers } from "@/lib/catalog/plan";+import { avatarSeconds, clipEditSeconds, estimateCost, inferOperation, movedAppRequest, planGeneration, presetRoute, routeLoras, routesFor, sourceLengthProblem, withoutTriggers } from "@/lib/catalog/plan";import { framedLength, keepMatte, sizeValue } from "@/lib/catalog/payload";import { fitLoras, loraName, lorasFit } from "@/lib/catalog/loras";import { dualEngine, onEngine, pickEngine } from "@/lib/catalog/engines";@@ -59,6 +59,7 @@ import { createEndFrameClip, createExtendChain, createKeyframeFilm, createMosaicimport { createRegenerateRun } from "./regenerate";import { REGEN_MODEL, regenerateGraphLoras } from "@/lib/catalog/regenerate";import { enhancePrompt, enhanceSoulWords, ideogramCaption } from "./enhance";+import { kandinskyPrompt } from "@/lib/kandinsky-prompt";import { carriesLayout } from "@/lib/layout-prompt";import { setResolver, watchGenerations, type LiveEvent } from "./live";import { provider, PROVIDERS, RETIRED_PROVIDER_ERROR } from "./providers";@@ -737,7 +738,7 @@ function prepare(original: GenerationRequest) {if (access.dropped.length) plan = { ...plan, loras: access.loras, prompt: withoutTriggers(plan.prompt, plan.loras.filter((l) => !access.loras.some((k) => k.file === l.file)), access.loras) };else if (access.loras.some((l, i) => l !== plan.loras[i])) plan = { ...plan, loras: access.loras };// A preset can route to another model than the one asked for: its routes that are on (or the switch that's off).- const { route, demo } = chooseRoute(offeredRoutes(plan.model, routesFor(plan.model, plan.op)), req.inputs?.images?.length ?? 0, plan.loras, seconds, !!worded.demo);+ const { route, demo } = chooseRoute(offeredRoutes(plan.model, routesFor(plan.model, plan.op, plan.params)), req.inputs?.images?.length ?? 0, plan.loras, seconds, !!worded.demo);// Qwen-Image 2.1's Options → Speed loads its speed's LoRA in the graph: that LoRA switched off holds the speed.const tier = route.provider === "comfyui" ? speedLora(route.endpoint, plan.params.extra) : undefined;if (tier && offeredLoras([{ file: tier.file }]).dropped.length) {@@ -1701,6 +1702,9 @@ async function submitNow(update(id, { prompt });}}+ // Kandinsky 6.0 (both engines) reads spoken lines and the sound in tags of its own (src/lib/kandinsky-prompt.ts): quoted+ // words and a "Sound:" line become them for this run; the run keeps the words as typed, so Reuse shows them.+ if (plan.model.options.promptFormat === "kandinsky6" && prompt) prompt = kandinskyPrompt(prompt);const input: GenInput = {...plan.params,prompt,@@ -1777,6 +1781,15 @@ async function submitNow(}// An upscale that wouldn't enlarge the clip (a 1080p clip at a default 1080p; a 4K clip would even shrink):// a tier the model only defaulted to moves up to the next one it offers, one the caller picked is refused.+ // A clip longer than the model takes (Kandinsky VSR: about 5 s) is refused, never cut short; one billed per output frame is+ // priced again on its size and length.+ if (plan.op === "upscale-video") {+ const long = sourceLengthProblem(plan.model, input.sourceDuration);+ if (long) throw new Error(long);+ if (plan.model.pricing?.outputFrames && input.sourceSize && providerId !== "mock" && plan.model.engine !== "open") {+ update(id, { cost_usd: estimateCost(plan.model, { ...plan.params, sourceSize: input.sourceSize, sourceDuration: input.sourceDuration }, 1, plan.op) });+ }+ }if (plan.op === "upscale-video" && input.sourceSize) {const tier = upscaleTier(input.resolution, plan.model.options.resolutions, input.sourceSize, req.params?.resolution !== undefined);if ("error" in tier) throw new Error(tier.error);diff --git a/src/server/request-schema.ts b/src/server/request-schema.tsindex 2126fd48..31b653b4 100644--- a/src/server/request-schema.ts+++ b/src/server/request-schema.ts@@ -97,6 +97,7 @@ export const GenerationRequestSchema = z.object({crossfade: z.number().min(0).max(30).optional(),sourceDuration: z.number().positive().max(36_000).optional(),sourceFps: z.number().positive().max(1000).optional(),+ sourceSize: z.object({ width: z.number().int().positive().max(16_384), height: z.number().int().positive().max(16_384) }).optional(),frameInterval: z.number().int().min(1).max(10_000).optional(),targetFps: z.number().positive().max(240).optional(),slowdown: z.number().min(1).max(8).optional(),