Documentation Index
Fetch the complete documentation index at: https://api-tools.memories.ai/llms.txt
Use this file to discover all available pages before exploring further.
Product: Visual Intelligence — Human ReID & Caption
Use case: Identity-aware vision analysis — generate captions for videos and images, with optional reference photos to name specific people in the output (Human Re-identification)
Host:
https://security.memories.ai
Auth: Dedicated API key required — contact support@memories.aihttps://security.memories.ai
Access to this API requires a dedicated API key separate from the standard Memories.ai key. Contact support@memories.ai to request access.
Endpoints
| Method | Endpoint | Mode |
|---|---|---|
POST | /v1/understand/upload | Async — by URL |
POST | /v1/understand/uploadFile | Async — by local file |
POST | /v1/understand/uploadSync | Sync — by URL (result returned immediately) |
POST | /v1/understand/uploadFileSync | Sync — by local file (result returned immediately) |
callback URL. Sync endpoints return the result directly in the response — suitable for shorter videos.
Request Examples
Parameters
Publicly accessible video URL. Required for URL-based endpoints (
/upload, /uploadSync). Omit when uploading a local file.Instruction for the analysis — e.g.
"Summarize the video and identify key persons".Role or context for the AI — e.g.
"You are a video understanding system.".Public URL to receive the async result. Required for
/upload and /uploadFile. Not used for sync endpoints.Reference people for Human Re-identification. Up to 5 entries. Each entry:
name(string, required) — identifier for the personurl(string) — publicly accessible reference image URL
Enable reasoning mode for more detailed analysis.
Only applies when
thinking is true. Level 1–10; higher values use more tokens. Default -1 (model decides automatically).true for conversational Q&A style; false for information retrieval / caption style.Video Requirements
- Max file size: 8 GB
- Max duration: 2 hours
- Reference images (ReID): up to 5 per request
Response
Async (/upload, /uploadFile)
callback URL when processing completes:
Sync (/uploadSync, /uploadFileSync)
Response Fields
0 = success, -1 = failure.Async only. Use this to correlate callback notifications.
Sync only. Generated caption, summary, or analysis text.
Sync only. Token usage:
input, output, total.Human Re-identification (ReID)
Pass apersons array to identify specific individuals in the video. The model compares reference images against people detected in the video and names them in the output text.
"Alice enters first, followed by Bob.").
Notes
- Callback delivery is retried up to 5 times until your endpoint returns
2xx. - Sync endpoints are best suited for videos under a few minutes. For long videos, use async endpoints.
