语音合成
声音克隆
对口型视频
其他
语音合成
声音克隆
对口型视频
其他
查询用户信息
查询用户的 API 积分剩余情况和基本信息
查询用户信息接口
接口地址
GET /api/open/profile
也支持 POST 请求,参数可通过 request body 或 Authorization header 传递
请求头
Authorization: Bearer YOUR_API_TOKEN // API 密钥
请求参数 (POST 方式)
{
"token": "YOUR_API_TOKEN" // 可选,如果未在 header 中提供
}返回数据
// 成功响应 - 200
{
"user_id": "user_123",
"api_quota_remaining": 1500,
"tier": "free",
"credits": 1000
}
// 错误响应
{
"error": string // 错误提示信息
}响应字段说明
user_id: 用户ID
api_quota_remaining: 剩余 API 积分
tier: 用户等级(free/pro/enterprise)
credits: 普通积分余额
CURL 示例
# GET 请求
curl -X GET https://fishaudio.net/api/open/profile \
-H "Authorization: Bearer YOUR_API_TOKEN"
# POST 请求(通过 header)
curl -X POST https://fishaudio.net/api/open/profile \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{}'
# POST 请求(通过 body)
curl -X POST https://fishaudio.net/api/open/profile \
-H "Content-Type: application/json" \
-d '{
"token": "YOUR_API_TOKEN"
}'在线调试
状态码说明
状态码说明:
200 OK - 请求成功
400 Bad Request - 请求参数错误
401 Unauthorized - API Token 无效
403 Forbidden - 禁止访问
404 Not Found - 资源不存在
413 Payload Too Large - 上传文件过大
429 Too Many Requests - 请求频率超限/积分不足
500 Server Error - 服务器内部错误
错误响应格式:
{
"error": string, // 错误信息
"details": string, // 详细错误信息(可选)
"code": string // 错误代码(可选)
}