Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Research: Kling 4.0's fal API is open, re-read with the fetch script

Clauded9d6b87d0456
diff --git a/docs/research/paid-model-apis-4.json b/docs/research/paid-model-apis-4.json
index 8818a2d1..e9ac6ba6 100644
--- a/docs/research/paid-model-apis-4.json
+++ b/docs/research/paid-model-apis-4.json
@@ -102,7 +102,7 @@
"insert: Kling O3 edit 'Add @Image1 to @Video1 ...'; fal-ai/pika/v2/pikadditions (deprecated)",
"people: replicate:prunaai/p-video-replace ($0.03/s), fal-ai/wan/v2.2-14b/animate/replace ($0.04-0.08/s), minimax/h3-max/recast (part 3)",
"first-frame route: bria/fibo-edit/replace_object_by_text (or Nano Banana Pro edit) -> luma/agent/ray/v3.2/video-to-video start_image_url (part 2) or replicate:runwayml/aleph-2 keyframe_images",
- "when its API opens: kling/v4/video-to-video/edit (3-30 s, 10 images, 7 elements)"
+ "kling/v4/video-to-video/edit (API open on 2026-11-01: 3-30 s, 10 images, 4 clips, 7 elements; in the catalog as kling-4)"
],
"fields": "Kling O3: prompt with @Video1 and @Image1.. + video_url (3-15 s) + image_urls / elements (<=4 total) + keep_audio (true). Genjutsu Light: video_url (first 15 s used) + image_urls (1-8) + optional prompt + resolution 480p|720p|1080p; $0.05/$0.10/$0.20 per second list, 50% off on 2026-10-22."
},
@@ -221,7 +221,7 @@
"creatify/boreal (UGC with audio, $0.01/s 720p)",
"pixelcut/looping-video (product loops)",
"minimax/h3-max/reframe-video",
- "wait: kling/v4/* (playground only, 'API access is coming soon')",
+ "kling/v4/* (playground only on 2026-10-22; API open on 2026-11-01, routed as kling-4 by nm10-kling-4)",
"skip: fal-ai/kandinsky6-pro/* ($1.35 per 5 s 480p)"
],
"fields": "See each record. Quality versus Seedance 2.5 is unverified."
@@ -247,7 +247,7 @@
"Video erasers are short: Bria's eraser (fal and Replicate) takes clips under 5 s, VOID takes at most 197 frames, Kling O3 edit 3-15 s. Longer clips must be split into segments and joined, and seams between segments are untested.",
"No MiniMax-Remover, DiffuEraser or ProPainter on fal (fal-ai/minimax-remover, fal-ai/minimax-remover/video, fal-ai/diffueraser, fal-ai/propainter, fal-ai/video-object-removal, fal-ai/object-removal/video, fal-ai/video-eraser: no OpenAPI). On Replicate they exist only as community models with non-commercial weights (MiniMax-Remover CC BY-NC 4.0 on Hugging Face zibojia/minimax-remover; ProPainter S-Lab License 1.0).",
"No Vidu video-edit endpoint (fal-ai/vidu/q2/reference-to-video/edit, fal-ai/vidu/q3/video-edit, fal-ai/vidu/q4/video-edit: no OpenAPI). Pika: fal-ai/pika/v2/pikaswaps is unlisted and fal-ai/pika/v2/pikadditions deprecated; fal-ai/pika/v2.2/pikaswaps, fal-ai/pika/v2.2/pikadditions and fal-ai/pika/pikaswaps do not exist.",
- "Kling 4.0 (kling/v4/text-to-video, image-to-video, reference-to-video, video-to-video/edit) is in fal's catalog with schemas, but every page says 'API access is coming soon' (playground and fal Agent only). Replicate has no Kling 4 (kwaivgi/kling-v4, kling-v4-video, kling-v4-omni-video: 404). Higgsfield's pricing API (its public API, checked 2026-10-22) has no Kling 4.0 either, although higgsfield-delta-4.md reports Kling 4.0 in Higgsfield's web app since 2026-10-21. So no API route reaches Kling 4.0 yet.",
+ "Kling 4.0 (kling/v4/text-to-video, image-to-video, reference-to-video, video-to-video/edit) is in fal's catalog with schemas, but every page says 'API access is coming soon' (playground and fal Agent only). Replicate has no Kling 4 (kwaivgi/kling-v4, kling-v4-video, kling-v4-omni-video: 404). Higgsfield's pricing API (its public API, checked 2026-10-22) has no Kling 4.0 either, although higgsfield-delta-4.md reports Kling 4.0 in Higgsfield's web app since 2026-10-21. So no API route reaches Kling 4.0 yet. Update 2026-11-01 (nm10-kling-4): all four fal endpoints are live (catalog status active, llms.txt with no 'coming soon') and Replicate now lists the official kwaivgi/kling-v4.0 (version f4dc4504, 2026-10-26).",
"No general transcode, FPS change, speed, loop, fade, crop or zoompan endpoint: fal-ai/ffmpeg-api/{transcode, convert, loop-audio, loop, extend-audio, concat-audio, concat-audios, mix-audios, mix-audio, slideshow, zoompan, ken-burns, image-to-video, overlay, speed, change-speed, fps, change-fps, gif, compress, trim-audio} and fal-ai/workflow-utilities/{transcode, convert-video, change-fps, fps, speed-video, change-speed, loop-video, loop-audio, concat-audio, mix-audio, trim-audio, ken-burns, zoompan, crop-video, pad-video, fade, crossfade} have no OpenAPI. The Ken Burns piece exists as the unlisted fal-ai/workflow-utilities/image-to-video. Replicate's community utilities (fofr/toolkit, nicolascoutureau/video-utils) convert only to mp4 or GIF.",
"ProRes output exists only as an option of other jobs: topaz/sdr-to-hdr/video (ProRes 422 HQ, HDR) and Bria's video endpoints (mov_proresks: eraser, background removal, increase-resolution). A plain SDR ProRes or EXR export needs a local ffmpeg step.",
"Topaz frame interpolation and SDR-to-HDR are fal-only (replicate topazlabs/video-interpolate and topazlabs/sdr-to-hdr: 404). Replicate's topazlabs/video-upscale has only video, target_resolution and target_fps (15-60).",
@@ -2645,7 +2645,7 @@
"provider": "fal",
"endpoint": "kling/v4/video-to-video/edit",
"falCategory": "video-to-video",
- "status": "playground-only",
+ "status": "active",
"inputs": {
"prompt": {
"type": "string",
@@ -2662,63 +2662,96 @@
"desc": "The video to edit (3-30s), referenced as @Video1.\n\nMax file size: 300.0MB, Min width: 700px, Min height: 700px, Max width: 4553px, Max height: 4553px, Min aspect ratio: 0.40, Max aspect ratio: 2.50, Min duration: 3.0s, Max duration: 30.05s, Min FPS: 23.9, Max FPS: 60.05, Timeout: 30.0s"
},
"image_urls": {
+ "nullable": true,
"type": "array",
- "required": false,
"items": "string",
"maxItems": 10,
+ "required": false,
"desc": "Reference images, referenced as @Image1, @Image2, ...",
+ "examples": [
+ null
+ ]
+ },
+ "video_urls": {
"nullable": true,
+ "type": "array",
+ "items": "string",
+ "maxItems": 4,
+ "required": false,
+ "desc": "Reference videos, referenced as @Video2, @Video3, ... (max 4). The source, reference and element videos must total at most 30s.",
"examples": [
null
]
},
"elements": {
+ "nullable": true,
"type": "array",
- "required": false,
"items": "object",
"itemSchema": {
- "frontal_image_url": {
+ "video_url": {
+ "nullable": true,
+ "type": "string",
+ "required": false,
+ "desc": "A video of the element, used instead of images (3-8s)."
+ },
+ "voice_id": {
+ "nullable": true,
"type": "string",
- "desc": "The frontal image of the element (main view).\n\nMax file size: 30.0MB, Min width: 300px, Min height: 300px, Min aspect ratio: 0.40, Max aspect ratio: 2.50, Timeout: 20.0s"
+ "required": false,
+ "desc": "Voice bound to this element. Create one with https://fal.ai/models/fal-ai/kling-video/create-voice"
},
"reference_image_urls": {
+ "nullable": true,
"type": "array",
"items": "string",
- "minItems": 1,
"maxItems": 3,
+ "required": false,
"desc": "Additional views of the element from different angles (1-3)."
+ },
+ "frontal_image_url": {
+ "nullable": true,
+ "type": "string",
+ "required": false,
+ "desc": "The frontal image of the element (main view)."
}
},
- "itemRequired": [
- "frontal_image_url",
- "reference_image_urls"
- ],
"maxItems": 7,
- "desc": "Characters/objects, referenced as @Element1, @Element2, ...",
+ "required": false,
+ "desc": "Characters/objects, referenced as @Element1, @Element2, ... (max 7). Up to 3 elements may carry a voice_id and up to 3 may be video elements.",
+ "examples": [
+ null
+ ]
+ },
+ "voice_ids": {
"nullable": true,
+ "type": "array",
+ "items": "string",
+ "maxItems": 3,
+ "required": false,
+ "desc": "Voices referenced in the prompt as @Voice1, @Voice2, ... (max 3, including voices bound to elements). Create one with https://fal.ai/models/fal-ai/kling-video/create-voice",
"examples": [
null
]
},
"duration": {
+ "nullable": true,
"type": "integer",
"required": false,
"minimum": 3,
"maximum": 30,
"desc": "Output duration in seconds (3-30). Defaults to the source video's length.",
- "nullable": true,
"examples": [
null
]
},
"resolution": {
"type": "enum",
- "required": false,
"values": [
"720p",
"1080p"
],
"valueType": "string",
+ "required": false,
"default": "1080p",
"desc": "Output resolution."
}
@@ -2727,6 +2760,7 @@
"prompt": "prompt",
"video": "video_url",
"images": "image_urls",
+ "videos": "video_urls",
"elements": "elements",
"duration": "duration",
"resolution": "resolution"
@@ -2790,11 +2824,12 @@
},
"replicateEquivalent": null,
"license": "commercial",
- "notes": "Kling 4.0 (catalog date 2026-10-16). fal's page says: 'Kling 4.0 is available in the playground and fal Agent. API access is coming soon.' So the schema is served but API calls are not open yet: do not add a route until the page changes. 3-30 s, 720p/1080p, multi_prompt per-shot prompts. Edit: source 3-30 s (<=300 MB, 700-4553 px, aspect 0.40-2.50, 23.9-60 fps) as @Video1, up to 10 image_urls (@Image1..) and 7 elements (@Element1..: frontal_image_url + reference_image_urls). $0.094/s at 720p, $0.141/s at 1080p, billed on input plus output length (at least 2x the output). Critic re-check 2026-10-22: still playground-only; video_url also needs 700-4553 px on each side and aspect 0.40-2.50.",
+ "notes": "Kling 4.0 (catalog date 2026-10-16). Re-checked 2026-11-01 (build package nm10-kling-4): fal's catalog lists it as active, its llms.txt documents the fal.run endpoint with Key auth and no longer says 'API access is coming soon', so the 2026-10-22 hold is lifted and Fuobe routes it. Source 3-30.05 s (<=300 MB, 700-4553 px a side, aspect 0.40-2.50, 23.9-60.05 fps) as @Video1; up to 10 image_urls (@Image1..), and since round 4 up to 4 video_urls (@Video2..; source, reference and element videos 30 s in all), elements as in reference-to-video (frontal_image_url and reference_image_urls are no longer required: a 3-8 s video_url may stand in) and voice_ids (up to 3). duration defaults to the source's length. Billed $0.094/s (720p) or $0.141/s (1080p) on input plus output seconds, at least 2x the output.",
"verified": true,
"sourceUrl": "https://fal.ai/models/kling/v4/video-to-video/edit/api",
"schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=kling/v4/video-to-video/edit",
- "capability": "swap"
+ "capability": "swap",
+ "checked": "2026-11-01"
},
{
"family": "kling",
@@ -2805,34 +2840,36 @@
"provider": "fal",
"endpoint": "kling/v4/reference-to-video",
"falCategory": "video-to-video",
- "status": "playground-only",
+ "status": "active",
"inputs": {
"prompt": {
+ "nullable": true,
"type": "string",
"required": false,
"maxLength": 26000,
"desc": "Text prompt. Reference inputs as @Image1, @Video1, @Element1, etc. Either prompt or multi_prompt must be provided.",
- "nullable": true,
"examples": [
"@Element1 and @Element2 are having dinner at the table in @Image1"
]
},
"multi_prompt": {
+ "nullable": true,
"type": "array",
- "required": false,
"items": "object",
"itemSchema": {
"prompt": {
"type": "string",
+ "required": false,
"minLength": 1,
"maxLength": 512,
"desc": "The prompt for this shot."
},
"duration": {
"type": "integer",
+ "required": false,
+ "default": 5,
"minimum": 1,
"maximum": 30,
- "default": 5,
"desc": "Shot duration in seconds."
}
},
@@ -2840,8 +2877,8 @@
"prompt"
],
"minItems": 1,
+ "required": false,
"desc": "Per-shot prompts for multi-shot generation. The video duration is the sum of the shot durations.",
- "nullable": true,
"examples": [
null
]
@@ -2849,88 +2886,119 @@
"duration": {
"type": "integer",
"required": false,
+ "default": 5,
"minimum": 3,
"maximum": 30,
- "default": 5,
"desc": "Video duration in seconds (3-30)."
},
"start_image_url": {
+ "nullable": true,
"type": "string",
"required": false,
- "desc": "Optional image to use as the first frame. Counts toward the image reference limit.",
- "nullable": true
+ "desc": "Optional image to use as the first frame. Counts toward the image reference limit."
},
- "image_urls": {
+ "middle_image_urls": {
+ "nullable": true,
"type": "array",
+ "items": "string",
+ "maxItems": 8,
"required": false,
+ "desc": "Optional ordered keyframes between the first and last frames (max 8). Count toward the image reference limit.",
+ "examples": [
+ null
+ ]
+ },
+ "end_image_url": {
+ "nullable": true,
+ "type": "string",
+ "required": false,
+ "desc": "Optional image to use as the last frame. Counts toward the image reference limit."
+ },
+ "image_urls": {
+ "nullable": true,
+ "type": "array",
"items": "string",
"maxItems": 10,
+ "required": false,
"desc": "Reference images, referenced as @Image1, @Image2, ... (max 10).",
- "nullable": true,
"examples": [
null
]
},
"video_urls": {
+ "nullable": true,
"type": "array",
- "required": false,
"items": "string",
"maxItems": 5,
+ "required": false,
"desc": "Reference videos (3-30s each, 30s combined with element videos), referenced as @Video1, @Video2, ... (max 5).",
- "nullable": true,
"examples": [
null
]
},
"elements": {
+ "nullable": true,
"type": "array",
- "required": false,
"items": "object",
"itemSchema": {
- "frontal_image_url": {
+ "video_url": {
+ "nullable": true,
"type": "string",
- "desc": "The frontal image of the element (main view).",
- "nullable": true
+ "required": false,
+ "desc": "A video of the element, used instead of images (3-8s)."
+ },
+ "voice_id": {
+ "nullable": true,
+ "type": "string",
+ "required": false,
+ "desc": "Voice bound to this element. Create one with https://fal.ai/models/fal-ai/kling-video/create-voice"
},
"reference_image_urls": {
+ "nullable": true,
"type": "array",
"items": "string",
"maxItems": 3,
- "desc": "Additional views of the element from different angles (1-3).",
- "nullable": true
- },
- "video_url": {
- "type": "string",
- "desc": "A video of the element, used instead of images (3-30s).",
- "nullable": true
+ "required": false,
+ "desc": "Additional views of the element from different angles (1-3)."
},
- "voice_id": {
+ "frontal_image_url": {
+ "nullable": true,
"type": "string",
- "desc": "Voice bound to this element. Create one with https://fal.ai/models/fal-ai/kling-video/create-voice",
- "nullable": true
+ "required": false,
+ "desc": "The frontal image of the element (main view)."
}
},
"maxItems": 7,
+ "required": false,
"desc": "Characters/objects, referenced as @Element1, @Element2, ... (max 7). Up to 3 elements may carry a voice_id and up to 3 may be video elements.",
+ "examples": [
+ null
+ ]
+ },
+ "voice_ids": {
"nullable": true,
+ "type": "array",
+ "items": "string",
+ "maxItems": 3,
+ "required": false,
+ "desc": "Voices referenced in the prompt as @Voice1, @Voice2, ... (max 3, including voices bound to elements). Create one with https://fal.ai/models/fal-ai/kling-video/create-voice",
"examples": [
null
]
},
"resolution": {
"type": "enum",
- "required": false,
"values": [
"720p",
"1080p"
],
"valueType": "string",
+ "required": false,
"default": "1080p",
"desc": "Output resolution."
},
"aspect_ratio": {
"type": "enum",
- "required": false,
"values": [
"auto",
"16:9",
@@ -2939,6 +3007,7 @@
"21:9"
],
"valueType": "string",
+ "required": false,
"default": "16:9",
"desc": "Aspect ratio of the generated video. 'auto' adapts it to the references."
}
@@ -3013,11 +3082,12 @@
},
"replicateEquivalent": null,
"license": "commercial",
- "notes": "Kling 4.0 (catalog date 2026-10-16). fal's page says: 'Kling 4.0 is available in the playground and fal Agent. API access is coming soon.' So the schema is served but API calls are not open yet: do not add a route until the page changes. 3-30 s, 720p/1080p, multi_prompt per-shot prompts. Up to 10 images, 5 reference videos and 7 elements (elements can carry a video_url and a voice_id). $0.157/s 720p, $0.235/s 1080p; with video references $0.094/$0.141 per input+output second.",
+ "notes": "Kling 4.0 (catalog date 2026-10-16). Re-checked 2026-11-01 (build package nm10-kling-4): fal's catalog lists it as active, its llms.txt documents the fal.run endpoint with Key auth and no longer says 'API access is coming soon', so the 2026-10-22 hold is lifted and Fuobe routes it. Up to 10 images (@Image1.., start, middle and end frames count toward them), 5 reference clips (@Video1.., 3-30 s each, 30 s with element videos), 7 elements (@Element1..: frontal_image_url + 1-3 reference_image_urls, or a 3-8 s video_url; up to 3 with a voice_id, up to 3 video elements) and, new since round 4, voice_ids (@Voice1.., up to 3, made with fal-ai/kling-video/create-voice), middle_image_urls (8) and end_image_url. aspect_ratio adds 'auto'. Text and image references bill $0.157/$0.235 per output second; with reference clips or video elements $0.094/$0.141 per second of input plus output (at least 2x the output).",
"verified": true,
"sourceUrl": "https://fal.ai/models/kling/v4/reference-to-video/api",
"schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=kling/v4/reference-to-video",
- "capability": "swap"
+ "capability": "swap",
+ "checked": "2026-11-01"
},
{
"family": "kling",
@@ -16381,34 +16451,36 @@
"provider": "fal",
"endpoint": "kling/v4/text-to-video",
"falCategory": "text-to-video",
- "status": "playground-only",
+ "status": "active",
"inputs": {
"prompt": {
+ "nullable": true,
"type": "string",
"required": false,
"maxLength": 26000,
"desc": "Text prompt. Either prompt or multi_prompt must be provided.",
- "nullable": true,
"examples": [
"A detective in a black trench coat stands on a rooftop in the rain, looking through a telescope at the street below."
]
},
"multi_prompt": {
+ "nullable": true,
"type": "array",
- "required": false,
"items": "object",
"itemSchema": {
"prompt": {
"type": "string",
+ "required": false,
"minLength": 1,
"maxLength": 512,
"desc": "The prompt for this shot."
},
"duration": {
"type": "integer",
+ "required": false,
+ "default": 5,
"minimum": 1,
"maximum": 30,
- "default": 5,
"desc": "Shot duration in seconds."
}
},
@@ -16416,8 +16488,8 @@
"prompt"
],
"minItems": 1,
+ "required": false,
"desc": "Per-shot prompts for multi-shot generation. The video duration is the sum of the shot durations.",
- "nullable": true,
"examples": [
null
]
@@ -16425,25 +16497,24 @@
"duration": {
"type": "integer",
"required": false,
+ "default": 5,
"minimum": 3,
"maximum": 30,
- "default": 5,
"desc": "Video duration in seconds (3-30)."
},
"resolution": {
"type": "enum",
- "required": false,
"values": [
"720p",
"1080p"
],
"valueType": "string",
+ "required": false,
"default": "1080p",
"desc": "Output resolution."
},
"aspect_ratio": {
"type": "enum",
- "required": false,
"values": [
"16:9",
"9:16",
@@ -16451,6 +16522,7 @@
"21:9"
],
"valueType": "string",
+ "required": false,
"default": "16:9",
"desc": "Aspect ratio of the generated video."
}
@@ -16521,11 +16593,12 @@
},
"replicateEquivalent": null,
"license": "commercial",
- "notes": "Kling 4.0 (catalog date 2026-10-16). fal's page says: 'Kling 4.0 is available in the playground and fal Agent. API access is coming soon.' So the schema is served but API calls are not open yet: do not add a route until the page changes. 3-30 s, 720p/1080p, multi_prompt per-shot prompts. $0.157/s 720p, $0.235/s 1080p.",
+ "notes": "Kling 4.0 (catalog date 2026-10-16). Re-checked 2026-11-01 (build package nm10-kling-4): fal's catalog lists it as active, its llms.txt documents the fal.run endpoint with Key auth and no longer says 'API access is coming soon', so the 2026-10-22 hold is lifted and Fuobe routes it. prompt or multi_prompt (per-shot prompts, 1-30 s each; the video is as long as their sum), 3-30 s, 720p | 1080p (default 1080p), 16:9 | 9:16 | 1:1 | 21:9. $0.157/s 720p, $0.235/s 1080p.",
"verified": true,
"sourceUrl": "https://fal.ai/models/kling/v4/text-to-video/api",
"schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=kling/v4/text-to-video",
- "capability": "frontier"
+ "capability": "frontier",
+ "checked": "2026-11-01"
},
{
"family": "kling",
@@ -16536,14 +16609,14 @@
"provider": "fal",
"endpoint": "kling/v4/image-to-video",
"falCategory": "image-to-video",
- "status": "playground-only",
+ "status": "active",
"inputs": {
"prompt": {
+ "nullable": true,
"type": "string",
"required": false,
"maxLength": 26000,
"desc": "Text prompt. Either prompt or multi_prompt must be provided.",
- "nullable": true,
"examples": [
"A detective in a black trench coat stands on a rooftop in the rain, looking through a telescope at the street below."
]
@@ -16556,31 +16629,44 @@
"https://v3b.fal.media/files/b/rabbit/NaslJIC7F2WodS6DFZRRJ.png"
]
},
+ "middle_image_urls": {
+ "nullable": true,
+ "type": "array",
+ "items": "string",
+ "maxItems": 8,
+ "required": false,
+ "desc": "Ordered keyframes between the first and last frames (max 8).",
+ "examples": [
+ null
+ ]
+ },
"end_image_url": {
+ "nullable": true,
"type": "string",
"required": false,
"desc": "Image to use as the last frame of the video.",
- "nullable": true,
"examples": [
"https://v3b.fal.media/files/b/tiger/BwHi22qoQnqaTNMMhe533.png"
]
},
"multi_prompt": {
+ "nullable": true,
"type": "array",
- "required": false,
"items": "object",
"itemSchema": {
"prompt": {
"type": "string",
+ "required": false,
"minLength": 1,
"maxLength": 512,
"desc": "The prompt for this shot."
},
"duration": {
"type": "integer",
+ "required": false,
+ "default": 5,
"minimum": 1,
"maximum": 30,
- "default": 5,
"desc": "Shot duration in seconds."
}
},
@@ -16588,8 +16674,8 @@
"prompt"
],
"minItems": 1,
+ "required": false,
"desc": "Per-shot prompts for multi-shot generation. The video duration is the sum of the shot durations.",
- "nullable": true,
"examples": [
null
]
@@ -16597,19 +16683,19 @@
"duration": {
"type": "integer",
"required": false,
+ "default": 5,
"minimum": 3,
"maximum": 30,
- "default": 5,
"desc": "Video duration in seconds (3-30)."
},
"resolution": {
"type": "enum",
- "required": false,
"values": [
"720p",
"1080p"
],
"valueType": "string",
+ "required": false,
"default": "1080p",
"desc": "Output resolution."
}
@@ -16681,11 +16767,12 @@
},
"replicateEquivalent": null,
"license": "commercial",
- "notes": "Kling 4.0 (catalog date 2026-10-16). fal's page says: 'Kling 4.0 is available in the playground and fal Agent. API access is coming soon.' So the schema is served but API calls are not open yet: do not add a route until the page changes. 3-30 s, 720p/1080p, multi_prompt per-shot prompts. start_image_url required, end_image_url optional. Only start_image_url and end_image_url: Higgsfield's 3-10 keyframe mode has no fal equivalent here (use reference image_urls or blackforestlabs/flux-3-max/keyframes-to-video).",
+ "notes": "Kling 4.0 (catalog date 2026-10-16). Re-checked 2026-11-01 (build package nm10-kling-4): fal's catalog lists it as active, its llms.txt documents the fal.run endpoint with Key auth and no longer says 'API access is coming soon', so the 2026-10-22 hold is lifted and Fuobe routes it. start_image_url required, end_image_url optional, and since round 4 middle_image_urls: up to 8 ordered keyframes between the first and last frame (10 frames in all), with no time for each frame. No aspect_ratio field (the start frame's shape). multi_prompt as text-to-video.",
"verified": true,
"sourceUrl": "https://fal.ai/models/kling/v4/image-to-video/api",
"schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=kling/v4/image-to-video",
- "capability": "frontier"
+ "capability": "frontier",
+ "checked": "2026-11-01"
},
{
"family": "kandinsky",
@@ -22097,6 +22184,121 @@
"sourceUrl": "https://fal.ai/models/meshy/v7.1/multi-image-to-3d/api",
"schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=meshy/v7.1/multi-image-to-3d",
"capability": "scene3d"
+ },
+ {
+ "family": "kling",
+ "model": "kwaivgi/kling-v4.0",
+ "title": "kwaivgi/kling-v4.0",
+ "vendor": "Kuaishou",
+ "operation": "t2v+i2v+flf2v+v2v",
+ "provider": "replicate",
+ "endpoint": "kwaivgi/kling-v4.0",
+ "falCategory": null,
+ "status": "active",
+ "inputs": {
+ "prompt": {
+ "type": "string",
+ "required": true,
+ "desc": "Text prompt describing the video. Refer to images as @image_1, @image_2, ... and videos as @video_1, @video_2, ... (see start_image and reference_images for numbering). Up to 26,000 English characters or 11,000 non-English characters."
+ },
+ "start_image": {
+ "type": "string(uri)",
+ "required": false,
+ "nullable": true,
+ "desc": "First frame of the video. Supports .jpg/.jpeg/.png, max 30MB, min 300px, aspect ratio between 2:5 and 5:2."
+ },
+ "middle_images": {
+ "type": "array",
+ "items": "string",
+ "required": false,
+ "default": [],
+ "desc": "Keyframes between the first and last frame, in order. Same format requirements as start_image."
+ },
+ "end_image": {
+ "type": "string(uri)",
+ "required": false,
+ "nullable": true,
+ "desc": "Last frame of the video. Same format requirements as start_image."
+ },
+ "reference_images": {
+ "type": "array",
+ "items": "string",
+ "required": false,
+ "default": [],
+ "desc": "Reference images for characters, objects, scenes or style. Images are numbered in this order: start_image, middle_images, end_image, reference_images. Up to 10 images in total across all image inputs."
+ },
+ "reference_videos": {
+ "type": "array",
+ "items": "string",
+ "required": false,
+ "default": [],
+ "desc": "Reference videos to take motion, camera work or style from (.mp4/.mov, 3-30 seconds each, 700-4553px per side, max 300MB). Numbered after base_video."
+ },
+ "base_video": {
+ "type": "string(uri)",
+ "required": false,
+ "nullable": true,
+ "desc": "Video to edit (.mp4/.mov, 3-30 seconds, 700-4553px per side, max 300MB). Referred to as @video_1. When set, the output keeps the length and aspect ratio of this video."
+ },
+ "resolution": {
+ "type": "enum",
+ "values": [
+ "720p",
+ "1080p"
+ ],
+ "valueType": "string",
+ "required": false,
+ "default": "1080p",
+ "desc": "Output resolution."
+ },
+ "aspect_ratio": {
+ "type": "enum",
+ "values": [
+ "16:9",
+ "9:16",
+ "1:1",
+ "21:9"
+ ],
+ "valueType": "string",
+ "required": false,
+ "default": "16:9",
+ "desc": "Aspect ratio of the output video. Ignored when start_image, middle_images, end_image or base_video is set, since the aspect ratio then comes from the input."
+ },
+ "duration": {
+ "type": "integer",
+ "required": false,
+ "default": 5,
+ "minimum": 3,
+ "maximum": 30,
+ "desc": "Video duration in seconds. Ignored when base_video is set."
+ }
+ },
+ "version": "f4dc4504e94338dc3ccd08ae908116f62eb157ec977f472bbe1df9d56e4359c5",
+ "versionDate": "2026-10-26",
+ "output": "output",
+ "price": "720p (720p, text or image input): $0.157 per second of output video; 1080p (1080p, text or image input): $0.235 per second of output video; 720p with video input (Billed seconds: 2x output if input is shorter than output, otherwise input + output): $0.094 per second of output video; 1080p with video input (Billed seconds: 2x output if input is shorter than output, otherwise input + output): $0.141 per second of output video",
+ "verified": true,
+ "sourceUrl": "https://replicate.com/kwaivgi/kling-v4.0",
+ "apiUrl": "https://api.replicate.com/v1/models/kwaivgi/kling-v4.0/predictions",
+ "keyFields": {
+ "prompt": "prompt",
+ "image": "start_image",
+ "endImage": "end_image",
+ "images": "reference_images",
+ "video": "base_video",
+ "duration": "duration",
+ "resolution": "resolution",
+ "aspectRatio": "aspect_ratio"
+ },
+ "checked": "2026-11-01",
+ "notes": "Kling 4.0 on Replicate (official kwaivgi model, read 2026-11-01). One model for text, start/middle/end frames, reference images and clips, and edits (base_video). Images are numbered @image_1.. across start_image, middle_images, end_image and reference_images (10 in all), clips @video_1.. after base_video; no per-shot prompts, no elements, no voices. Fuobe routes text, image and start/end-frame runs here as a second provider (they map cleanly); reference and edit runs stay on fal, whose @Image/@Video/@Element numbering, shots and elements Fuobe writes. Same prices as fal: $0.157/$0.235 per output second; with a video input $0.094/$0.141 per billed second, 2x the output if the input is shorter, else input + output.",
+ "pricing": {
+ "usd": 0.157,
+ "unit": "second (720p)",
+ "note": "720p (720p, text or image input): $0.157 per second of output video; 1080p (1080p, text or image input): $0.235 per second of output video; 720p with video input (Billed seconds: 2x output if input is shorter than output, otherwise input + output): $0.094 per second of output video; 1080p with video input (Billed seconds: 2x output if input is shorter than output, otherwise input + output): $0.141 per second of output video"
+ },
+ "license": "commercial",
+ "capability": "frontier"
}
]
}
diff --git a/scripts/fetch-hosted-schemas.py b/scripts/fetch-hosted-schemas.py
index eb332414..cc4d81bb 100644
--- a/scripts/fetch-hosted-schemas.py
+++ b/scripts/fetch-hosted-schemas.py
@@ -21,6 +21,11 @@ Run: python3 scripts/fetch-hosted-schemas.py
python3 scripts/fetch-hosted-schemas.py --trainers (only the trainers' outputs)
python3 scripts/fetch-hosted-schemas.py --base-only [endpoint …] (Genjutsu's plain endpoints, or O11's / BASE ones by id, the rest kept)
python3 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)
+
+--part4 re-reads endpoints that research part 4 recorded (docs/research/paid-model-apis-4.json) and refreshes them in
+place: their inputs, the price lines of their llms.txt, their status in fal's catalog (active / playground-only, read
+from the page) and the day it was checked; a Replicate model in PART4 gets its record made or refreshed the same way.
"""
import datetime
import json
@@ -153,6 +158,23 @@ PARTNER = {
"alibaba/happy-horse/v1.1/reference-to-video": ("ref2v", {**HAPPY_HORSE, "aspectRatio": "aspect_ratio", "images": "image_urls"}),
}
+# Research part 4's records re-read with --part4 (build package nm10-kling-4: Kling 4.0's API opened after round 4 recorded
+# it as playground-only). keyFields stay the record's own unless given here; a Replicate model is read by its latest version.
+PART4 = {
+ "kling/v4/text-to-video": None,
+ "kling/v4/image-to-video": None,
+ "kling/v4/reference-to-video": None,
+ # The edit's reference clips (@Video2..) came after round 4 read it.
+ "kling/v4/video-to-video/edit": {"prompt": "prompt", "video": "video_url", "images": "image_urls", "videos": "video_urls", "elements": "elements",
+ "duration": "duration", "resolution": "resolution"},
+ # One Replicate model for text, frames, references and edits. Fuobe routes its text, image and start/end-frame runs
+ # there (its reference numbering, @image_1 across start, middle, end and reference images, and its lack of shots and
+ # elements keep the reference and edit runs on fal); the edit's source is base_video.
+ "replicate:kwaivgi/kling-v4.0": {"prompt": "prompt", "image": "start_image", "endImage": "end_image", "images": "reference_images",
+ "video": "base_video", "duration": "duration", "resolution": "resolution", "aspectRatio": "aspect_ratio"},
+}
+
+
def get(url):
req = urllib.request.Request(url, headers={"User-Agent": "fuobe-research/1.0"})
with urllib.request.urlopen(req, timeout=60) as r:
@@ -204,13 +226,19 @@ def spec(p, root, required=False):
out["required"] = True
elif "type" in out and out["type"] not in ("union",) and "required" not in out:
out["required"] = False
- for src, dst in (("default", "default"), ("minimum", "minimum"), ("maximum", "maximum"), ("exclusiveMinimum", "minimumExclusive"), ("exclusiveMaximum", "maximumExclusive")):
+ for src, dst in (("default", "default"), ("minimum", "minimum"), ("maximum", "maximum"), ("exclusiveMinimum", "minimumExclusive"), ("exclusiveMaximum", "maximumExclusive"),
+ ("minLength", "minLength"), ("maxLength", "maxLength")):
if src in p:
out[dst] = p[src]
if p.get("nullable"):
out["nullable"] = True
- if p.get("description"):
- out["desc"] = p["description"]
+ # fal states a file's limits (size, sides, length, frame rate) in limit_description; research part 4 kept them in desc.
+ limits = p.get("limit_description")
+ desc = p.get("description") or ""
+ if limits and limits not in desc:
+ desc = f"{desc}\n\n{limits}" if desc else limits
+ if desc:
+ out["desc"] = desc
if p.get("examples"):
out["examples"] = p["examples"][:1]
return out
@@ -245,6 +273,89 @@ def replicate(slug, version):
raise SystemExit(f"{slug}: version {version} not found on its schema page")
+def replicate_latest(slug):
+ """A Replicate model's latest version: its inputs (dereferenced OpenAPI) and the version's id and date."""
+ page = get(f"https://replicate.com/{slug}/api/schema")
+ for m in re.finditer(r'<script[^>]*type="application/json"[^>]*>(.*?)</script>', page, re.S):
+ try:
+ data = json.loads(m.group(1))
+ except json.JSONDecodeError:
+ continue
+ v = data.get("version") if isinstance(data, dict) else None
+ if isinstance(v, dict) and (v.get("_extras") or {}).get("dereferenced_openapi_schema"):
+ root = v["_extras"]["dereferenced_openapi_schema"]
+ return inputs_of(root, root["components"]["schemas"]["Input"]), v.get("id"), (v.get("created_at") or "")[:10]
+ raise SystemExit(f"{slug}: no version schema on its page")
+
+
+def replicate_prices(slug):
+ """Replicate's billing tiers for a model, one line each ("720p, text or image input: $0.157 per second of output video")."""
+ page = get(f"https://replicate.com/{slug}")
+ m = re.search(r'"billingConfig":\s*(\{.*?"current_tiers":\s*\[.*?\]\})', page, re.S)
+ if not m:
+ return None
+ try:
+ tiers = json.loads(m.group(1))["current_tiers"]
+ except (json.JSONDecodeError, KeyError):
+ return None
+ lines = []
+ for t in tiers:
+ for pr in t.get("prices") or []:
+ what = t.get("title") or ""
+ if t.get("description") and t.get("description") != what:
+ what = f"{what} ({t['description']})" if what else t["description"]
+ lines.append(f"{what}: {pr.get('price')} {pr.get('title')}")
+ return "; ".join(lines) or None
+
+
+def fal_catalog_status(endpoint):
+ """fal's catalog status of an endpoint (active, deprecated…), or "unlisted"."""
+ data = json.loads(get(f"https://api.fal.ai/v1/models?endpoint_id={endpoint}"))
+ hits = [x for x in data.get("models") or [] if x.get("endpoint_id") == endpoint]
+ return ((hits[0].get("metadata") or {}).get("status") or "active") if hits else "unlisted"
+
+
+def part4(ids):
+ """Refresh research part 4's records (PART4) in docs/research/paid-model-apis-4.json, keeping the rest as they are."""
+ path = ROOT / "docs/research/paid-model-apis-4.json"
+ data = json.loads(path.read_text(encoding="utf-8"))
+ by_key = {(e["provider"], e["endpoint"]): e for e in data["endpoints"]}
+ for key, kf in PART4.items():
+ if ids and key not in ids and key.split(":", 1)[-1] not in ids:
+ continue
+ provider, ep = key.split(":", 1) if key.startswith("replicate:") else ("fal", key)
+ rec = by_key.get((provider, ep))
+ if provider == "fal":
+ if not rec:
+ sys.exit(f"{ep} is not in paid-model-apis-4.json")
+ rec["inputs"] = fal(ep)
+ page = get(f"https://fal.ai/models/{ep}/llms.txt")
+ listed = fal_catalog_status(ep)
+ # Round 4's own status: the page says the API isn't open yet.
+ rec["status"] = "playground-only" if re.search(r"API access is coming soon", page, re.I) else listed
+ # The "## Pricing" section only (the page's later lines price fal's own GPUs).
+ section = re.search(r"(?ims)^## Pricing\s*$(.*?)(?=^## |\Z)", page)
+ lines = [l.replace("**", "").strip(" -*") for l in (section.group(1) if section else "").splitlines()]
+ rec["price"] = " ".join(l for l in lines if "$" in l) or rec.get("price")
+ else:
+ inputs, version, created = replicate_latest(ep)
+ if not rec:
+ rec = {"family": ep.split("/")[1].split("-v")[0], "model": ep, "title": ep, "vendor": "Kuaishou" if ep.startswith("kwaivgi/") else ep.split("/")[0],
+ "operation": "t2v+i2v+flf2v+v2v", "provider": "replicate", "endpoint": ep, "falCategory": None}
+ data["endpoints"].append(rec)
+ rec.update({"status": "active", "inputs": inputs, "version": version, "versionDate": created, "output": "output",
+ "price": replicate_prices(ep), "verified": True, "sourceUrl": f"https://replicate.com/{ep}",
+ "apiUrl": f"https://api.replicate.com/v1/models/{ep}/predictions"})
+ if kf:
+ rec["keyFields"] = kf
+ missing = [f for f in (rec.get("keyFields") or {}).values() if f.split(".")[0] not in rec["inputs"]]
+ if missing:
+ sys.exit(f"{ep}: keyFields {missing} are not inputs")
+ rec["checked"] = TODAY
+ print(f"{provider}:{ep}: {rec['status']}, {len(rec['inputs'])} inputs")
+ path.write_text(json.dumps(data, indent=1, ensure_ascii=False) + "\n", encoding="utf-8")
+
+
def fal_price(endpoint):
text = get(f"https://fal.ai/models/{endpoint}/llms.txt")
m = re.search(r"(?im)^.*\$\d[^\n]*$", text)
@@ -296,6 +407,9 @@ def trainer_outputs(data):
def main():
+ if "--part4" in sys.argv:
+ part4(sys.argv[sys.argv.index("--part4") + 1:])
+ return
raw = FILE.read_text(encoding="utf-8")
data = json.loads(raw)
if "--trainers" in sys.argv: