Skip to main content
POST
Search collection content (semantic / keyword / image)
Product: Video Datalake Host: https://api.memories.ai/datalake/v1 Auth: Authorization: sk-mai-...
Search indexed content in a collection and get back a list of moments (video slices). Supports semantic (vector), keyword (BM25), and hybrid (RRF) modes, plus text-to-frame and image-to-frame. Each result’s ref can be fed straight into Get Moment.
Pricing: $0.008 / call · See Pricing for the full model.

Response Fields

array
Moment hits with ref, score, snippet, thumbnail_url.
string
Feed into Get Moment to expand.
number
Scale differs by path (cosine / ts_rank / RRF / sigmoid). Do not compare across requests.
string
Next page (hybrid mode does not paginate — raise top_k).
string
Human-readable suggestion when results are empty. Pass it back to the model.

Notes

Rate limit: 5 QPS/user.

Authorizations

Authorization
string
header
required

Send Authorization: sk-mai-...

Body

application/json
collection_id
string
required

Target collection (fixes vector model + data scope).

targets
enum<string>[]
required

Non-empty search targets.

Available options:
caption,
transcription,
summary,
title,
frame_embedding,
event
query
string

Natural-language query (non-English is auto-translated). One of query / query_images required.

query_images
string[]

1–10 http(s) image URLs; averaged with query when both given.

query_embedding
number[]

Advanced: bring-your-own vector; must be 3072-dim (OmniRetriever).

mode
enum<string>

semantic (default) | keyword | hybrid.

Available options:
semantic,
keyword,
hybrid
top_k
integer

Page size, default 20, max 200.

cursor
string

Next-page cursor; all other fields must match the first page exactly.

filter
object

Filter DSL (and/or/not + leaves: video_ids, tags, time, captured_at, location, speaker_id, event_type).

rerank
boolean

Cross-encoder rerank of the current page (text query only). Billed ×3 when actually run.

group_by
enum<string>

moment (default) | video.

Available options:
moment,
video

Response

200 - application/json

Success