Skip to main content
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 downloads all output files from a completed screenplay extraction task as a single zip archive. The zip contains storyboard files, transcript JSONs, namelist, and/or merged XLSX based on the configuration used when submitting the task.
Pricing:
  • $0.12/1GB download (based on total original file sizes, not compressed zip size)
Response Behavior:
  • Success: Returns zip file stream (binary data) — browser automatically downloads to local storage
  • Error: Returns JSON error — use json() to parse error message
Key Points:
  • 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 completed status, 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 completed status — 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