Split Video
Video Editing Agent
Split Video
Split a video into multiple segments
POST
Split Video
Product: Visual Agents
Use case: Managed endpoints powering Memories.ai’s open-source video search and editing agents (queries, video clipping/editing, screenplay extraction)
Host:
https://mavi-backend.memories.ai/serve/api/v2
Auth: Authorization: sk-mavi-... (no Bearer prefix)Pricing:
- $0.02/second of video
Code Examples
Request Body
Response
Returns task information for the video split operation.Response Parameters
Callback Response Parameters
When the video splitting is complete, a callback will be sent to your configured webhook URL.Understanding the Callback Response
The callback response contains an array of video segments, each representing a portion of the original video with its own asset ID and metadata. Response Structure:- All video segments:
callback_response.data.splits - Number of segments:
callback_response.data.splits.length - First segment asset ID:
callback_response.data.splits[0].asset_id - First segment file size:
callback_response.data.splits[0].file_size - First segment filename:
callback_response.data.splits[0].original_filename - Task ID:
callback_response.task_id
segment_video_{id}_{index}, where:
segment_video_is the prefix for split video segments{id}is a unique identifier for this split operation{index}is the sequential segment number (0-indexed)
Notes
- Video splitting is processed asynchronously
- Returns a task_id that can be used to track the split progress
- Use the task_id to query the status and results of video splitting
- Original video remains unchanged
- Useful for creating shorter clips from long videos
Authorizations
Body
application/json
The video asset ID to split
Example:
"re_657739295220518912"
Response
200 - application/json
Video split initiated successfully
Response code indicating the result status
Example:
200
Response message describing the operation result
Example:
"success"
Response data object containing task information
Indicates whether the operation was successful
Example:
true
Indicates whether the operation failed
Example:
false
