> ## 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.

# Tag Image

> Find out what's in an image with dreep.tagImage(), without storing it.

```ts theme={null}
const { tags, cached } = await dreep.tagImage({ file });

tags.map((tag) => tag.name); // ["sneaker", "shoe", "red"]
```

To keep tags on an image you've uploaded, use [`tagMedia()`](https://docs.dreep.cloud/node-sdk/tags/tag-media).

## Parameters

| Parameter | Type | Description |
| :- | :- | :- |
| `file` | `Buffer \| Readable \| Blob \| File` | **Required.** The image to tag. HEIC and AVIF work too |
| `filename` | `string` | Needed when the source carries no name, such as a `Buffer` |
| `minConfidence` | `number` | Leave out tags Dreep is less sure of than this, from 0 to 100 |
| `signal` | `AbortSignal` | Cancels the request |

## Returns

| Field | Type | Description |
| :- | :- | :- |
| `tags` | `{ name: string; confidence: number }[]` | Lowercase names, confidence from 0 to 100 |
| `cached` | `boolean` | `true` when the same image was tagged before. You weren't charged again |

Charged per image. See [Image Tags and Search](https://docs.dreep.cloud/guides/image-tags.md#billing).


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