# MusicAPI ## Docs - [MusicAPI Docs — Suno-Style AI Music Generation API](https://docs.musicapi.ai/introduction.md): Official MusicAPI documentation: quickstart, authentication, API keys, endpoints for songs, stems, WAV and lyrics. Free trial credits - first call in 2 minutes. - [Credits & Costs - What Each API Call Costs | MusicAPI](https://docs.musicapi.ai/credits-usage-guide.md): How MusicAPI credits work: 15 credits per music generation (2 songs), costs for stems, WAV, covers and extensions, plus how to track usage and top up. - [Music API FAQ & Troubleshooting | AI Music Generation Help](https://docs.musicapi.ai/faq.md): Find answers to common questions about AI music generation with Suno API and Udio API. Learn how to use the AI music SDK, resolve technical issues, and optimize text-to-music and AI vocal generation. Get troubleshooting tips for concurrent audio processing, API errors, and more. - [Common Scenarios - Music API Use Cases & Best Practices](https://docs.musicapi.ai/special-scenarios.md): Discover practical use cases for the Music API, from AI-generated custom songs to extending music clips and creating unique personas. - [Error Handling - Music API Error Codes & Solutions](https://docs.musicapi.ai/error-handling.md): Find solutions to common Music API errors, including validation errors, authorization issues, forbidden actions, server errors, and timeouts. - [Webhook Integration Guide](https://docs.musicapi.ai/webhook-guide.md): - [How to Get a Suno API Key (2026) - MusicAPI](https://docs.musicapi.ai/get-suno-api-key.md): Get a Suno-style music generation API key in 2 minutes: create a free MusicAPI account, generate the key in your dashboard, and make your first call - no card required. - sonic [Sonic Instructions | AI Music Generation with Sonic V4 API](https://docs.musicapi.ai/sonic-instructions.md): Learn how to use the Sonic V4 AI music generation model. Explore API capabilities for text-to-music, AI vocal synthesis, and high-quality music production. Get started with the Sonic music generation SDK for commercial and enterprise use. - riffusion(Deprecated) [Riffusion API - Generate Music with Riffusion (2026 Guide)](https://docs.musicapi.ai/riffusion-instructions.md): Call Riffusion models via REST API: create songs from prompts or lyrics, covers, extensions, vocal swaps. Code examples and free trial credits included. - producer [Producer AI API - Docs, Examples & Endpoints | MusicAPI](https://docs.musicapi.ai/producer-api-overview.md): Producer API documentation: generate professional AI music tracks, download results, request examples and integration guide. Free trial credits to start. - producer [Producer API Request Examples - Complete Integration Guide | MusicAPI](https://docs.musicapi.ai/producer-api-examples.md): Comprehensive Producer API request examples for all operations: create, extend, cover, replace, swap vocals, swap instrumentals, and variations. Production-ready code samples with best practices. - studio(Unavailable) [Studio Instructions | AI Music Generation with Studio Model](https://docs.musicapi.ai/studio-instructions.md): Learn how to use the Studio AI music generation model for professional-quality tracks. The Studio model leverages advanced AI vocal synthesis and music composition to produce high-quality AI-generated music. Explore features, best practices, and API integration details. - nuro [Nuro Instruction](https://docs.musicapi.ai/nuro-instruction.md): - nuro [Error handling](https://docs.musicapi.ai/nuro-error-handling.md): ## API Docs - sonic [Concat Music API | Seamlessly Merge AI-Generated Music with Sonic](https://docs.musicapi.ai/concat-music.md): Use the concat-music POST API to merge AI-generated music segments into a seamless full-length track with Sonic V4 API. Ensure smooth transitions and high-quality audio for professional music production. Learn about request parameters, audio formats, and best practices. - sonic [│ Upload and Extend Music - MusicAPI ](https://docs.musicapi.ai/upload-extend-music.md): One-stop API to upload audio and extend with new content. Supports auto_concat, webhook, custom lyrics and AI description modes. - sonic [Upload and Cover Music - MusicAPI ](https://docs.musicapi.ai/upload-cover-music.md): One-stop API to upload audio and create cover versions. Supports auto_concat, webhook, custom lyrics and AI description modes. - sonic [Create Persona API | AI Voice Model Training with Sonic](https://docs.musicapi.ai/create-persona.md): Use the create-persona POST API to generate a custom AI voice model from any song URL with Sonic V4 API. Create your unique persona and use its vocal characteristics to generate new AI-powered music. Learn about request parameters, training process, and best practices. - sonic [sample](https://docs.musicapi.ai/sample-this-song.md): Generate a complete song from a short audio sample or hummed melody. - sonic [mashup](https://docs.musicapi.ai/mashup.md): Generate a new song based on two existing songs. - sonic [Get BPM - MusicAPI](https://docs.musicapi.ai/get-bgm.md): Get the BPM (Beats Per Minute) of a song including average, max and min values. Analyze song tempo with clip_id parameter. - sonic [Get VOX (Vocal Extraction) - MusicAPI](https://docs.musicapi.ai/get-vox.md): Extract vocal audio from a song. Specify time range (up to 30 seconds) to extract vocals from specific portions. - sonic [AI Music API – Get WAV from Song ID: Convert Original MP3 to High-Quality WAV](https://docs.musicapi.ai/wav.md): AI Music API's WAV feature converts any generated song from MP3 to lossless WAV format by Song ID. Perfect for professional audio editing, mastering, and high-fidelity playback. - sonic [Get the midi data of the specified clip id in suno](https://docs.musicapi.ai/get-midi.md): Get the midi data of the specified clip id in suno - sonic [Get the lyric timeline for the specified suno clip_id.](https://docs.musicapi.ai/get-suno-lyrics-timeline.md): Get the lyric timeline for the specified suno clip_id. - sonic [Upsample Tags | MusicAPI](https://docs.musicapi.ai/upsample-tags.md): get the AI-enhanced tags - sonic [AI Music API – Stems Basic: Extract Vocals and Instrumental from Song ID (2 Tracks)](https://docs.musicapi.ai/stems-basic.md): Use AI Music API's Stems Basic feature to split any song by Song ID into two high-quality audio tracks: isolated vocals and pure instrumental. Perfect for karaoke, remixes, podcasts, and content creation. - sonic [AI Music API – Stems Full: Extract 12 Detailed Vocal and Instrument Tracks from Song ID](https://docs.musicapi.ai/stems-full.md): AI Music API's Stems Full feature extracts up to 12 individual stems from a song by Song ID, including lead vocals, backing vocals, drums, bass, piano, guitar, and more — giving creators maximum control for mixing and production. - sonic [replace section](https://docs.musicapi.ai/replace-section.md): Replace a section of lyrics in an existing song to generate new music. The new lyrics should overlap with the original lyrics, and the timing should correspond appropriately. - sonic [upload music](https://docs.musicapi.ai/upload-music.md): Upload local songs and get the clip id for subsequent operations. - sonic [create voice](https://docs.musicapi.ai/create-voice.md): Create a custom voice persona from an audio file containing clear vocals. This is an async endpoint — submit the audio URL, receive a task_id, then poll for the result. - sonic [Get Music Results - Suno-Style Task API | MusicAPI Docs](https://docs.musicapi.ai/get-sonic-music.md): Retrieve generated songs by task id: audio URLs, task states and metadata. Polling and webhook patterns for the Suno-style music generation API. - riffusion(Deprecated) [create music (with lyrics)](https://docs.musicapi.ai/riffusion-create-with-lyrics.md): - riffusion(Deprecated) [create music (with description)](https://docs.musicapi.ai/riffusion-craete-with-prompt.md): - riffusion(Deprecated) [cover music](https://docs.musicapi.ai/riffusion-cover-music.md): Generate a cover version of a song, support self-uploaded songs - riffusion(Deprecated) [extend music](https://docs.musicapi.ai/riffusion-extend-music.md): Generate an extended version of a song , support self-uploaded songs - riffusion(Deprecated) [replace music section](https://docs.musicapi.ai/riffusion-replace-music-section.md): Regenerate a specified area of ​​a song, support self-uploaded songs - riffusion(Deprecated) [swap music sound](https://docs.musicapi.ai/riffusion-swap-music-sound.md): Reference documentation: https://www.riffusion.com/docs/create/stem-swaps, Describe the changes to the background music in the sound field, support self-uploaded songs - riffusion(Deprecated) [swap music vocals](https://docs.musicapi.ai/riffusion-swap-music-vocals.md): Reference documentation: https://www.riffusion.com/docs/create/stem-swaps, Describe the changes to the vocals in the sound field, support self-uploaded songs - riffusion(Deprecated) [upload](https://docs.musicapi.ai/api-314451567.md): Upload your own songs and get a clip id for subsequent operations - riffusion(Deprecated) [get music](https://docs.musicapi.ai/riffusion-get.md): If the generation is complete, two songs will be returned. If you only receive one song, you can continue to poll. - producer [POST Create Music - Producer API Endpoint | MusicAPI](https://docs.musicapi.ai/create-producer-music.md): Producer API endpoint to generate AI music tracks. Supports create, extend, cover, replace, swap vocals/instrumentals, and variations. FUZZ-2.0 model with 30-second generation time. - producer [Upload music to producer API](https://docs.musicapi.ai/upload-music-producer.md): upload music to producer , get the audio id , and use the clip id to create music. - producer [Download music files from producer ](https://docs.musicapi.ai/download-producer-music.md): Download music files in specified format according to clip id, mp3/wav - producer [GET Music Task Status - Producer API Endpoint | MusicAPI](https://docs.musicapi.ai/get-producer-music.md): Query Producer API task status and retrieve generated music. Returns audio_url, video_url, metadata, and generation details. Free polling with no credit cost. - producer [Extend an existing music track](https://docs.musicapi.ai/api-450367154.md): Extend a previously generated or uploaded clip from a specific timestamp. The new content is appended starting at `starts_at` and runs for `length` seconds. - producer [Replace a section of an existing music track](https://docs.musicapi.ai/api-450367170.md): Replace the segment between `starts_at` and `ends_at` of a previously generated or uploaded clip with new content. Surrounding sections are preserved. - producer [Cover an existing music track](https://docs.musicapi.ai/api-460957729.md): Reinterpret a previously generated or uploaded clip in a new style. The cover keeps the source clip's structural skeleton and re-records it according to your `instruction`. The `strength` parameter (0–1) controls how strongly the cover diverges from the original. - studio(Unavailable) [Description Mode API | AI Music Generation with Studio Model](https://docs.musicapi.ai/description-mode.md): Use the description-mode POST API to generate AI-powered music with the Studio model by providing a detailed text description. Create professional-quality tracks with AI-driven composition and vocal synthesis. Learn about request parameters, response formats, and best practices. - studio(Unavailable) [Extend Mode API | AI Music Extension with Studio Model](https://docs.musicapi.ai/extend-mode.md): Use the extend-mode POST API to seamlessly extend AI-generated music using the Studio model. Generate high-quality, natural-sounding music continuations with AI-driven composition and vocal synthesis. Learn about request parameters, response formats, and best practices. - studio(Unavailable) [Custom Mode API | Tailored AI Music Generation with Studio Model](https://docs.musicapi.ai/custom-mode.md): Use the custom-mode POST API to create unique AI-generated music tailored to your specific needs with the Studio model. Customize your tracks with detailed parameters, leveraging AI vocal synthesis and composition to produce professional-quality music. Learn about request parameters, response formats, and best practices. - studio(Unavailable) [Instrumental Mode API | AI Instrumental Music Generation with Studio Model](https://docs.musicapi.ai/instrumental-mode.md): Use the instrumental-mode POST API to generate high-quality instrumental music using the Studio model. Create AI-composed tracks without vocals, ideal for background music, soundtracks, and custom compositions. Learn about request parameters, response formats, and best practices. - studio(Unavailable) [Get Music API | Retrieve AI-Generated Music by Task ID](https://docs.musicapi.ai/get-studio-music.md): Use the get-music GET API to retrieve AI-generated music details using a task ID with the Studio and Sonic models. Access metadata, download links, and processing status for your generated tracks. Learn about request parameters, response formats, and best practices. - lyrics generation [Lyrics Generation API | AI-Powered Song Lyrics Creation](https://docs.musicapi.ai/lyrics-generation.md): Use the lyrics-generation POST API to generate AI-crafted song lyrics based on themes, moods, and styles. Leverage advanced AI models to create unique and high-quality lyrics for any genre. Learn about request parameters, response formats, and best practices. - nuro [create vocal music](https://docs.musicapi.ai/create-nuro-music.md): - nuro [create instrument music](https://docs.musicapi.ai/create-nuro-bgm.md): - nuro [get music](https://docs.musicapi.ai/get-nuro-music.md): - [get-credits](https://docs.musicapi.ai/get-credits.md): ## Schemas - [ExtendMusicRequest](https://docs.musicapi.ai/schema-269092365.md): - [ReplaceMusicRequest](https://docs.musicapi.ai/schema-269092375.md): - [记录不存在](https://docs.musicapi.ai/schema-243949863.md): - [CoverMusicRequest](https://docs.musicapi.ai/schema-276201835.md): - [CreateTaskAccepted](https://docs.musicapi.ai/schema-269092366.md): - [参数不正确](https://docs.musicapi.ai/schema-243949864.md): - [ErrorResponse](https://docs.musicapi.ai/schema-269092367.md):