generate_music
Generate music using Suno via kie.ai. Supports V5.5 (custom style), V5 (best quality), V4.5+, V4.5, V4. Up to 8 minutes. Great for game music stems, ambient tracks, and jingles. Polls until done and downloads to kie/assets/raw/.
Instructions
Generate music using Suno via kie.ai. Supports V5.5 (custom style), V5 (best quality), V4.5+, V4.5, V4. Up to 8 minutes. Great for game music stems, ambient tracks, and jingles. Polls until done and downloads to kie/assets/raw/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Set false to submit and return immediately with the task_id (async mode) — then poll with check_task and fetch with download_result. Recommended for long generations to avoid client-side watchdog timeouts. | |
| model | No | Suno model. V5_5=custom style, V5=best quality. Default: V5 | V5 |
| style | No | Style tags (e.g. "Celtic, orchestral, upbeat, fantasy, game music") | |
| title | No | Track title (optional) | |
| prompt | Yes | Music description (e.g. "upbeat Celtic fantasy adventure, flute and drums, heroic") | |
| filename | No | Output filename. Auto-generated if omitted. | |
| max_credits | No | Refuse to submit if the estimated cost exceeds this many credits (overrides KIE_MAX_CREDITS_PER_CALL). Estimates come from published rates; kie bills the actual amount. | |
| download_dir | No | Absolute directory to save the file(s) into (created if missing). Defaults to the server's kie/assets/raw/. Must be absolute — the MCP server's working directory is not the caller's. | |
| instrumental | No | No vocals when true (recommended for game music) | |
| estimate_only | No | Return the estimated credit cost WITHOUT submitting anything. Use before expensive runs (video, 4K, 1080p upgrades, layer splits). | |
| max_wait_seconds | No | Override the blocking-mode polling budget in seconds (defaults: image 600, video 900, audio 300, speech 300). Ignored when wait=false. |