{ "model_id": "lightricks/ltx-2-retake", "name": "LTX-2 Retake", "description": "LTX-2 Retake re-generates a chosen section of an existing video from a text prompt: the picture, the soundtrack, or both, while the rest of the clip stays as it was. Powered by LTX-2.3 Pro, with 1080p landscape or portrait output.", "task": "video-to-video", "author": "lightricks", "modality": "video-to-video", "tags": [ "Video Editing", "Video-to-Video", "Audio Generation" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Default (per second)": 0.1, "@1080p (per second)": 0.1 }, "examples": [ { "name": "Re-shoot a Moment", "description": "Re-shoots seconds 3 to 7 with a new move. The original soundtrack and the shots around it are kept.", "input": { "video_uri": "https://v4-kling.kechuangai.com/kcdn/cdn-kcdn112452/kling-qa-test/dance_10s.mp4", "start_time": 3, "duration": 4, "prompt": "The dancer leaps into a spinning jump and lands in a low, dramatic pose, same outfit, same room, same lighting", "mode": "replace_video" }, "output": { "video": "https://examples.aig.cloudflare.com/lightricks/ltx-2-retake/re-shoot-a-moment.mp4" }, "raw_response": { "state": "Completed", "result": { "video": "https://examples.aig.cloudflare.com/lightricks/ltx-2-retake/re-shoot-a-moment.mp4" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'lightricks/ltx-2-retake',\n {\n video_uri: 'https://v4-kling.kechuangai.com/kcdn/cdn-kcdn112452/kling-qa-test/dance_10s.mp4',\n start_time: 3,\n duration: 4,\n prompt:\n 'The dancer leaps into a spinning jump and lands in a low, dramatic pose, same outfit, same room, same lighting',\n mode: 'replace_video',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"lightricks/ltx-2-retake\",\n \"input\": {\n \"video_uri\": \"https://v4-kling.kechuangai.com/kcdn/cdn-kcdn112452/kling-qa-test/dance_10s.mp4\",\n \"start_time\": 3,\n \"duration\": 4,\n \"prompt\": \"The dancer leaps into a spinning jump and lands in a low, dramatic pose, same outfit, same room, same lighting\",\n \"mode\": \"replace_video\"\n }\n}'" } ] }, { "name": "Re-score a Section", "description": "Keeps the picture and writes a new soundtrack for the first 5 seconds, timed to the dancer's steps.", "input": { "video_uri": "https://v4-kling.kechuangai.com/kcdn/cdn-kcdn112452/kling-qa-test/dance_10s.mp4", "start_time": 0, "duration": 5, "prompt": "A punchy funk groove with slap bass and crisp hand claps, landing on the dancer's steps", "mode": "replace_audio" }, "output": { "video": "https://examples.aig.cloudflare.com/lightricks/ltx-2-retake/re-score-a-section.mp4" }, "raw_response": { "state": "Completed", "result": { "video": "https://examples.aig.cloudflare.com/lightricks/ltx-2-retake/re-score-a-section.mp4" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'lightricks/ltx-2-retake',\n {\n video_uri: 'https://v4-kling.kechuangai.com/kcdn/cdn-kcdn112452/kling-qa-test/dance_10s.mp4',\n start_time: 0,\n duration: 5,\n prompt: \"A punchy funk groove with slap bass and crisp hand claps, landing on the dancer's steps\",\n mode: 'replace_audio',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"lightricks/ltx-2-retake\",\n \"input\": {\n \"video_uri\": \"https://v4-kling.kechuangai.com/kcdn/cdn-kcdn112452/kling-qa-test/dance_10s.mp4\",\n \"start_time\": 0,\n \"duration\": 5,\n \"prompt\": \"A punchy funk groove with slap bass and crisp hand claps, landing on the dancer'\\''s steps\",\n \"mode\": \"replace_audio\"\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": false, "zdr_comment": null, "external_info": "https://docs.ltx.io/models/ltx-2-3", "terms": null, "cover_image_url": null, "metadata": { "Edit Modes": "Video, audio, or both", "Input Video": "MP4, MOV or MKV, up to 4K and 32 MB", "Output Resolutions": "1920x1080, 1080x1920", "Pricing": "$0.10 per second of input video" }, "request_formats": null, "provider_id": "lightricks", "providers": null, "provider_details": [ { "id": "lightricks", "pricing": { "default": 0.1, "1080p": 0.1 } } ], "model_providers": [ { "provider": "lightricks", "pricing": { "default": 0.1, "1080p": 0.1 }, "rates": [ { "key": null, "label": null, "description": null, "rates": [ { "key": "default", "label": "Default (per second)", "unit": null, "value": 0.1 }, { "key": "1080p", "label": "@1080p (per second)", "unit": null, "value": 0.1 } ] } ], "byok_only": false } ], "banner": null, "pinned": false, "created_at": "2026-12-01 22:52:09", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "video_uri": { "type": "string", "format": "uri", "description": "HTTPS URL of the source video: MP4, MOV or MKV (H.264/H.265), up to 4K, at least 73 frames, up to 32 MB" }, "start_time": { "type": "number", "minimum": 0, "description": "Start of the section to re-generate, in seconds. At least 2 seconds must follow it" }, "duration": { "type": "number", "minimum": 2, "description": "Length of the section to re-generate, in seconds (minimum 2)" }, "prompt": { "type": "string", "minLength": 1, "maxLength": 5000, "description": "What should happen in the re-generated section" }, "mode": { "default": "replace_audio_and_video", "description": "Re-generate the audio, the picture, or both", "type": "string", "enum": [ "replace_audio", "replace_video", "replace_audio_and_video" ] }, "resolution": { "description": "Output resolution. The input is center-cropped to fit", "type": "string", "enum": [ "1920x1080", "1080x1920" ] } }, "required": [ "video_uri", "start_time", "duration", "prompt", "mode" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "video": { "type": "string", "format": "uri", "description": "URL to the edited video" } }, "required": [ "video" ], "additionalProperties": false } } }