API 文档AI 模型接口语音Fish Audio模型管理
删除模型
根据模型 ID 删除已有音色模型。
根据模型 ID 删除已有音色模型。删除后不可恢复,对应 _id 将无法再作为语音合成接口的 reference_id 使用。
同步接口:提交后立即删除。仅模型所有者可删除。
Base URL
https://api.autorouter.top— Production
Authentication
BearerAuth: http (bearer)
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
Endpoints
DELETE /fishaudio/model/{id}
删除音色模型
根据创建模型时返回的 _id 删除模型。
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | 请求身份认证。格式:Bearer sk-xxxxxx |
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | 模型 ID |
Responses
200: 删除成功
Content-Type: application/json
401: 无权限
Content-Type: application/json
503: 服务过载
Content-Type: application/json
请求示例
curl -X DELETE "https://api.autorouter.top/fishaudio/model/{id}" \
-H "Authorization: Bearer sk-xxxxxx"响应示例
{}响应字段说明:
成功时响应体可为空。失败时返回错误对象:
| Name | Type | Description |
|---|---|---|
status | integer | 错误状态码(失败时) |
message | string | 错误说明(失败时) |
reason | string | null | 补充原因,可为 null |
错误处理
HTTP 401 / 403 鉴权错误
401 Unauthorized:API Key 无效或已过期403 Forbidden:API Key 无权访问此模型(检查 token 的模型白名单)
HTTP 402 余额不足
返回 insufficient user quota。请前往 AutoRouter 控制台充值。
HTTP 503 服务过载
服务端负载过高,无法处理请求。请稍后重试。