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

GET /fishaudio/model/{id}

查询音色模型详情

根据创建模型时返回的 _id 查询模型详情。无权访问或模型不存在时分别返回 403 / 404。

Headers

NameTypeRequiredDescription
AuthorizationstringYes请求身份认证。格式:Bearer sk-xxxxxx

Path Parameters

NameTypeRequiredDescription
idstringYes模型 ID

Responses

200: 查询成功

Content-Type: application/json

403: 无权限访问该模型

Content-Type: application/json

404: 模型不存在

Content-Type: application/json

请求示例

curl -X GET "https://api.autorouter.top/fishaudio/model/{id}" \
  -H "Authorization: Bearer sk-xxxxxx"

响应示例

{
  "_id": "7f8a9b0c1d2e3f4a5b6c7d8e",
  "type": "tts",
  "title": "My Voice",
  "description": "Cloned from a studio sample",
  "cover_image": "",
  "train_mode": "fast",
  "state": "trained",
  "tags": ["custom"],
  "samples": [],
  "created_at": "2026-09-20T01:00:00.000Z",
  "updated_at": "2026-09-20T01:00:00.000Z",
  "languages": ["en"],
  "visibility": "private",
  "lock_visibility": false,
  "default_text": "",
  "source": null,
  "licensed": false,
  "like_count": 0,
  "mark_count": 0,
  "shared_count": 0,
  "task_count": 0,
  "liked": false,
  "marked": false,
  "unliked": false,
  "author": {
    "_id": "64a1b2c3d4e5f67890123456",
    "nickname": "creator",
    "avatar": "https://example.com/avatar.png"
  }
}

响应字段说明:

NameTypeDescription
_idstring模型 ID,可用于语音合成的 reference_id
typestring模型类型。tts 为文本转语音,svc 为歌声转换
titlestring模型标题
descriptionstring模型描述,默认为空字符串
cover_imagestring封面图 URL,默认为空
train_modestring训练模式。fast 创建后立即可用;full 为完整训练
statestring状态。枚举值:created、training、trained、failed
tagsstring[]标签列表
samplesobject[]试听样本,默认空数组
created_atstring创建时间,ISO 8601
updated_atstring更新时间,ISO 8601
languagesstring[]语种列表
visibilitystring可见性。枚举值:public、unlist、private
lock_visibilityboolean是否锁定可见性,默认 false
dmca_taken_downboolean | null是否因 DMCA 下架
takedown_categorystring | null下架类别:dmca、policy
default_textstring默认试听文本
sourcestring | null来源。全部 voice 校验通过时可能为 voice_design
licensedboolean是否为 Fish Audio 已授权音色
pvc_release_statestring | nullPVC 发布状态:released、retiring
pvc_notice_period_monthsinteger | nullPVC 通知期(月)
pvc_released_atstring | nullPVC 发布时间
pvc_retire_requested_atstring | nullPVC 退役申请时间
pvc_retire_effective_atstring | nullPVC 退役生效时间
qualityobject | null音频质量评估
like_countinteger点赞数
mark_countinteger收藏数
shared_countinteger分享数
task_countinteger使用次数
likedboolean当前用户是否点赞
markedboolean当前用户是否收藏
unlikedboolean当前用户是否点踩
authorobject作者信息

statestring(必选)

模型状态。

  • created:已创建
  • training:训练中
  • trained:已完成,可用于语音合成
  • failed:训练失败

train_mode=fast 时通常很快变为 trained。

authorobject(必选)

作者信息。

_idstring(必选)

作者用户 ID。

nicknamestring(必选)

作者昵称。

avatarstring(必选)

作者头像 URL。

qualityobject | null(可选)

音频质量评估。未评估时为 null。

audiosobject[](可选)

各参考音频的质量详情。每项包含:

  • filename(string,必选):文件名
  • duration_ms(number,必选):时长(毫秒)
  • language(string,可选):语种,默认 unknown
  • quality(object,可选):质量分数字典
  • quality_passed(boolean,可选):是否通过质量检查,默认 false
  • quality_reason(string,可选):质量说明
created_atstring(必选)

质量评估创建时间,ISO 8601。

updated_atstring(必选)

质量评估更新时间,ISO 8601。

错误处理

HTTP 401 / 403 鉴权错误

  • 401 Unauthorized:API Key 无效或已过期
  • 403 Forbidden:无权访问该模型(私有模型或 token 无权限)

HTTP 404 模型不存在

指定的 id 不存在。请确认模型 ID 是否正确、是否已被删除。

HTTP 402 余额不足

返回 insufficient user quota。请前往 AutoRouter 控制台充值。

HTTP 503 服务过载

服务端负载过高,无法处理请求。请稍后重试。

目录