POST
javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 const axios = require('axios'); const api_key = "YOUR API-KEY"; const url = "https://api.segmind.com/v1/ltx-retake-video"; const data = { "video_uri": "https://segmind-resources.s3.amazonaws.com/output/ef54dfe1-8e36-48f2-8811-1f31c7f52afe-ltx-2-input.mp4", "start_time": 0, "duration": 4, "prompt": "change the background to beach", "mode": "replace_audio_and_video" }; (async function() { try { const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } }); console.log(response.data); } catch (error) { console.error('Error:', error.response.data); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


video_uristr *

Provide the URL or data URI of your video. Use high-resolution samples for best results.


start_timefloat *

Set the start time for editing in seconds. Ideal range is within 0 to video length.


durationfloat *

Define the section duration in seconds. Recommendations start from 2 up to 20 seconds.


promptstr ( default: 1 )

Describe changes desired in the video scene. Add details like effects or mood changes.


modeenum:str ( default: replace_audio_and_video )

Select what to replace: audio, video, or both. 'Both' is recommended for a complete overhaul.

Allowed values:

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

Retake by LTX Studio: AI Video Editing Model

Edited by Segmind Team on December 24, 2025.


What is Retake?

Retake is a sophisticated AI video editing model designed to fine-tune specific parts of a video without the need to recreate or reshoot the full clip. It is built on the LTX-2 framework and is capable of handling multiple tasks: from reworking lines of dialogue and adjusting emotional tone to subtly shifting a scene’s atmosphere. Retake makes the editing process, which is complex and needs to be precise, feel effortless as it smoothly integrates new AI-generated visuals into existing footage, maintaining a seamless match in lighting, style, and performance. It helps filmmakers and content producers quickly create new visuals and experiment creatively, without the expensive reshoots.

Key Features of Retake

  • Pinpoint Scene Control: The model makes it possible to edit 2 to 20-second segments within longer videos without changing the surrounding content.
  • Seamless Continuity Preservation: It seamlessly maintains lighting, camera angles, character performance, and visual coherence across edits.
  • Multi-Modal Replacement: The model offers complete creative flexibility with audio and video creation; thus, the users don't have to rely on multiple models.
  • Dialogue and Emotion Refinement: It also makes it possible to rephrase spoken lines or adjust actors' performances without full scene reshoots.
  • High-Resolution Support: It works best with high-quality video inputs to generate professional-grade output.

Best Use Cases

Film and Video Post-Production: It can be leveraged to fix dialogue issues, adjust actor performances, or refine emotional beats discovered during editing review.

Marketing and Advertising: It can quickly iterate on messaging, test different voiceovers, or even adjust visual tone to match brand guidelines.

Educational Content: It comes to the rescue when you need to correct mistakes in instructional videos or update outdated information without re-recording entire lessons.

Social Media and Short-Form Content: The model makes it possible to experiment with various cuts, music, and pacing to optimize engagement before publishing.

Prompt Tips and Output Quality

  • Start with the video_uri parameter by pointing it to your source footage: higher resolution inputs yield better results.
  • Use start_time and duration to isolate the exact segment (2-20 seconds recommended).
  • The prompt field is essential to drive the creative direction: describe desired changes with specificity, like "soften the speaker's tone to sound more empathetic" or "add warm sunset lighting to the background."
  • The mode parameter determines scope: replace_audio_and_video gives full creative control, while replace_audio or replace_video lets you preserve one element.
  • For best continuity, ensure your prompt aligns with the existing scene's context: dramatic lighting changes may require longer durations to blend naturally.

FAQs

What video formats does Retake support?
Retake accepts standard video formats via URL or data URI. Using high-resolution MP4 or similar professional formats yields the best results.

Can I edit multiple sections in one video?
Each API call edits one segment. For multiple edits, run separate requests and stitch results using standard video editing tools.

How does Retake maintain continuity?
Retake effectively maintains continuity in the video by analyzing surrounding frames to match lighting, camera motion, and visual style, ensuring edits blend seamlessly with untouched footage.

What's the ideal segment duration?
2-16 seconds works best: shorter durations ensure tighter continuity, longer segments allow more dramatic changes but may show visible transitions.

Can I change dialogue without affecting visuals?
Yes, dialogues can be manipulated without impacting the visuals; set mode to replace_audio to rephrase dialogue or adjust voiceovers while keeping the original video intact.

Does prompt specificity matter?
Yes, prompt specificity is essential; detailed prompts such as "add subtle background music with piano" produce better results than vague requests like "improve audio."