codeCustom Audio Generation

在 Suno AI 中使用自定义模式生成音频。

post

使用 Suno AI 中具有自定义设置的提示生成音频,从而实现定制的音频输出。

请求体object[]
promptstring必填
tagsstring必填
titlestring必填
make_instrumentalboolean必填
wait_audioboolean必填
响应
chevron-right
201成功
application/json
post
/generate/custom-mode
201成功

Our API allows you to generate music with custom settings using the Suno v3.5 model. Available models include chirp-v3-5 and chirp-v3-0.

Parameters

  • Audio Files: 2 audio files will be generated for each request, consuming a total of 200 000 AI/ML Tokens.

  • wait_audio:

    • By default (false), the request operates in background mode, returning only audio task information. You must call the get API to retrieve detailed audio information.

    • If set to true, it simulates synchronous mode, waiting up to 100 seconds for audio generation, and directly returns the audio link and other information. Recommended for use in GPTs and other agents.

Examples

Your own lyrics

In order to generate music with your own lyrics use [Verse], [Chorus], [Bridge] indicators in the prompt as shown in the example below.

最后更新于