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.12/1GB download (based on total original file sizes, not compressed zip size)
- ✅ Success: Returns zip file stream (binary data) — browser automatically downloads to local storage
- ❌ Error: Returns JSON error — use
json()to parse error message
- Success response is a file (binary data), NOT JSON
- The zip filename is
{task_id}.zip - Error response is JSON with error details
- Task must be in
completedstatus, otherwise an error is returned - Check response status before deciding how to handle the response
Code Examples
Path Parameters
Response
On success, returns a binary zip file stream with the following headers:Zip File Contents
The zip archive contains the following files based on your task configuration:Error Responses
Notes
- The task must be in
completedstatus — check with Get Task Status first - Download cost is calculated based on the sum of all individual file sizes (original sizes, not compressed)
- Files with duplicate names are automatically renamed with a numeric suffix (e.g.,
file.json,file_1.json) - The zip is streamed directly — no intermediate storage is used
