> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreep.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Media

> Find images by describing them with dreep.searchMedia().

```ts theme={null}
const results = await dreep.searchMedia({ query: "red sneakers on a white background" });
// [{ id, filename, url, tags, score: 0.31, … }, …]
```

Only [indexed](https://docs.dreep.cloud/node-sdk/search/index-media.md) images can match. No tags needed.

Searching is free. Indexing is charged per image.

## Parameters

| Parameter | Type | Description |
| :- | :- | :- |
| `query` | `string` | **Required.** What to find, in plain words. Up to 300 characters |
| `limit` | `number` | Up to 100. Defaults to 20 |
| `minScore` | `number` | Leave out matches scoring below this, from 0 to 1. Text matches usually score 0.2 to 0.35 |
| `signal` | `AbortSignal` | Cancels the request |

## Returns

`SearchResult[]`, best first. Each is a [media item](https://docs.dreep.cloud/node-sdk/media/list-media.md)
with its `tags` and a `score` up to 1.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.