- 后台接口
- 前台接口
- 【新】后台接口
- AI设置
- AI知识库
- 模型计费(旧)
- 模型管理
- 对话管理
- 创作管理
- 充值套餐
- 注册奖励
- 用户管理
- 用户分组
- 财务中心
- 其它接口
- 系统设置
- AI音乐
- AI搜索
- AIPPT
- 会员套餐
- 思维导图
- AI视频
- 分享设置
- 空间设置
- 任务分享记录
- AI绘画
- 广场分类
- 【新】前台接口
AI配置保存
开发中
POST
/adminapi/music.musicConfig/save
请求参数
Header 参数
token
string
可选
示例值:
{{admin-token}}
Body 参数application/json
music_models
object
必需
go_api
object
必需
music_imagine
object
必需
status
integer
必需
price
integer
必需
model_id
integer
必需
cost_id
integer
必需
music_status
integer
必需
示例
{
"music_status": 0,
"music_models": {
"go_api": {
"channel": "go_api",
"price": "10",
"default": "1",
"name": "GoAPI",
"version": [
"chirp-v3-0"
],
"tips": "开通地址:https://www.goapi.ai/suno-api",
"website": "https://dashboard.goapi.ai/?referrerId=e6d5f588-d5ff-4028-b606-7baf0f7fc915",
"checked": false
},
"openai_hk": {
"channel": "openai_hk",
"price": "10",
"default": "1",
"name": "OpenAi-HK",
"version": [
"chirp-v3-0"
],
"tips": "开通地址:https://www.openai-hk.com",
"website": "https://openai-hk.com/?i=33297",
"checked": true
}
},
"music_imagine": {
"status": 0,
"price": 0,
"model_id": 1,
"cost_id": 4
},
"music_version": {
"chirp-v3-0": "v3.0",
"chirp-v3-5": "v3.5",
"chirp-v4": "v4"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/music.musicConfig/save' \
--header 'token: {{admin-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"music_status": 0,
"music_models": {
"go_api": {
"channel": "go_api",
"price": "10",
"default": "1",
"name": "GoAPI",
"version": [
"chirp-v3-0"
],
"tips": "开通地址:https://www.goapi.ai/suno-api",
"website": "https://dashboard.goapi.ai/?referrerId=e6d5f588-d5ff-4028-b606-7baf0f7fc915",
"checked": false
},
"openai_hk": {
"channel": "openai_hk",
"price": "10",
"default": "1",
"name": "OpenAi-HK",
"version": [
"chirp-v3-0"
],
"tips": "开通地址:https://www.openai-hk.com",
"website": "https://openai-hk.com/?i=33297",
"checked": true
}
},
"music_imagine": {
"status": 0,
"price": 0,
"model_id": 1,
"cost_id": 4
},
"music_version": {
"chirp-v3-0": "v3.0",
"chirp-v3-5": "v3.5",
"chirp-v4": "v4"
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
array[string]
必需
示例
{"code":1,"show":1,"msg":"保存成功","data":[]}