- 发出请求
- OpenAI接口
- Realtime文档
- 聊天接口(Chat)
- 自动补全接口(Completions)
- 图像接口(Images)
- 向量生成接口(Embeddings)
- 音频接口(Audio)
- 图片接口
- Midjourney
- Stable Diffusion(官方格式)
- Flux
- Ideogram(官方格式)
- 其他图像API1(开发中)
- 其他图像API2(开发中)
- 开放API接口
- 示例
- 生成图片融合示例
- 1.自定义调用- 普通示例(艺术二维码调用示例)
- 2.自定义调用 - 不同版本(艺术二维码调用示例)
- 3.自定义调用 -二维码强度(艺术二维码调用示例)
- 4.模版调用 - 普通示例(艺术二维码调用示例)
- 5.模版调用 - 二维码强度(艺术二维码调用示例)
- 6.自定义调用 - 上传图片(艺术二维码调用示例)
- 7.不同码眼调用(艺术二维码调用示例)
- 8.不同版本(艺术二维码调用示例)
- 1.光影文字 - 使用模版(AI艺术字调用示例)
- 2.光影文字 - 自定义prompt调用(AI艺术字调用示例)
- 3.艺术字调用 - 使用模版(AI艺术字调用示例)
- 基础调用(MX绘画-生成类接口-Cute-生成示例(必看))
- 基础调用 - 自定义尺寸(MX绘画-生成类接口-Cute-生成示例(必看))
- 基础调用-开启审核(MX绘画-生成类接口-Cute-生成示例(必看))
- 融合模型调用(MX绘画-生成类接口-Cute-生成示例(必看))
- 反词 - 替换默认反词(MX绘画-生成类接口-Cute-生成示例(必看))
- 反词 - 追加反词(MX绘画-生成类接口-Cute-生成示例(必看))
- 音乐接口
- Suno
- 官方格式(v2)
- 所有接口
- 场景1 生成自定义音乐(带歌词)
- 场景 2 通过提示词直接生成音乐(带歌词)
- 场景 4 通过提示词直接生成音乐(纯音乐)
- 场景 3 生成自定义音乐(纯音乐)
- 场景 5 上传自定义音频并续写
- 场景 6 续写音乐并获取完整音乐
- 场景 7 Cover音乐(音乐翻版,修改风格)
- 场景 8 Replace Section (替换片段)
- Udio
- 视频接口
- PPT接口
- 文多多(官方格式)
- 韦尼克(官方格式)
- 申请PPT生成任务(PPT描述/主题一键生成)
- 获取PPT生成状态和预览页(PPT描述/主题一键生成)
- 通过描述生 成PPT标题大纲(逐步生成PPT)
- 申请PPT生成任务(逐步生成PPT)
- 获取PPT生成状态和预览页(逐步生成PPT)
- 根据标题生成封面预览图(模版封面图预览)
- 根据标题以及封面预览信息生成不同主题色的预览(设置主题色)
- 通过task_id增加PPT单页(PPT中插入单页)
- 基于当前模板生成(基于当前模版生成)
- 短文本文件生成PPT(文件内容解析)
- 获取PPT生成状态和预览页(文件内容解析)
- 获取PPT生成状态和预览页(文件内容解析)
- 通过文件生成PPT(文件内容解析)
- 更换模版(更换模版)
- 生成PPT备注(演讲稿备注)
- 获取PPT下载链接(获取下载链接)
- 帮助中心
- OpenAI官方文档
步骤 1 音乐生成
开发中
POST
/suno/v2/generate
-upload
如 chirp-v3-5-upload
请求参数
Query 参数
string
可选
Header 参数
string
可选
Body 参数application/json
mv
string
必需
prompt
string
必需
tags
string
可选
title
string
可选
continue_clip_id
string
可选
continue_at
number
可选
infill_start_s
null
可选
infill_end_s
null
可选
示例
{
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"tags": "heavy metal",
"mv": "chirp-v3-5",
"title": "Starry ",
// "continue_clip_id": "2e584f32-7ae3-4b2d-93f6-391f65a01f15",
// "continue_at": 48.762,
"infill_start_s": null,
"infill_end_s": null
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gptnb.ai/suno/v2/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"tags": "heavy metal",
"mv": "chirp-v3-5",
"title": "Starry ",
// "continue_clip_id": "2e584f32-7ae3-4b2d-93f6-391f65a01f15",
// "continue_at": 48.762,
"infill_start_s": null,
"infill_end_s": null
}'
返回响应
🟢200成功
application/json
Body
id
string
必需
clips
array [object {23}]
必需
id
string
必需
video_url
string
必需
audio_url
string
必需
image_url
null
必需
image_large_url
null
必需
is_video_pending
boolean
必需
major_model_version
string
必需
model_name
string
必需
metadata
object
必需
is_liked
boolean
必需
user_id
string
必需
display_name
string
必需
handle
string
必需
is_handle_updated
boolean
必需
avatar_image_url
string
必需
is_trashed
boolean
必需
reaction
null
必需
created_at
string
必需
status
string
必需
title
string
必需
play_count
integer
必需
upvote_count
integer
必需
is_public
boolean
必需
metadata
object
必需
tags
string
必需
prompt
string
必需
gpt_description_prompt
null
必需
audio_prompt_id
string
必需
history
array [object {5}]
必 需
concat_history
null
必需
type
string
必需
duration
null
必需
refund_credits
null
必需
stream
boolean
必需
infill
boolean
必需
has_vocal
boolean
必需
is_audio_upload_tos_accepted
boolean
必需
error_type
null
必需
error_message
null
必需
major_model_version
string
必需
status
string
必需
created_at
string
必需
batch_size
integer
必需
示例
{
"id": "3d5f0ee4-1d7b-410a-bafd-60a3978284d1",
"clips": [
{
"id": "7070ec00-462e-42ac-9b9f-1074977f473f",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "heavy metal",
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"gpt_description_prompt": null,
"audio_prompt_id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"history": [
{
"id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"continue_at": 48.762,
"type": "upload",
"source": "web",
"infill": false
}
],
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": false,
"has_vocal": true,
"is_audio_upload_tos_accepted": true,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "4ed4f182-0b5a-4cde-bffe-44fb5237a3aa",
"display_name": "AmbientLens971",
"handle": "ambientlens971",
"is_handle_updated": false,
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.jpg",
"is_trashed": false,
"reaction": null,
"created_at": "2024-07-22T07:56:36.710Z",
"status": "submitted",
"title": "Starry ",
"play_count": 0,
"upvote_count": 0,
"is_public": false
},
{
"id": "00e6b9e4-c29c-4cfe-8d7a-5b3f06ff5b90",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "heavy metal",
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"gpt_description_prompt": null,
"audio_prompt_id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"history": [
{
"id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"continue_at": 48.762,
"type": "upload",
"source": "web",
"infill": false
}
],
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": false,
"has_vocal": true,
"is_audio_upload_tos_accepted": true,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "4ed4f182-0b5a-4cde-bffe-44fb5237a3aa",
"display_name": "AmbientLens971",
"handle": "ambientlens971",
"is_handle_updated": false,
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.jpg",
"is_trashed": false,
"reaction": null,
"created_at": "2024-07-22T07:56:36.711Z",
"status": "submitted",
"title": "Starry ",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
],
"metadata": {
"tags": "heavy metal",
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"gpt_description_prompt": null,
"audio_prompt_id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"history": [
{
"id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"continue_at": 48.762,
"type": "upload",
"source": "web",
"infill": false
}
],
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": false,
"has_vocal": true,
"is_audio_upload_tos_accepted": true,
"error_type": null,
"error_message": null
},
"major_model_version": "v3",
"status": "complete",
"created_at": "2024-07-22T07:56:36.699Z",
"batch_size": 1
}
修改于 2024-10-15 10:08:16