- 产品介绍
- 模型价格
- 快速开始
- Azure语音服务
- Azure翻译服务
- Azure open AI
- 常见问题
- OpenAI API
- Midjourney Open API
- About Midjourney and Prices
- Submit Imagine TaskPOST
- Specify ID Query Task (fetch)GET
- Specify the ID List Query TaskGET
- Obtain the seed of the Task ImageGET
- Specify ID Query TaskGET
- Submit Blend TaskPOST
- Submit Modal TaskPOST
- Submit Describe TaskPOST
- Submit Shorten TaskPOST
- Submit FaceSwap TaskPOST
- Upload Files to DiscordPOST
- Submit Action Task(All associated button actions UPSCALE; VARIATION; REROLL; ZOOM, etc.)POST
- Luma video
- Suno Music
- Anthropic Claude
- Flux API
Generate music
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v1/chat/completions
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
model
boolean
必需
messages
object
必需
title
string
必需
tags
string
必需
prompt
string
必需
continue_at
integer
可选
continue_clip_id
string
可选
示例
{
"model": "suno-v3.5",
"messages": [
{
"title": "The Unyielding Song of the Soul",
"tags": ["Heartwarming", "Soulful", "Inspirational", "Indomitable"],
"prompt": "This is a heartwarming and soul-stirring song that tells the story of a person who maintains a positive and optimistic attitude in the face of life's challenges and never gives up. The lyrics should reflect hope for the future and a love for life, with a melody that warms the heart and inspires listeners."
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "suno-v3.5",
"messages": [
{
"title": "The Unyielding Song of the Soul",
"tags": ["Heartwarming", "Soulful", "Inspirational", "Indomitable"],
"prompt": "This is a heartwarming and soul-stirring song that tells the story of a person who maintains a positive and optimistic attitude in the face of life'\''s challenges and never gives up. The lyrics should reflect hope for the future and a love for life, with a melody that warms the heart and inspires listeners."
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 0,
"msg": "success",
"data": [
{
"user_id": "sr4UcYbwlfOmIeYprAqd6L6LJCy2",
"song_id": "1322a5ad-c23e-47fc-9550-fb540a43c3a3",
"status": "submitted",
"title": "The Unyielding Song of the Soul",
"image_large_url": null,
"image_url": null,
"model_name": "chirp-v3",
"video_url": "",
"audio_url": "",
"meta_tags": "Heartwarming, Soulful, Inspirational, Indomitable",
"meta_prompt": "This is a heartwarming and soul-stirring song that tells the story of a person who maintains a positive and optimistic attitude in the face of life's challenges and never gives up. The lyrics should reflect hope for the future and a love for life, with a melody that warms the heart and inspires listeners.",
"meta_duration": null,
"meta_error_msg": null,
"meta_error_type": null
},
{
"user_id": "sr4UcYbwlfOmIeYprAqd6L6LJCy2",
"song_id": "e9658339-c18b-41c9-a80a-491915f7ad9f",
"status": "submitted",
"title": "The Unyielding Song of the Soul",
"image_large_url": null,
"image_url": null,
"model_name": "chirp-v3",
"video_url": "",
"audio_url": "",
"meta_tags": "Heartwarming, Soulful, Inspirational, Indomitable",
"meta_prompt": "This is a heartwarming and soul-stirring song that tells the story of a person who maintains a positive and optimistic attitude in the face of life's challenges and never gives up. The lyrics should reflect hope for the future and a love for life, with a melody that warms the heart and inspires listeners.",
"meta_duration": null,
"meta_error_msg": null,
"meta_error_type": null
}
]
}
修改于 2024-11-09 17:14:40