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

# DELETE /api/api-keys/{id} — 吊销 API 密钥

> 按标识吊销 API 密钥。密钥立即停止生效，此后使用该密钥的请求将从网关返回 401。

按标识吊销 API 密钥。密钥立即停止生效：此后使用该密钥的请求将从网关与模型下载接口返回 `401`。此操作不可撤销。

**方法：** `DELETE` **路径：** `/api/api-keys/{id}` **认证：** 会话 Bearer

## 路径参数

<ParamField path="id" type="string" required>
  来自 `POST /api/api-keys` 或 `GET /api/api-keys` 的密钥标识。
</ParamField>

## 响应

`204 No Content`。

## 示例

```bash theme={null}
curl -X DELETE \
  -H "Authorization: Bearer eyJhbGciOi..." \
  https://ariacompute.cn/api/api-keys/key_01H...
```

## 错误

| 状态    | 含义                |
| ----- | ----------------- |
| `401` | 缺失或无效的会话令牌。       |
| `404` | 当前账户中不存在该 ID 的密钥。 |
