Suno API Documentation
Suno API provides professional, watermark-free music generation services with fast streaming output and cost-effective pricing - the perfect seamless audio API integration choice.
API Services Overview
We currently offer the following API services:
- Audio Generation
- Create high-quality AI-generated music
- Support for both custom and non-custom generation modes
- Generation with or without lyrics
- Multiple model versions (V3.5, V4)
- Audio Extension
- Extend existing audio tracks
- Customize continuation parameters
- Seamless audio transitions
- Lyrics Generation
- Generate professional song lyrics
- Multiple lyric versions per request
- Title suggestions included
- WAV Format Generation
- Convert generated audio to WAV format
- High-quality audio export
- Vocal Removal
- Separate audio into vocals and instrumental tracks
- Perfect for creating karaoke versions or isolating vocals
Basic Information
- API Server:
https://apibox.erweima.ai
- API Version: 1.0.0
- Technical Support: [email protected]
Before using the APIs, please make sure to:
- Get your API key from API Key Management Page
- Review the Authentication guide
Getting Started
Authentication
All APIs require Bearer Token authentication:
Authorization: Bearer YOUR_API_KEY
Important:
- Keep your API key secure
- Never share your API key
- Reset immediately if compromised
Error Handling
Our APIs use standard HTTP status codes along with detailed error messages:
Code | Description |
---|---|
200 | Success - The request was successful |
400 | Invalid Parameters - The request parameters are invalid |
401 | Unauthorized - Authentication is required or failed |
404 | Not Found - Invalid request method or path |
405 | Rate Limited - API call frequency exceeds the limit |
413 | Content Too Large - Topic or prompt is too long |
429 | Insufficient Credits - Account has insufficient credits |
455 | Maintenance - System is under maintenance |
500 | Server Error - Internal server error occurred |
API Services Details
Audio Generation
The Audio Generation API enables creating original AI-generated music:
- Both custom and non-custom generation modes
- Support for instrumental or lyrical music
- Multiple generation results per request
- Timestamped lyrics available for synchronization
- Cover image generation included
Learn more about Audio Generation →
Audio Extension
Extend existing audio tracks seamlessly:
- Continue from any timestamp in the original audio
- Maintain consistency with source audio
- Customize continuation parameters
Learn more about Audio Extension →
Lyrics Generation
Generate professional song lyrics:
- Multiple lyric versions per request
- Titles automatically suggested
- Support for various music styles
- Rich semantic expression
Learn more about Lyrics Generation →
WAV Format Generation
Convert generated audio to high-quality WAV format:
- Professional audio quality
- Perfect for further audio editing
- Lossless audio format
Learn more about WAV Generation →
Vocal Removal
Separate audio into vocals and instrumental components:
- Extract clean vocal tracks
- Isolate instrumental parts
- Original audio preserved
- Perfect for remixing or karaoke
Learn more about Vocal Removal →
Credits Management
Monitor and manage your API usage through the credits system:
- Check remaining credits
- Track usage history
- Set up usage alerts
Best Practices
-
Callback Handling
- Implement robust callback handling
- Process different callback stages appropriately
- Handle edge cases and errors gracefully
-
Error Handling
- Implement proper error handling
- Use retry mechanisms for transient failures
- Monitor credit usage regularly
-
Performance Optimization
- Process stream responses efficiently
- Implement proper request timeouts
- Cache responses when appropriate
Need Help?
If you encounter any issues or have questions, please contact us through:
- 📧 Email: [email protected]
- 💬 Live Support: Dashboard
- 📚 API Reference: Full Documentation
This documentation is available in both English and Chinese. You can switch languages using the language selector in the navigation bar.