-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
35 changed files
with
1,993 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Suno API文档 | ||
|
||
**简介**:Suno API文档 | ||
|
||
## 模型列表 | ||
|
||
### Suno API支持 | ||
|
||
- suno_music (自定义模式、灵感模式、续写) | ||
- suno_lyrics (生成歌词) | ||
|
||
|
||
## 模型价格设置(在设置-运营设置-模型固定价格设置中设置) | ||
```json | ||
{ | ||
"suno_music": 0.3, | ||
"suno_lyrics": 0.01 | ||
} | ||
``` | ||
|
||
## 渠道设置 | ||
|
||
### 对接 Suno API | ||
|
||
1. | ||
部署 Suno API,并配置好suno账号等(强烈建议设置密钥),[项目地址](https://github.com/Suno-API/Suno-API) | ||
|
||
2. 在渠道管理中添加渠道,渠道类型选择**Suno API** | ||
,模型请参考上方模型列表 | ||
3. **代理**填写 Suno API 部署的地址,例如:http://localhost:8080 | ||
4. 密钥填写 Suno API 的密钥,如果没有设置密钥,可以随便填 | ||
|
||
### 对接上游new api | ||
|
||
1. 在渠道管理中添加渠道,渠道类型选择**Suno API**,或任意类型,只需模型包含上方模型列表的模型 | ||
2. **代理**填写上游new api的地址,例如:http://localhost:3000 | ||
3. 密钥填写上游new api的密钥 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package constant | ||
|
||
type TaskPlatform string | ||
|
||
const ( | ||
TaskPlatformSuno TaskPlatform = "suno" | ||
TaskPlatformMidjourney = "mj" | ||
) | ||
|
||
const ( | ||
SunoActionMusic = "MUSIC" | ||
SunoActionLyrics = "LYRICS" | ||
) | ||
|
||
var SunoModel2Action = map[string]string{ | ||
"suno_music": SunoActionMusic, | ||
"suno_lyrics": SunoActionLyrics, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.