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!

- ストリーミングレスポンスシステムで20秒で結果を提供。
- 安定的で透かしなし。
- 24時間体制の二重保護文字起こし監視。

- ストリーミングレスポンスシステムで20秒で結果を提供。
- 安定的で透かしなし。
- 24時間体制の二重保護文字起こし監視。

- ストリーミングレスポンスシステムで20秒で結果を提供。
- 安定的で透かしなし。
- 24時間体制の二重保護文字起こし監視。
README
Complete guide to using Music API
Music API・AI Music API:フル楽曲生成、ステム分離、オーディオリミックス
AI楽曲生成、カスタム歌詞、オーディオカバー、トラック延長、2〜12ステムのボーカル分離、WAV形式エクスポート、MIDI抽出を1つのREST APIで統合できます。フル楽曲生成は1リクエストあたり$0.06、新規登録で80クレジットが無料で付与されます。
Kie.ai Music APIの主要機能
フル楽曲生成(V6、V6_MINI、V6_WILD)
ai-music-api/generateを1リクエストあたり12クレジット($0.06)で呼び出すと、ボーカルまたはインストゥルメンタルのトラックバリエーション(カスタムモードでは最大360秒)を複数生成でき、ダウンロード用のaudio_urlとストリーミング用のstream_audio_urlの両リンクが返されます。
カスタム歌詞モードとマルチモーダル参照モード
custom_mode: trueでは5,000文字のカスタム歌詞、1,000文字のスタイルタグ、negative_tags、10〜360秒の長さ制御を利用でき、custom_mode: falseではimage_urls、video_urls、audio_urls、midi_urlsを使って楽曲生成をガイドできます。
オーディオカバー、トラック延長、マッシュアップ、セクション置換
ai-music-api/upload-and-cover-audio($0.06)でアップロードしたデモのスタイルを変更し、extendやupload-and-extend-audio($0.06)で楽曲を延長し、mashup($0.06)でトラックをブレンドし、replace-section($0.025)で楽曲の最大50%を再生成できます。
2ステム・12ステムのボーカル・楽器分離
ai-music-api/separate-vocalsでは、separate_vocal(2ステム、$0.05)、split_stem_advanced(抽出した対象stem_nameと該当ステム除去済みミックス、$0.10)、またはsplit_stem(ボーカル、楽器、FXの最大12ステム、$0.25)を使用して生成済みミックスを分離できます。
WAV形式変換と無料MIDI抽出
ai-music-api/convert-to-wav-format(1リクエストあたり$0.002)で生成済み楽曲や分離済みの各ステムをWAV形式にエクスポートでき、ai-music-api/generate-midi-from-audio($0)で完了済みのステム分離結果からマルチステムまたはシングルステムのMIDIノートデータを抽出できます。
AI歌詞、タイムスタンプ付きカラオケ同期、MP4動画
独立した楽曲歌詞の生成($0.002)、boost-music-styleによるジャンルプロンプトの拡張($0.002)、timeStamped-lyricsによる同期済みカラオケタイミングの取得($0.0025)、create-music-videoによるMP4ビジュアライザーのレンダリング($0.01)を行えます。
Music APIのエンドポイント、モデル値、従量課金の料金
すべてのMusic APIタスクはPOST https://api.kie.ai/api/v1/jobs/createTaskを通じて非同期に実行され、共通のKie.aiクレジット残高からクレジットを消費します。
| modelフィールド値 | 機能概要 | 1リクエストあたりの料金 |
|---|---|---|
| ai-music-api/generate | ボーカルまたはインストゥルメンタル楽曲を生成(V6、V6_MINI、V6_WILD。custom_modeとinstrumentalが必須) | 12クレジット($0.06) |
| ai-music-api/extend | V6、V6_MINI、またはV6_WILDを使用して、指定したタイムスタンプから生成済みトラックの続きを生成 | 12クレジット($0.06) |
| ai-music-api/upload-and-cover-audio | 外部音声のupload_urlを渡し、メロディを維持したまま新しいスタイルで再レンダリング | 12クレジット($0.06) |
| ai-music-api/upload-and-extend-audio | 外部音声のupload_urlを渡し、任意の歌詞とスタイルを指定してシームレスに延長 | 12クレジット($0.06) |
| ai-music-api/add-vocals & add-instrumental | インストゥルメンタルトラックにAIボーカルを追加、またはボーカルに合わせて伴奏を生成 | 各12クレジット($0.06) |
| ai-music-api/mashup | text、first、completeコールバック付きでトラックを10〜360秒のマッシュアップにブレンド | 12クレジット($0.06) |
| ai-music-api/replace-section | 選択した時間範囲(元のトラック長の最大50%)を再生成 | 5クレジット($0.025) |
| ai-music-api/separate-vocals | separate_vocal(2ステム) | split_stem_advanced(stem_name) | split_stem(最大12ステム) | 10 / 20 / 50クレジット($0.05 / $0.10 / $0.25) |
| ai-music-api/generate-midi-from-audio | 完了したseparate-vocalsのtask_idからMIDIノートを抽出(ステムのaudio_idは任意) | 無料(0クレジット/$0) |
| ai-music-api/convert-to-wav-format | 生成した楽曲または分離したステム(task_id + audio_id)をWAV形式に変換 | 0.4クレジット($0.002) |
| ai-music-api/generate-lyrics & boost-music-style | プロンプトから単独の歌詞を生成、または短いスタイルタグを拡張 | 各0.4クレジット($0.002) |
| ai-music-api/timeStamped-lyrics | カラオケや同期再生プレイヤー向けに、音声に対応付けられた歌詞のタイムスタンプを取得 | 0.5クレジット($0.0025) |
| ai-music-api/create-music-video | task_id + audio_idから共有可能なMP4音楽ビジュアライゼーション動画をレンダリング | 2クレジット($0.01) |
| ai-music-api/sounds & speech | 短いサウンドループ/サンプル(sounds)または話し言葉の音声(speech) | 2.5クレジット($0.0125)/12クレジット($0.06) |
| ai-music-api/generate-personaと音声ツール | 再利用可能なpersona_id(style_persona / voice_persona)の作成と音声ユーティリティ | 無料(0クレジット/$0) |
ai-music-api/generateのパラメータルール:カスタムモードと非カスタムモード
すべてのai-music-api/generateリクエストでcustom_mode、instrumental、model(V6、V6_MINI、またはV6_WILD)が必須です。カスタム専用パラメータとリファレンス専用パラメータは厳密に分けてください。
| パラメータ/ルール | カスタムモード(custom_mode: true) | 非カスタムリファレンスモード(custom_mode: false) |
|---|---|---|
| 必須コンテンツフィールド | title(80文字以下)+style(1,000文字以下)、lyrics(5,000文字以下)、negative_tagsのいずれか1つ以上 | style、lyrics、image_urls、video_urls、audio_urls、midi_urlsのいずれか1つ以上(添付ファイル合計10件以下) |
| promptとlyricsの仕組み | instrumental: falseの場合、promptよりlyricsが優先されます(lyricsを省略した場合はpromptにフォールバック) | instrumental: falseの場合、prompt(3,000文字以下)が自動歌詞生成のガイドとなります。promptとあわせてlyricsを添付することも可能です |
| マルチモーダルリファレンスファイル | カスタムモードでは使用不可(image_urls、video_urls、audio_urls、midi_urlsは省略) | image_urls(5ファイル以下、各10 MB以下)、video_urls(1ファイル、100 MB以下、241s以下)、audio_urls(6s–30 min、500 MB以下)、midi_urls(1ファイル、256 KB以下、MThdヘッダー、V6_WILD) |
| 再生時間とボーカルの制御 | duration(V6/V6_MINI/V6_WILDで10–360s)、vocal_gender(希望するボーカルの性別:'m'または'f')、style_weight(0–1)、weirdness_constraint(0–1)、audio_weight(0–1、ボーカルのみ)、variety(0–4、デフォルト1) | duration、vocal_gender、style_weight、weirdness_constraint、audio_weight、varietyは送信しないでください |
| ペルソナ(V6 / V6_MINI / V6_WILD) | 任意のpersona_id + persona_model('style_persona'または'voice_persona') | persona_idを適用する場合はカスタムモードを使用 |
Kie.aiのMusic APIの連携方法
- 1
1. APIキーを作成し、無料の80クレジットでテストする
Kie.aiに登録すると、無料の80クレジット($0.06の楽曲生成リクエスト6回分に加え、歌詞生成やWAV変換のテストに十分な量)が付与されます。kie.ai/api-keyでAPIキーを作成し(必要に応じて1時間あたり・1日あたり・合計の使用上限を設定可能)、Authorization: Bearer YOUR_API_KEYを渡して認証します。 - 2
2. POST /api/v1/jobs/createTaskに音楽タスクを送信する
対象のモデルID(例:"ai-music-api/generate")、任意のcallBackUrl、および入力パラメータ(custom_mode、instrumental、model("V6"、"V6_MINI"、または"V6_WILD")、title、style、lyricsなど)を含むJSONを送信します(ローカルの参照ファイルを使う場合は、先にhttps://docs.kie.ai/file-upload-api/quickstart.mdの手順に従ってアップロードしてください)。 - 3
3. Webhookコールバックを処理するかタスクステータスをポーリングする
楽曲生成およびマッシュアップのタスクでは、callBackUrlに3つの段階で通知が届きます:text(歌詞・メタデータ)、first(ストリーミングURL付きの初期トラック準備完了)、complete(全バリエーション完了)。ハンドラー内でHMACによるWebhook署名を検証するか、GET /api/v1/jobs/recordInfo?taskId=…をポーリングしてタスク結果を取得してください。 - 4
4. ステム分離、WAV変換、MIDI、動画エクスポートを連携する
生成されたトラックのtask_idとaudio_idを、ai-music-api/separate-vocals($0.05〜$0.25)、convert-to-wav-format($0.002)、またはcreate-music-video($0.01)に渡します。無料のMIDI抽出($0)を行うには、まずステム分離を完了し、その分離のtask_id(および任意のステムaudio_id)をgenerate-midi-from-audioに渡します。最終ファイルは14日間の保持期間内に自社のバケットへ保存してください。