Transform your thoughts into songs instantly and unleash your creativity!
Transform your thoughts into songs instantly and unleash your creativity!
Generate Voice
Prepare the source and validation audio in the popup, then finish the self-built voice generation here.
The source clip will appear after the popup finishes.
The validation phrase will appear here after the popup starts the task.
The validation clip will appear here after the popup completes.
taskId: Not created yet
voiceId: Not ready yet
Task ID from the original music generation. Optional.
Maximum 100 characters
Audio start extension time point (in seconds). Must be greater than 0 and less than the total duration of the generated audio.
Apply a personaId to the generated music. Generate personaId at Generate Persona.
Transform your thoughts into songs instantly and unleash your creativity!
sounds task type supports up to 500 characters.
Whether to fetch lyric subtitles after generation is completed.
Whether to loop the generated sound.
BPM, valid range is 1-300. Empty means Auto.
Transform your thoughts into songs instantly and unleash your creativity!
Task ID from music generation (generate, extend, cover, upload-extend)
Audio ID from the completed music generation task
Name for the Persona
Detailed description of the Persona's musical characteristics
Start time (seconds)
End time (seconds)
Style description for the Persona (optional)
Create personalized music Personas for your generated music!
Unique identifier of the music generation task.
Unique identifier of the specific audio track.
Retrieve synchronized lyrics with precise timestamps for music tracks. Both Task ID and Audio ID are required.
Query Voice Availability
Enter the generated taskId and query the voice availability result.
Run the query to see whether this voice is available.
Original music task ID
Audio ID to replace
Prompt describing the replacement segment content
Music style tags
Music title
Start time (seconds)
End time (seconds)
Music styles to exclude (optional)
Complete lyrics after modification
Transform your thoughts into songs instantly and unleash your creativity!
Task ID from a completed music generation task
Generate personalized cover images for your music!
Describe the theme, style, or subject of the desired lyrics. Maximum 200 characters.
Generate creative lyrics content based on a text prompt. Multiple variations of lyrics will be generated for each request.

Your refined music style will appear here. Enter a description and click 'Run' to start.
Transform your thoughts into songs instantly and unleash your creativity!
Separate vocals and instruments from your audio tracks with AI!
Task ID from a completed vocal separation. This should be the taskId returned from the Vocal & Instrument Stem Separation endpoint.
Select the audio track to convert to MIDI format. Please fill in the Task ID field first.
Convert separated audio tracks into MIDI format with detailed note information for each instrument.
Upload up to 2 audio files to mashup music from multiple audio tracks.
Transform your thoughts into songs instantly and unleash your creativity!
Task ID from a completed "Generate Music" or "Extend Music" task
Audio ID from the completed music generation result
Artist or creator name to display as a signature on the video cover (max 50 characters)
Website or brand to display as a watermark at the bottom of the video (max 50 characters)
Create a video with visualizations based on your generated music track.
Transform your thoughts into songs instantly and unleash your creativity!
0/100
Optional Parameters
Transform your thoughts into songs instantly and unleash your creativity!
Transform your thoughts into songs instantly and unleash your creativity!
Convert your audio to WAV format for better compatibility!

- Utilizes a streaming response system, delivering results in as fast as 20 seconds.
- Stable and watermark-free.
- 24/7 transcription monitoring for dual-layer protection.

- Utilizes a streaming response system, delivering results in as fast as 20 seconds.
- Stable and watermark-free.
- 24/7 transcription monitoring for dual-layer protection.

