Search Clips by Image
Private Video Library
Search by Image — Within a Video
Find matching time ranges inside one specific video using a query image and a natural-language prompt.
POST
Search Clips by Image
Product: Visual Search
Use case: Upload videos and images, auto-index them, then search by natural language, image, or transcript phrase
Host:
https://api.memories.ai/serve/api/v1
Auth: Authorization: sk-mavi-... (no Bearer prefix)Prerequisites
- You have created a memories.ai API key.
- The target video has been uploaded and is in
PARSEstatus.
Request Example
Uses
multipart/form-data. The file part carries the query image; other parameters are sent as form fields.Parameters
file
required
Query image. Allowed:
.jpg, .jpeg, .png, .gif, .bmp, .webp. Maximum 20 MB.string
required
Identifier of the video to search within (e.g.
VI625239098370850816).string
required
Natural-language prompt that refines the match (e.g.
"focus on the red shirt"). Use English for best results.Response
number
Clip start time, in seconds.
number
Clip end time, in seconds.
number
Similarity score (0 – 1).
string
GCS bucket of the target video file. Omitted when the storage location cannot be resolved.
string
GCS blob (object) path of the target video. Use it with
video_bucket at GET /serve/api/v2/download?bucket=&blob= to fetch the file directly.Notes & Limits
- Rate limiting: Exceeding the per-account rate limit returns an error. See Rate limits.
- Billing: Each successful call deducts credits from your account balance.
Authorizations
Body
multipart/form-data
Query image. Allowed extensions: .jpg/.jpeg/.png/.gif/.bmp/.webp. Content-Type must start with image/. Max 20 MB.
Unique identifier of the video to search within. Must be non-empty.
Example:
"VI625239098370850816"
Natural-language prompt that refines the visual match. Must be non-empty. English recommended.
Example:
"focus on the red shirt, ignore background color"
