Text to Image by Person Search

Search for video keyframes that match a text query and contain a specific enrolled person — for example, Jane Doe at a press conference. Specify the person via either person_ids or person_names_or_aliases.The person must already be enrolled in your organization. Returns matching assets plus a video-level list aggregated by best matching keyframe score.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
dataset_idstringRequiredformat: "uuid"
The unique identifier for the dataset
text_querystringRequired
The text query to search for
asset_typeenumRequired
Visual asset type to search over. For datasets using the native video data model, only 'keyframe' is supported.
offsetintegerOptional0-9223372036854776000Defaults to 0
Starting index to return
limitintegerOptional1-1000Defaults to 100
Max number of items to return
metadata_filtersobject or nullOptional
List of metadata filters to apply to the search
moderation_score_typeenumOptional

Type of moderation scores to return when moderation is enabled.probability returns scores 0-1 using BGE Reranker model.level returns scores 0-5 using OpenAI model.This does not enable/disable moderation - use skip_moderation for that.

negative_textstring or nullOptional
Optional text describing what to exclude from search results. Steers the query embedding away from this direction.
person_idslist of strings or nullOptional

List of person IDs to filter results by. Currently only a single person_id is supported.

person_names_or_aliaseslist of strings or nullOptional

List of person names/aliases to filter results by. Currently only a single person name is supported.

skip_moderationbooleanOptionalDefaults to false
Skip content moderation if enabled

Response

Successful Response
datalist of objects
The search results matching the person filter
videoslist of objects
Search results aggregated by video, ordered by best matching keyframe score

Errors

422
Unprocessable Entity Error