# Remove an AI provider key

```http
DELETE https://trydimmi.com/api/v1/ai/keys/{key}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `ai:keys`.

## Path parameters

- `key` (string, required): Id of the AI provider key, starting with aik_, such as aik_01jx2m8k4t. Find it with GET /ai/keys.

## Response 204 (No Content)

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request DELETE \
  --url 'https://trydimmi.com/api/v1/ai/keys/{key}' \
  --header 'Authorization: Bearer <token>'
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
