Fish Model Get API
GEThttps://api.01ai.cloud/fish/model/{id}
Fish Audio 模型詳情 API,根據模型 ID 獲取單個語音模型的詳細資訊。
路径參數
idstring
要获取的聲音模型的唯一標識符。
請求頭
acceptstring
指定伺服器返回的回應格式。
請選擇
authorizationstring
Bearer token
響應
成功200
請求成功,返回聲音模型詳情。
響應體
_idstring
声音模型的唯一識別符。
tagsarray
附加在模型上的自由格式標籤列表。
數組
string
typestring
聲音模型的類型(如 `tts`、`svc`)。
statestring
模型的当前狀態(如 `trained`、`training`)。
titlestring
声音模型的显示名稱。
authorobject
模型作者的公開資料資訊。
object <string, unknown>
samplesarray
该声音模型的预览音频样本列表。
數組
object <string, unknown>
languagesarray
該聲音模型支持的語言列表。
數組
string
created_atstring
模型的創建時間。
train_modestring
構建該模型所使用的訓練模式。
updated_atstring
模型的最後更新時間。
visibilitystring
模型的可見範圍:`public`(公開)或 `private`(私有)。
cover_imagestring
模型封面圖片的 URL 地址。
descriptionstring
声音模型的详细描述信息。
示例
{
"_id": "d7900c21663f485ab63ebdb7e5905036",
"tags": [
"historical"
],
"type": "tts",
"liked": false,
"state": "trained",
"title": "Marcus Aurelius",
"author": {
"_id": "8e0b7add9a474db4b46abe51ef64b3c0",
"nickname": "AceDataCloud"
},
"marked": false,
"samples": [
{
"text": "Hello, this is a sample.",
"audio": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"title": "sample 1",
"task_id": "ad1c50e6f1a4474d96a17a91da93dac2"
}
],
"unliked": false,
"languages": [
"en"
],
"created_at": "2024-09-01T07:53:39.476000Z",
"like_count": 12,
"mark_count": 3,
"task_count": 5,
"train_mode": "fast",
"updated_at": "2024-09-01T07:53:39.476000Z",
"visibility": "public",
"cover_image": "https://cdn.acedata.cloud/4hfydw.jpg",
"description": "一個基於古典錄音訓練的歷史聲音模型。",
"shared_count": 0,
"lock_visibility": false
}失敗400token_mismatched
請求錯誤,可能是參數缺失或無效。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
示例
{
"error": {
"code": "token_mismatched",
"message": "The specified token is not matched with API."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗400api_not_implemented
請求錯誤,可能是參數缺失或無效。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
示例
{
"error": {
"code": "api_not_implemented",
"message": "The API is not implemented."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗400disabled
請求錯誤,可能是參數缺失或無效。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
示例
{
"error": {
"code": "disabled",
"message": "Your application has been disabled by Ace Data Cloud due to abnormal usage behavior, please contact our support to get more information."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗400bad_request
請求錯誤,可能是參數缺失或無效。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
示例
{
"error": {
"code": "bad_request",
"message": "model is invalid."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗400no_token
請求錯誤,可能是參數缺失或無效。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
示例
{
"error": {
"code": "no_token",
"message": "No token specified for the request."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗401invalid_token
未授權,授權令牌無效或缺失。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
示例
{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗401token_expired
未授權,授權令牌無效或缺失。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
示例
{
"error": {
"code": "token_expired",
"message": "token expired."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗401token_mismatched
未授權,授權令牌無效或缺失。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
示例
{
"error": {
"code": "token_mismatched",
"message": "token and api does not match."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗403used_up
未授權,授權令牌無效或缺失。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
失敗404no_api
未授權,授權令牌無效或缺失。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
失敗429too_many_requests
請求過多,已超出速率限制。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。
失敗500api_error
伺服器內部錯誤,伺服器端發生異常。
響應體
errorobject
codestring
響應的錯誤碼。
messagestring
響應的錯誤信息。
trace_idstring
本次請求的追蹤 ID。

Integration workbench
Shell
Python
JavaScript
Java
Go
PHP
溫馨提示:對於流式請求,上面的代碼可能不完全適用。請參閱對接文檔以進行更改。
Fish 語音生成
允许用通用余额
啟用「允許通用餘額」後,專屬餘額不足將自動使用通用餘額。

