Skip to main content

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:
Task Status 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:

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

V4_5ALL

Better StructureV4.5-all is better song structure, max 8 min

V5

Faster GenerationSuperior musicality with improved speed, up to 8 minutes

V5_5

Unleash Your VoiceUnleash Your Voice: Custom Models Tailored to Your Unique Taste.

Key Parameters

string
Text description for music generation. Provide detailed, specific descriptions for better results.Character limits by model:
  • V4: Maximum 3000 characters
  • V4_5, V4_5PLUS, V4_5ALL, V5, V5_5: Maximum 5000 characters
Prompt Tips:
  • Describe musical style and genre
  • Include mood and atmosphere
  • Specify instruments and vocals
  • Add tempo and energy descriptions
string
required
Model version to use:
  • V4 - Best audio quality, up to 4 minutes
  • V4_5 - Advanced features, up to 8 minutes
  • V4_5PLUS - Richer sound, up to 8 minutes
  • V4_5ALL - V4.5-all is better song structure, max 8 min
  • V5 - Faster generation with superior musicality, up to 8 minutes
  • V5_5 - Unleash Your Voice: Custom Models Tailored to Your Unique Taste.
boolean
Enable custom parameter mode for advanced control. When true, requires additional parameters like style and title.
boolean
Generate instrumental-only music without vocals. Default is false.
string
Music style or genre (required in custom mode). Examples: “Jazz”, “Rock”, “Classical”, “Electronic”Character limits by model:
  • V4: Maximum 200 characters
  • V4_5, V4_5PLUS, V4_5ALL, V5, V5_5: Maximum 1000 characters
string
Song title (required in custom mode). Character limits by model:
  • V4 & V4_5ALL: Maximum 80 characters
  • V4_5, V4_5PLUS, V5, V5_5: Maximum 100 characters
string
URL to receive completion notifications. See callback documentation for details.

Complete Workflow Example

Here’s a complete music generation and processing example:

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

Processing
Task is being processed
Completed
Task completed successfully
Failed
Task failed to complete
Queued
Task is queued for processing

Best Practices

  • 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
  • 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
  • Use V4_5ALL for better song structure (max 8 min)
  • V5 provides faster generation with superior musicality
  • Consider your specific use case and quality requirements
  • 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
  • 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.

Ready to start creating amazing AI music? Get your API key and begin composing today!