docs.api.box
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
Suno API
Common APIFile Upload API
Suno API
Common APIFile Upload API
  1. Suno API
  • API.box Documentation
  • 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
  • Lyrics Generation
    • 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 and Instrument 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
  1. Suno API

Quick Start

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 prompts

Authentication#

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

Authentication Header#

Quick Start Guide#

Step 1: Generate Your First Music Track#

Start with a simple music generation request:
cURL
JavaScript
Python
PHP

Step 2: Check Task Status#

Use the returned task ID to check generation status:
cURL
JavaScript
Python

Response Format#

Success Response:
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "5c79****be8e"
  }
}
Task Status Response:
{
  "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 model
Latest generation. style 1000 chars, lyrics 5000 chars, negativeTags 1000 chars
V6_WILD
Bolder output
Same limits as V6, tuned for more adventurous results
V6_MINI
Faster and lighter
Same limits as V6, optimized for speed
Deprecated 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 · required
Controls 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 · required
Determines whether music contains vocals:
true: Instrumental only (no lyrics)
false: Contains vocals/lyrics

Key Parameters#

prompt · string
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 · string
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.
style · string
Music style specification. Optional.
Examples: Jazz, Classical, Electronic, Pop, Rock, Hip-hop
Character Limits:
V6, V6_WILD, V6_MINI: 1000 characters
V4 (Deprecated): 200 characters
V4_5, V4_5PLUS, V4_5ALL, V5, V5_5 (Deprecated): 1000 characters
title · string
Title for the generated music track. Optional, and only available in custom mode.
Maximum Length: 80 characters
variety · integer
Diversity 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:
JavaScript
Python

Status Codes and Task Status#

PENDING · Processing
Task is waiting for processing or currently generating
TEXT_SUCCESS · Partial Complete
Lyrics/text generation successfully completed
FIRST_SUCCESS · Partial Complete
First track generation completed
SUCCESS · Complete
All tracks generated successfully
CREATE_TASK_FAILED · Error
Task creation failed
GENERATE_AUDIO_FAILED · Error
Audio generation failed
SENSITIVE_WORD_ERROR · Error
Content filtered due to sensitive words

HTTP Status Codes#

200 · Success
Request successful
400 · Bad Request
Invalid parameters or missing required fields
401 · Unauthorized
No access permission, check API key
404 · Not Found
Invalid request method or path
405 · Rate Limited
Call limit exceeded
413 · Content Too Long
Prompt or theme too long
429 · Insufficient Credits
Account credits insufficient
455 · Maintenance
System maintenance in progress
500 · Server Error
Internal server error

Best Practices#

Prompt Engineering
Model Selection
Performance Optimization
Content Guidelines

Error Handling#

Content Policy Violation (Code 400)
Insufficient Credits (Code 429)
Rate Limiting (Code 405)

Support#

Need help? Our technical support team is here to assist you.
Email: support@api.box
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!
Previous
API.box Documentation
Next
Music Generation Callbacks
Built with