Skip to main content
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)
This endpoint splits a video asset into multiple smaller video segments. Unlike Scene Detection which only identifies scene boundaries (frame ranges), Video Split actually creates separate downloadable video files for each segment.
This is an async endpoint. You must configure a webhook URL in Webhooks Settings before calling this endpoint, otherwise you will not receive the processing results. See Webhooks Configuration Guide for details.
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:
How to access the data:
  • 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 Filename Format: Each segment filename follows the pattern 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

Authorization
string
header
required

Body

application/json
asset_id
string
required

The video asset ID to split

Example:

"re_657739295220518912"

Response

200 - application/json

Video split initiated successfully

code
string

Response code indicating the result status

Example:

200

msg
string

Response message describing the operation result

Example:

"success"

data
object

Response data object containing task information

success
boolean

Indicates whether the operation was successful

Example:

true

failed
boolean

Indicates whether the operation failed

Example:

false