Search the image library
searchDetection-aware search across the user's assets and generations — matches what the scanner SAW inside each image (item names, colors, textures, scene), not just titles or prompts. Modes: text (default; requires query), color (ranks by closeness to a hex color), similar (ranks by likeness to an anchor image), browse (no query; newest first — use it to explore the library). Scope with project_id; set include_regions to get each hit's detected items with bounding boxes. Text results can include the matched instant INSIDE an indexed video: such hits carry is_video plus a video_moment object (time_ms = the exact millisecond). Filter to one category with gen_type (e.g. gen_type:"video" for clips only). Each hit's image_url is a 600px preview: re-read the original from list_generations before placing a hit in a document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default text. | |
| type | No | Limit to generated images or uploads. | |
| color | No | mode=color: 6-digit hex like #7a1f2b. | |
| limit | No | 1-100, default 40. | |
| query | No | Plain-language search terms. Required for mode text; optional re-ranker input for mode color. | |
| style | No | ||
| aspect | No | Comma list: portrait, landscape, square, or exact ratios like 16:9. | |
| colors | No | Only images containing these colors (comma list of names or hex values). | |
| offset | No | ||
| gen_type | No | Limit to one kind of generation. | |
| project_id | No | Limit to one or more projects (comma-separated ids). | |
| similar_to | No | mode=similar: the anchor generation or asset id. | |
| similar_mode | No | mode=similar: likeness lens. Default all. | |
| similar_type | No | mode=similar: what similar_to refers to. | |
| include_regions | No | Add each hit's detected items with bounding boxes (0-1000 normalized). |