Get started with Suno API to generate AI music, lyrics, and audio content in minutes
Welcome to Suno API#
Suno API enables you to create high-quality AI-generated music, lyrics, and audio content using state-of-the-art AI models. Whether you're building music applications, automating creative workflows, or developing audio content, our API provides comprehensive tools for music generation and audio processing.
Generate Music
Create original music tracks with or without lyrics
Extend Music
Seamlessly extend existing music tracks
Generate Lyrics
Create creative lyrics from text prompts
Music Video
Convert audio tracks to visualized music videos
Upload & Cover
Transform uploaded audio into new styles
Upload & Extend
Upload audio files and seamlessly extend them
Vocal Separation
Separate vocals and instrumentals from music
WAV Conversion
Convert audio to high-quality WAV format
Get Lyrics
Retrieve timestamped synchronized lyrics
Add Instrumental
Add instrumental elements to existing audio tracks
Add Vocals
Generate vocal tracks for instrumental music
Boost Music Style
Enhance style descriptions with V4_5 conversational promptsAuthentication#
All API requests require authentication using Bearer tokens. Please obtain your API key from the API Key Management Page.Keep your API key secure and never share it publicly. If you suspect your key has been compromised, reset it immediately.
API Base URL#
https://apibox.erweima.ai
Quick Start Guide#
Step 1: Generate Your First Music Track#
Start with a simple music generation request:Step 2: Check Task Status#
Use the returned task ID to check generation status:{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e"
}
}
{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e",
"status": "SUCCESS",
"response": {
"data": [
{
"id": "8551****662c",
"audio_url": "https://example.cn/****.mp3",
"stream_audio_url": "https://example.cn/****",
"image_url": "https://example.cn/****.jpeg",
"prompt": "A peaceful and soothing piano piece",
"title": "Peaceful Piano",
"tags": "peaceful, soothing, piano",
"duration": 198.44,
"createTime": "2025-01-01 00:00:00"
}
]
}
}
}
Core Features#
Text-to-Music: Input text descriptions to generate corresponding musical compositions
Music Extension: Seamlessly create longer versions based on existing audio
Lyrics Generation: Generate structured lyrical content from creative prompts
Upload & Cover: Upload audio files and transform them into different musical styles
Upload & Extend: Upload audio files and seamlessly extend them while preserving style
Vocal Separation: Separate music into independent tracks like vocals and instrumentals with advanced stem separation
Format Conversion: Support for WAV and other high-quality audio format outputs
Music Videos: Convert audio to visualized music videos
Add Vocals: Generate vocal tracks for existing instrumental music
Add Instrumental: Create instrumental accompaniment for vocal tracks
Style Enhancement: Enhance and optimize existing music's stylistic features with V4_5+ conversational prompts
Timestamped Lyrics: Retrieve synchronized lyrics for karaoke-style applications
AI Models#
Choose the right model for your needs:
V6
Default modelLatest generation. style 1000 chars, lyrics 5000 chars, negativeTags 1000 chars
V6_WILD
Bolder outputSame limits as V6, tuned for more adventurous results
V6_MINI
Faster and lighterSame limits as V6, optimized for speedDeprecated models: V5_5, V5, V4_5PLUS, V4_5ALL, V4_5, V4. These values remain accepted for backward compatibility only — new integrations should use a V6-series model.
Generation Modes#
customMode · boolean · requiredControls parameter complexity. customMode applies to Generate Music only — every other generation endpoint always uses custom parameters and does not accept this switch.false: Simple mode. Provide at least one of imageUrls, videoUrls, audioUrls, midiUrls, style, or lyrics. Parameters that are custom-mode only must not be sent.
true: Custom mode. Provide at least one of style, lyrics, or negativeTags. title is optional.
instrumental · boolean · requiredDetermines whether music contains vocals:true: Instrumental only (no lyrics)
false: Contains vocals/lyrics
Key Parameters#
Text description of the desired music. Optional.Custom mode: used strictly as lyrics. If lyrics is also provided, lyrics takes priority.
Non-custom mode: used as the core idea; lyrics are generated from it and do not strictly match the input. Maximum 3000 characters.
Character Limits (custom mode):V6, V6_WILD, V6_MINI: 5000 characters
V4 (Deprecated): 3000 characters
V4_5, V4_5PLUS, V4_5ALL, V5, V5_5 (Deprecated): 5000 characters
Lyrics for the generated track. Optional. For V6, V6_WILD, and V6_MINI: maximum 5000 characters.Custom mode: takes priority over prompt as the lyrics; falls back to prompt when omitted.
Non-custom mode: acts as a lyrics attachment and can be combined with prompt.
Music style specification. Optional.Examples: Jazz, Classical, Electronic, Pop, Rock, Hip-hopV6, V6_WILD, V6_MINI: 1000 characters
V4 (Deprecated): 200 characters
V4_5, V4_5PLUS, V4_5ALL, V5, V5_5 (Deprecated): 1000 characters
Title for the generated music track. Optional, and only available in custom mode.Maximum Length: 80 charactersDiversity of the generated results. Optional. Integer from 0 to 4, default 1.0 off (exact style), 1 normal (default, balanced), 2 high (distinct styles), 3 extra (bold exploration), 4 max (maximum variation).Complete Workflow Example#
Here's a complete example of generating music with lyrics and waiting for completion:Status Codes and Task Status#
Task is waiting for processing or currently generatingTEXT_SUCCESS · Partial CompleteLyrics/text generation successfully completedFIRST_SUCCESS · Partial CompleteFirst track generation completedAll tracks generated successfullyCREATE_TASK_FAILED · ErrorGENERATE_AUDIO_FAILED · ErrorSENSITIVE_WORD_ERROR · ErrorContent filtered due to sensitive wordsHTTP Status Codes#
Invalid parameters or missing required fieldsNo access permission, check API keyInvalid request method or path429 · Insufficient CreditsAccount credits insufficientSystem maintenance in progressBest Practices#
Error Handling#
Support#
Need help? Our technical support team is here to assist you.Documentation: Check detailed API documentation and examples
API Status: View our status page for real-time API health information
Ready to start creating amazing AI music? Get your API key and start creating today!