docs.sunoapi.org
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
Suno API
Common APIFile Upload API
Suno API
Common APIFile Upload API
  1. Generate Speech
  • Suno API Documentation
  • Suno API Quick Start
  • Generate Music
    • Music Generation Callbacks
    • Music Extension Callbacks
    • Upload and Cover Audio Callbacks
    • Upload and Extend Audio Callbacks
    • Add Instrumental Callbacks
    • Add Vocals Callbacks
    • Music Cover Generation Callbacks
    • Replace Music Section Callbacks
    • Generate Music
      POST
    • Extend Music
      POST
    • Upload And Cover Audio
      POST
    • Upload And Extend Audio
      POST
    • Add Instrumental
      POST
    • Add Vocals
      POST
    • Get Music Generation Details
      GET
    • Recovery Audio
      POST
    • Get Recovery Audio Details
      GET
    • Get Timestamped Lyrics
      POST
    • Boost Music Style
      POST
    • Generate Music Cover
      POST
    • Replace Music Section
      POST
    • Get Music Cover Details
      GET
    • Generate Persona
      POST
    • Generate Mashup
      POST
  • Suno Voice
    • Suno Voice Validation Phrase Callbacks
    • Suno Voice Generation Callbacks
    • Suno Voice Regenerate Phrase Callbacks
    • Suno Voice Generate Verification Phrase
      POST
    • Suno Voice Get Verification Phrase
      GET
    • Suno Voice Create Custom Voice
      POST
    • Suno Voice Get Custom Voice Record
      GET
    • Suno Voice Regenerate Verification Phrase
      POST
    • Suno Voice Check Availability
      POST
  • Generate Lyrics
    • Lyrics Generation Callbacks
    • Generate Lyrics
    • Get Lyrics Generation Details
  • Generate Sounds
    • Generate Sounds
  • WAV Conversion
    • WAV Format Conversion Callbacks
    • Convert to WAV Format
    • Get WAV Conversion Details
  • Vocal Removal
    • Audio Separation Callbacks
    • MIDI Generation Callbacks
    • Vocal & Instrument Stem Separation
    • Get Audio Separation Details
    • Generate MIDI from Audio
    • Get MIDI Generation Details
  • Music Video Generation
    • Music Video Generation Callbacks
    • Create Music Video
    • Get Music Video Details
  • Generate Speech
    • Generate Speech
      POST
  1. Generate Speech

Generate Speech

POST
/api/v1/generate/speech
Create a Suno Speech generation task. Supports Simple and Advanced modes, switched by customMode. The two modes have mutually exclusive fields — do not mix them.
Speech generates spoken audio with tone, rhythm, emotion, and optional background music. It is not fixed-voice TTS. Speech always uses V6 Mini.

Usage#

Simple (customMode: false)#

Required: customMode, prompt (1–3000 characters)
prompt is a scene description (Idea prompt); the model writes the script
Submit only customMode=false + prompt. Do not send script / tone / variety / vocalGender / backgroundMusic

Advanced (customMode: true)#

Required: customMode, script (1–5000 characters, the text to be spoken)
Optional: tone (0–1000), variety (integer 0–4), vocalGender, backgroundMusic
Drop prompt. Do not send prompt in Advanced

Switching modes#

Switch to Simple: drop Advanced fields and submit only customMode=false + prompt
Switch to Advanced: drop prompt and submit customMode=true + script, plus any optional fields

Common 422#

CaseMessage
variety outside 0–4variety must be between 0 and 4
variety sent in Simplevariety is only supported when customMode is true

Callbacks

audioGenerated

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Request succeeded. The task has been created; this does not mean the audio is ready.
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://apibox.erweima.ai/api/v1/generate/speech' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "customMode": false,
  "prompt": "A short morning news intro about sunny weather",
  "callBackUrl": "https://api.example.com/callback"
}'
Response Response Example
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "xxxxxxxx",
    "recordId": "123456"
  }
}
Previous
Get Music Video Details
Built with