Search images
search_imagesSearch the Voyage index of 1,852,370 captioned images using joint image-and-caption embeddings, hybrid retrieval and caption text reranking. Supports text, uploaded images via image_base64, public image_url, or image plus text. Supply query text or one image; icon-pack search is not supported. Describe subjects, recognizable names, visible text, mood, style or composition in natural language, such as 'misty mountains at sunrise'. Use find_similar_images when you already have a Lightdrift asset_id, or get_image to retrieve one known image without a search. Returns query_id and a ranked results array with asset_id, file and thumbnail URLs, source, dimensions, and rights including attribution. Set k for result count; optional candidate and ranking controls normally need no changes. Defaults exclude AI-generated images, require commercial-use licenses, and require width >= 1000 pixels; nsfw_max defaults to 0.2. These four defaulted filters accept null to opt out; unknown NSFW scores pass. Requires OAuth or an API key and is subject to account rate limits and available credits. Each successful call charges $0.02 and records usage; repeated calls can charge again. Does not modify images or publish anything. Inspect each result's rights before use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Maximum number of final results (1–100, default 10). Fewer results may match the filters; this is separate from candidate-pool sizes. | |
| mode | No | Ranking mode: auto uses caption text reranking for text queries and blends image similarity with text reranking for image-plus-text. Image-only uses image similarity. text forces text reranking and requires text. none skips reranking. All modes use the Voyage index. | auto |
| ann_k | No | Maximum semantic-search candidates (1–1000, default 100). Increase for a wider pool; this does not set the final result count. | |
| query | No | Optional natural-language query. Combine with an image to describe desired changes, or omit for image-only search. | |
| ann_ef | No | Legacy retrieval tuning parameter (64–4096, default 2048). Accepted for compatibility; leave at the default for the current retrieval service. | |
| bm25_k | No | Maximum keyword-search candidates (0–1000, default 50), combined with ann_k semantic candidates. Set 0 for semantic-only retrieval. | |
| explain | No | Include retrieval and ranking diagnostics with each result (default false). Use for debugging search quality. | |
| filters | No | Combine license, source, size, and visual filters. Omitted commercial, ai_generated, min_width and nsfw_max default to true, false, 1000 and 0.2. Set any of these four to null to remove its default. | |
| rerank_k | No | Maximum candidates to rerank (1–500, default 60); null reranks the whole candidate pool and can exceed provider limits; prefer a bounded value. Ignored when mode is none. Independent of final result count k. | |
| image_url | No | Public HTTPS URL of a JPEG, PNG or WebP image, maximum 5 MiB and 20 megapixels. Private addresses and authenticated URLs are unsupported. Optional query text refines the image search. | |
| rerank_text | No | Legacy reranker text toggle (default true). The current service always uses text; leave true. | |
| image_base64 | No | JPEG, PNG or WebP upload: base64 data URL or raw base64, maximum 5 MiB decoded and 20 megapixels. Use this or image_url, not both. |