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

# Set Media Tags

> Replace a stored image's tags with your own list using dreep.setMediaTags().

```ts theme={null}
const tags = await dreep.setMediaTags({
  id: asset.id,
  tags: ["sneaker", "red shoe", "summer sale"],
});
```

The list becomes the image's tags, and anything not in it is removed. Tags the
image already has keep their source and confidence; new ones are saved as
`manual`. Pass an empty list to remove every tag. Free.

## Parameters

| Parameter | Type | Description |
| :- | :- | :- |
| `id` | `string` | **Required.** The image's ID |
| `tags` | `string[]` | **Required.** Up to 50 tags of letters, numbers, spaces and hyphens, at most 64 characters each. Stored lowercase |
| `signal` | `AbortSignal` | Cancels the request |

## Returns

The image's saved tags, as `SavedTag[]`.


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