- Utilizes a streaming response system, delivering results in as fast as 20 seconds.
- Stable and watermark-free.
- 24/7 transcription monitoring for dual-layer protection.
README
Complete guide to using Music API
Music API & AI Music API: Full-Song Generation, Stem Separation & Audio Remixing
Integrate AI song generation, custom lyrics, audio covers, track extension, 2- to 12-stem vocal separation, WAV format export, and MIDI extraction through one REST API—with full-song generation at $0.06/request and 80 free sign-up credits.
Core Capabilities of the Kie.ai Music API
Full-Song Generation (V6, V6_MINI & V6_WILD)
Call ai-music-api/generate at 12 credits ($0.06) per request to produce multiple vocal or instrumental track variations (up to 360 seconds in Custom Mode), returning both downloadable audio_url and streaming stream_audio_url links.
Custom Lyrics Mode & Multimodal Reference Mode
Use custom_mode: true for 5,000-character custom lyrics, 1,000-character style tags, negative_tags, and 10–360s duration control, or custom_mode: false to guide songs with image_urls, video_urls, audio_urls, or midi_urls.
Audio Covers, Track Extension, Mashups & Section Replacement
Re-style uploaded demos with ai-music-api/upload-and-cover-audio ($0.06), lengthen songs with extend or upload-and-extend-audio ($0.06), blend tracks with mashup ($0.06), or regenerate up to 50% of a song via replace-section ($0.025).
2-Stem & 12-Stem Vocal and Instrument Separation
Split generated mixes via ai-music-api/separate-vocals using separate_vocal (2 stems at $0.05), split_stem_advanced (an isolated target stem_name plus a stem-removed mix at $0.10), or split_stem (up to 12 vocal, instrument, and FX stems at $0.25).
WAV Format Conversion & Free MIDI Extraction
Export generated songs or individual separated stems to WAV format with ai-music-api/convert-to-wav-format ($0.002/request), and extract multi-stem or single-stem MIDI note data from completed stem separations via ai-music-api/generate-midi-from-audio ($0).
AI Lyrics, Timestamped Karaoke Sync & MP4 Videos
Generate standalone song lyrics ($0.002), expand genre prompts with boost-music-style ($0.002), fetch aligned karaoke timings via timeStamped-lyrics ($0.0025), or render MP4 visualizers with create-music-video ($0.01).
Music API Endpoints, Model Values & Pay-As-You-Go Pricing
All Music API tasks run asynchronously through POST https://api.kie.ai/api/v1/jobs/createTask and draw from one shared Kie.ai credit balance.
| model Field Value | What It Does | Price per Request |
|---|---|---|
| ai-music-api/generate | Generate vocal or instrumental songs (V6, V6_MINI, V6_WILD; custom_mode & instrumental required) | 12 credits ($0.06) |
| ai-music-api/extend | Continue a generated track from a timestamp using V6, V6_MINI, or V6_WILD | 12 credits ($0.06) |
| ai-music-api/upload-and-cover-audio | Pass an external audio upload_url and re-render it in a new style while preserving melody | 12 credits ($0.06) |
| ai-music-api/upload-and-extend-audio | Pass an external audio upload_url and extend it seamlessly with optional lyrics and style | 12 credits ($0.06) |
| ai-music-api/add-vocals & add-instrumental | Add AI vocals to an instrumental track or build backing music around vocals | 12 credits ($0.06) each |
| ai-music-api/mashup | Blend tracks into a 10–360s mashup with text, first, and complete callbacks | 12 credits ($0.06) |
| ai-music-api/replace-section | Regenerate a selected time window (up to 50% of original track duration) | 5 credits ($0.025) |
| ai-music-api/separate-vocals | separate_vocal (2 stems) | split_stem_advanced (stem_name) | split_stem (up to 12 stems) | 10 / 20 / 50 credits ($0.05 / $0.10 / $0.25) |
| ai-music-api/generate-midi-from-audio | Extract MIDI notes from a completed separate-vocals task_id (optional stem audio_id) | Free (0 credits / $0) |
| ai-music-api/convert-to-wav-format | Convert a generated song or separated stem (task_id + audio_id) to WAV format | 0.4 credits ($0.002) |
| ai-music-api/generate-lyrics & boost-music-style | Generate standalone lyrics from a prompt or expand short style tags | 0.4 credits ($0.002) each |
| ai-music-api/timeStamped-lyrics | Fetch aligned lyric timestamps for karaoke and synchronized players | 0.5 credits ($0.0025) |
| ai-music-api/create-music-video | Render a shareable MP4 music visualization video from task_id + audio_id | 2 credits ($0.01) |
| ai-music-api/sounds & speech | Short sound loops/samples (sounds) or spoken-word audio (speech) | 2.5 cr ($0.0125) / 12 cr ($0.06) |
| ai-music-api/generate-persona & voice tools | Create reusable persona_id (style_persona / voice_persona) and voice utilities | Free (0 credits / $0) |
ai-music-api/generate Parameter Rules: Custom Mode vs Non-Custom Mode
custom_mode, instrumental, and model (V6, V6_MINI, or V6_WILD) are required on every ai-music-api/generate request; keep custom-only and reference-only parameters strictly separated.
| Parameter / Rule | Custom Mode (custom_mode: true) | Non-Custom Reference Mode (custom_mode: false) |
|---|---|---|
| Required Content Fields | title (<=80 chars) + at least one of style (<=1,000 chars), lyrics (<=5,000 chars), or negative_tags | At least one of style, lyrics, image_urls, video_urls, audio_urls, or midi_urls (total attachments <=10) |
| How prompt & lyrics Work | When instrumental: false, lyrics takes priority over prompt (falls back to prompt if lyrics is omitted) | prompt (<=3,000 chars) guides automatic lyric generation when instrumental: false; lyrics can be attached alongside prompt |
| Multimodal Reference Files | Not accepted in Custom Mode (omit image_urls, video_urls, audio_urls, midi_urls) | image_urls (<=5 files, <=10 MB each), video_urls (1 file <=100 MB, <=241s), audio_urls (6s–30 min, <=500 MB), midi_urls (1 file <=256 KB, MThd header, V6_WILD) |
| Duration & Vocal Controls | duration (10–360s on V6/V6_MINI/V6_WILD), vocal_gender ('m' or 'f' preference), style_weight (0–1), weirdness_constraint (0–1), audio_weight (0–1, vocal only), variety (0–4, default 1) | Do not send duration, vocal_gender, style_weight, weirdness_constraint, audio_weight, or variety |
| Personas (V6 / V6_MINI / V6_WILD) | Optional persona_id + persona_model ('style_persona' or 'voice_persona') | Use Custom Mode when applying persona_id |
How to Integrate the Kie.ai Music API
- 1
1. Create Your API Key & Test with 80 Free Credits
Sign up on Kie.ai to receive 80 free credits (enough for six $0.06 song generation calls plus lyric and WAV tests), create an API key at kie.ai/api-key with optional hourly, daily, or total usage caps, and pass Authorization: Bearer YOUR_API_KEY. - 2
2. Submit a Music Task to POST /api/v1/jobs/createTask
Send JSON with your target model ID (for example "ai-music-api/generate"), optional callBackUrl, and input parameters—such as custom_mode, instrumental, model ("V6", "V6_MINI", or "V6_WILD"), title, style, and lyrics (or upload local reference files first via https://docs.kie.ai/file-upload-api/quickstart.md). - 3
3. Handle Webhook Callbacks or Poll Task Status
For song generation and mashup tasks, your callBackUrl receives notifications at three stages: text (lyrics/metadata), first (initial track ready with streaming URL), and complete (all variations finished). Verify webhook signatures with HMAC in your handler, or poll GET /api/v1/jobs/recordInfo?taskId=… for task results. - 4
4. Chain Stems, WAV Conversion, MIDI, or Video Exports
Use your generated track's task_id and audio_id with ai-music-api/separate-vocals ($0.05–$0.25), convert-to-wav-format ($0.002), or create-music-video ($0.01). For free MIDI extraction ($0), first complete stem separation, then pass that separation task_id (and optional stem audio_id) to generate-midi-from-audio, and store final files in your own bucket within the 14-day retention window.