Welcome to Suno API
Suno API is powered by advanced AI models to provide comprehensive music generation and audio processing services. Whether you need music creation, lyrics generation, audio editing, or vocal separation, our API meets all your creative needs.Music Generation
Generate high-quality music from text descriptions
Lyrics Creation
Create AI-powered lyrics for your songs
Audio Processing
Extend, convert, and separate audio tracks
Music Videos
Generate visual music videos from audio
Authentication
All API requests require authentication using a Bearer token. 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
Authentication Header
Quick Start Guide
Step 1: Generate Your First Song
Start with a simple music generation request:Step 2: Check Task Status
Use the returned task ID to check generation status:Response Format
Success Response:Core Features
Music Generation
Create complete songs from text descriptions:Lyrics Creation
Generate AI-powered lyrics independently:Audio Extension
Extend existing music tracks:Upload and Cover
Transform existing audio with new styles:Model Versions
Choose the right model for your needs:V3_5
BalancedSolid arrangements with creative diversity, up to 4 minutes
V4
High QualityBest audio quality with refined song structure, up to 4 minutes
V4_5
AdvancedSuperior genre blending with smarter prompts, up to 8 minutes
V4_5PLUS
Richer SoundEnhanced musicality with new creative ways, up to 8 minutes
V5
Faster GenerationSuperior musicality with improved speed, up to 8 minutes
Key Parameters
Text description for music generation. Provide detailed, specific descriptions for better results.Prompt Tips:
- Describe musical style and genre
- Include mood and atmosphere
- Specify instruments and vocals
- Add tempo and energy descriptions
Model version to use:
V3_5- Creative diversity, up to 4 minutesV4- Best audio quality, up to 4 minutesV4_5- Advanced features, up to 8 minutesV4_5PLUS- Richer sound, up to 8 minutesV5- Faster generation with superior musicality, up to 8 minutes
Enable custom parameter mode for advanced control. When
true, requires additional parameters like style and title.Generate instrumental-only music without vocals. Default is
false.Music style or genre (required in custom mode). Examples: “Jazz”, “Rock”, “Classical”, “Electronic”
Song title (required in custom mode). Maximum 80 characters.
URL to receive completion notifications. See callback documentation for details.
Complete Workflow Example
Here’s a complete music generation and processing example:- JavaScript
- Python
Advanced Features
Upload and Extend
Upload your own audio and extend it with AI:Audio Format Conversion
Convert music to high-quality WAV format:Music Video Generation
Create visual music videos:Using Callbacks
Set up webhook callbacks for automatic notifications:Learn More About Callbacks
Set up webhook callbacks to receive automatic notifications when your music is ready.
Task Status Explanation
Task is being processed
Task completed successfully
Task failed to complete
Task is queued for processing
Best Practices
Prompt Optimization
Prompt Optimization
- Use detailed, specific descriptions for music style and mood
- Include instrument specifications and vocal requirements
- Specify tempo, energy level, and song structure
- Avoid conflicting or overly complex descriptions
Model Selection
Model Selection
- Use V3_5 for creative and experimental music
- Choose V4 for highest audio quality in standard lengths
- Select V4_5 for advanced features and longer tracks
- V4_5PLUS offers richer sound with new creative ways
- V5 provides faster generation with superior musicality
- Consider your specific use case and quality requirements
Performance Optimization
Performance Optimization
- Use callbacks instead of frequent polling
- Implement proper retry logic for failed requests
- Monitor your credit usage and plan accordingly
- Cache results to avoid regenerating similar content
Error Handling
Error Handling
- Implement appropriate retry logic for transient failures
- Monitor task status and handle timeout scenarios
- Validate input parameters before making requests
- Log errors for debugging and monitoring
File Storage and Access
Generated audio files are stored for 15 days before automatic deletion. Download URLs may have limited validity periods.
- Audio files remain accessible for 15 days after generation
- Download and save important files to your own storage
- Use the API to regenerate content if needed after expiration
- Consider implementing local backup strategies for critical content
Next Steps
Generate Music
Complete API reference for music generation
Create Lyrics
AI-powered lyrics generation
Audio Processing
Extend, convert, and separate audio
Callback Setup
Set up automatic notifications
Support
Need help? Our technical support team is here to assist you.
- Email: support@sunoapi.org
- Documentation: docs.sunoapi.org
- API Status: Check our status page for real-time API health
Ready to start creating amazing AI music? Get your API key and begin composing today!
