# kie-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/elibarnett/kie-mcp  
**GitHub Stars:** 10  
**npm Downloads (last month):** 4383  
**Views:** 11  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/kie-mcp

## Description
MCP for kie.ai: 45+ image, 70+ video, 20+ audio models with model intelligence

## Tools
Capabilities this server exposes over MCP:

- **generate_image** — Generate an image using kie.ai. TIP: for architecture/game-art/advertising/product-UI jobs, call profile_brief first — it returns the vertical's intake questions, routing, and prompt formulas. (60+ models). Downloads to kie/assets/raw/. MODEL GUIDE: Architecture/blueprints→gpt4o or nano-banana-2 (reasoning, 8cr). Cheap fast all-rounder→nano-banana-2-1 (4cr, ~13s, NEW Oct 2026; NB2 doubled to 8cr). Game art/3D→seedream/4.5 or 5-lite. Character sheets→ideogram/character. Text/logos→ideogram/v3 (best text). Photo editing→flux-kontext-pro. Newest OpenAI→gpt-image-2-6/flare-* (NEW Nov 2026, ~6cr @1K, 16 ratios incl. 3:1) / sunburst-* (premium) / economy-* (5cr flat @1K, can return animated GIF); previous gen gpt-image-2-5/flare-* (6cr @1K, fast default) or gpt-image-2-5/sunburst-* (premium polish); both 1K-4K + transparent background (NEW). Split any image into layers→seedream_layer_decompose tool (7cr/layer, NEW). Generate-then-refine by named region→grok-imagine-image-2-0/text-to-image (4cr, #2 Arena T2I+edit) then grok_segment_map (free) + grok_image_edit (4cr; also edits ANY uploaded image via image_urls mode). Anime→qwen (3cr cheapest); qwen2-1/* (4cr, NEW) adds transparent BG, mask inpainting, 10-ref compositing. Fast drafts→nano-banana-2-lite (4cr, ~4s, NEW). Upscale→recraft/crisp-upscale (0.5cr). BG removal→recraft/remove-background. Cheapest→flux-3/klein-text-to-image (1.6cr @1K, 4K up to 6.5cr, NEW) or flux-3/klein-edit-image (1.6cr, 10 free refs); z-image,qwen (3cr). Best quality→nano-banana-pro (24cr), flux-kontext-max (100cr). Use list_models filter="use-case" to explore.
- **list_models** — List all available kie.ai models with their aspect ratios and model-specific options
- **check_task** — Check the status of a kie.ai generation task by taskId
- **list_tasks** — List recent image generation tasks from this session
- **check_credits** — Check remaining kie.ai account credits
- **spend_report** — Where did the credits go? Totals kie.ai spend from this server's task history (kie/assets/task-history.jsonl under the project root) over the last N days, grouped by model or day. Uses the ACTUAL credits kie charged when known, looks up missing ones from kie (refresh), and falls back to published prices (marked "est."). Failed tasks are listed separately (kie normally refunds them).
- **download_result** — Download a completed task result to kie/assets/raw/
- **list_raw_assets** — List all files in kie/assets/raw/ waiting to be processed
- **generate_video** — Generate a video using kie.ai (85+ models). Downloads to kie/assets/raw/. MODEL GUIDE: Best cinematic→veo-3/text-to-video (50cr/s, audio). Fast+cheap→grok-imagine-video-1-5-preview (1.6-3cr/s, audio, NEW), wan/flash-image-to-video (6-8cr/s measured; alias of wan/2-6-flash). Budget cinematic→hailuo-standard (4cr/s). First→last-frame or anything-from-anything refs→gemini-omni/flash-1-1 (NEW, est. ~63cr per 4s clip). Budget multimodal refs→bytedance/seedance-2-mini (9.5cr/s @480p). 30s single takes→bytedance/seedance-2-5 (now up to 1080p; set model_options.draft=true for a 28cr/s 480p preview, then upgrade the approved take with bytedance/seedance-2-5-draft). Cheap or 4K image-to-video with audio→vidu-q4/image-to-video (7.2cr/s @540p … 62.4 @4K, NEW); 15-image refs→vidu-q4/reference-to-video. Budget all-rounder w/ audio+templates+extend→pixverse-v6 family (4-9.6cr/s, NEW; I2V is its strength; transition=first/last-frame morph). Higher-quality PixVerse without templates→pixverse-v6-max T2V/I2V (NEW, 8.8cr/s @720p). Multilingual lip-synced dialogue→happyhorse-1-1 T2V/I2V/R2V (NEW). 2K + stereo audio→minimax-h3 (8cr/s @768P, price halved Sept 2026). Per-shot scripted multi-shot→kling-3-omni (14cr/s @720p; transformation=restyle existing video). Long consistent-character clips (3-30s) with named @subjects, voices and reference videos→kling-4/reference-to-video (NEW, 28.5cr/s @720p); first→keyframes→last animation→kling-4/keyframe-to-video (NEW). Same at 720p for 40% less→kling-4-flash/reference-to-video (17cr/s, 3-20s, NEW Nov 2026); kling-4-flash/image-to-video from a first frame. Next-gen Wan draft→wan/3-0-video (8cr/s @480P, NEW). Fast Kling→kling/v3-turbo (18cr/s, audio, NEW). Image-to-video→veo-3/image-to-video (include a sound cue like "SFX: room tone" — Veo I2V intermittently fails its audio pass without one; images must be served with their real Content-Type, upload via upload_file), kling/image-to-video. Avatar/talking head→omnihuman-2-0 (NEW Oct 2026: 14cr/s, up to 5-min audio, half of 1.5's price), omnihuman-1-5 (multi-person masks, 1080p), kling/ai-avatar-pro, infinitalk/from-audio. Re-dub existing footage→volcengine/video-to-video-lip-sync (8cr/s, NEW). Motion control→kling/motion-control, wan/animate-move. Extend video→use veo_extend or runway_extend tools. NOTE: Sora 2 family removed (OpenAI API sunset Sept 2026). Use list_models filter="use-case" to explore.
- **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/.
- **generate_sfx** — Generate a sound effect from text via Suno V5 (kie.ai removed the ElevenLabs sound-effect model). Great for game sounds: UI clicks, magic spells, item pickups, explosions. For loop/BPM/key control use generate_sounds instead. Downloads to kie/assets/raw/.
- **generate_gemini_tts** — NEW — Google Gemini native TTS via kie.ai: style-directed speech from natural-language direction, 30 named voices, up to 2 speakers, inline tone tags like [whispers]/[laughs] (flash model). ~4.2 credits per MINUTE of audio — cheaper than all ElevenLabs tiers. Simple mode: pass text (+ optional voice_name). Dialogue mode: pass speakers + dialogue_turns. model=flash is most expressive (keep expected audio <60s — quality degrades on long takes); model=pro is more stable for multi-minute narration. Downloads to kie/assets/raw/.
- **generate_tts** — Generate speech from text using ElevenLabs via kie.ai. Supports Turbo 2.5 (fast) and Multilingual V2 (high quality). Downloads to kie/assets/raw/.
- **generate_dialogue** — Generate multi-speaker dialogue using ElevenLabs Text-to-Dialogue V3 via kie.ai. Great for conversations between characters. Downloads to kie/assets/raw/.
- **audio_isolation** — Isolate vocals or audio from background noise using ElevenLabs via kie.ai. Input an audio URL, get clean isolated audio back.
- **extend_music** — Extend/continue an existing Suno track from a specific point. Requires audioId from a previous generate_music task.
- **cover_audio** — Create an AI cover from uploaded audio — custom vocals, style, and instrumentation via Suno.
- **add_instrumental** — Add instrumental backing to uploaded vocal audio via Suno.
- **add_vocals** — Add AI vocals to uploaded instrumental audio via Suno.
- **replace_section** — Replace a time range in a Suno track with new AI-generated content.
- **generate_lyrics** — Generate song lyrics from a prompt using Suno AI (max 200 characters). Returns text, no file download.
- **convert_to_wav** — Convert a Suno track to lossless WAV format. Downloads to kie/assets/raw/.
- **separate_vocals** — Separate vocals from instrumentals, or split into individual stems. Downloads to kie/assets/raw/.
- **generate_midi** — Export a Suno track to MIDI notation. Downloads .mid file to kie/assets/raw/.
- **create_music_video** — Generate an MP4 music video visualization from a Suno track. Downloads to kie/assets/raw/.
- **generate_sounds** — Generate loopable sound effects with BPM, key, and loop control via Suno. Downloads to kie/assets/raw/.
- **generate_persona** — NEW — Create a Suno Persona (reusable music character) from an existing Suno track. Requires taskId from V3.6+ generation.
- **generate_mashup** — NEW — Mashup up to 2 Suno tracks into one new track. Provide audioIds from previous generations.
- **boost_style** — NEW — Convert concise style input (e.g. "Pop, Mysterious") into enhanced style description for music generation.
- **prepare_voice_clone** — EXPERIMENTAL (#20) — STEP 1 of Suno custom-voice cloning (FREE). Submit a clean vocal sample; polls to `wait_validating`, after which kie sends a verification phrase to your KIE_CALLBACK_URL for the voice owner to read aloud (then use create_voice_clone). ⚠️ Only clone a voice you OWN or have explicit permission to use. The completion step is not verified end-to-end and needs a real callback URL.
- **create_voice_clone** — EXPERIMENTAL (#20) — STEP 2 — after the voice owner records the verification phrase from prepare_voice_clone, submit that recording to finish the voice. On success returns a voiceId usable in generate_music. Unverified end-to-end.
- **regenerate_voice_clone** — EXPERIMENTAL (#20) — retry a failed/incomplete custom-voice task by its task_id.
- **get_timestamped_lyrics** — NEW — Get word-level timestamped lyrics from a Suno track. Useful for karaoke, captioning, or sync.
- **generate_cover_art** — NEW — Generate album cover art image for an existing Suno music track. One call per taskId only.
- **create_omni_voice** — NEW — Create a reusable voice character for Gemini Omni video generation. Returns kieAudioId for use in generate_video audio_ids.
- **create_omni_character** — NEW — Create a reusable visual character for Gemini Omni video generation. Combines image + optional voice. Returns characterId.
- **upload_extend_audio** — NEW — Extend uploaded audio (NOT a Suno track) with new AI-generated content. For Suno tracks, use extend_music instead.
- **speech_to_text** — Transcribe (or translate) audio or video speech to text. Default provider: NVIDIA Nemotron 3.5 Transcribe (NEW Nov 2026) — 0.3 credits per MINUTE of audio, up to 60 min / 200 MB, MP3/WAV/M4A/FLAC/OGG/WEBM/MP4/MOV, spoken language auto-detected, 32 languages. timestamps=true adds word timings + speaker labels (saved as a JSON file); target_language translates (to/from English). provider="elevenlabs" uses ElevenLabs Scribe (paused while it fails upstream).
- **upload_file** — Upload a file to kie.ai and get a public URL back. Image files are named by their REAL format (magic bytes), so a JPEG saved as .png is uploaded as .jpg — kie serves files with a Content-Type taken from the name, and Veo I2V rejects a mismatch. Use this to upload local images/audio/video before passing them to generation tools (image-to-image, image-to-video, reference/ingredient inputs). PREFER file_path for local files. Files expire after 3 days (kie temp storage).
- **profile_brief** — Get a vertical playbook before generating: the intake questions a professional in that domain would ask, model routing per deliverable with live costs, per-model prompt formulas, and multi-tool workflows. Call with no args to list available profiles. Covers image, video, and audio verticals (architecture, game assets, advertising, product photography, film, brand, web product, editorial, short-form social video, audio branding). Call this FIRST when the user's request belongs to a known vertical — then ask the user only the unanswered intake questions, conversationally.
- **seedream_layer_decompose** — Split ANY image into independent layers with Seedream 5.0 (billed per OUTPUT layer incl. base). tier="pro" (default): 7 cr @1K, 14 @2K, so a 3-layer split ≈ 21 cr. tier="flash" (NEW): 3.24 cr/layer at any size, so ≈ 10 cr. Works on any public image URL (upload local files with upload_file first). Describe which elements become layers in the prompt, optionally bounding them with <bbox>x1 y1 x2 y2</bbox> tags. Downloads every layer image to kie/assets/raw/.
- **grok_segment_map** — FREE (0 credits). Segment a Grok Imagine Image 2.0 generation into NAMED regions for targeted editing. Returns each region's index, semantic name (e.g. "red apple", "wooden table"), and mask PNG URL. Workflow: generate_image model="grok-imagine-image-2-0/text-to-image" → grok_segment_map (this, free) → grok_image_edit with the mask_indexs you want changed. Only works on task_ids from a Grok Image 2.0 generation.
- **grok_image_edit** — Edit an image with Grok Imagine Image 2.0 (4 credits). TWO MODES: (1) Region mode — pass task_id (a prior Grok 2.0 generation) + mask_indexs from grok_segment_map (run it first, free, pick regions by NAME): only those regions change. (2) Whole-image mode (NEW Aug 2026) — pass image_urls (ANY uploaded/external image, e.g. from upload_file) + aspect_ratio + prompt: instruction-based edit of the full image, no segmentation. Returns a new full image; result task_ids chain back into segment/edit for iterative refinement. Downloads to kie/assets/raw/.
- **veo_extend** — Extend an existing Veo 3.1 video with additional content. Requires taskId from a previous Veo generation.
- **veo_upscale_1080p** — Upscale a Veo 3.1 video to 1080p resolution. Requires taskId from a completed Veo generation.
- **veo_upscale_4k** — Upscale a Veo 3.1 video to 4K resolution. Takes 5-10 minutes. Requires taskId from completed Veo generation.
- **runway_extend** — Extend an existing Runway Aleph video with continuation content.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "kie-mcp": {
    "command": "npx",
    "args": ["-y","kie-mcp"],
    "env": {
      "KIE_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `KIE_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What kie-mcp does

kie-mcp gives an MCP client access to kie.ai's media-generation APIs. Its coverage includes more than 60 image models, more than 85 video models, and a collection of audio operations built around Suno, ElevenLabs, and Google Gemini TTS. The server handles asynchronous generation tasks and can download completed outputs into a project asset directory.

Model selection is a central part of the server. `list_models` exposes supported aspect ratios and model options, while filters can search capability tags, descriptions, and model research. The server also includes vertical profiles for areas such as architecture, game assets, advertising, product imagery, film storyboarding, social video, and audio branding. A profile brief can return intake questions, routing suggestions, costs, prompt formulas, and multi-tool workflow guidance.

## How it works

Run the server locally over stdio or start its HTTP MCP endpoint for remote clients. Each generation request is submitted to kie.ai, and task-oriented tools can check status, list recent session tasks, and retrieve completed results. File-writing operations place outputs under `kie/assets/raw/` by default, with a project-level root and per-call download directories available for generated files.

Image and video tools cover text-to-media, image or reference-based generation, editing, extension, upscaling, lip-sync, avatars, and related workflows when supported by the selected model. Audio tools can create music, sound effects, loopable sounds, speech, multi-speaker dialogue, and music videos, as well as transform existing audio through covers, stems, vocal or instrumental additions, section replacement, WAV conversion, MIDI export, and isolation.

The server tracks credit usage through account checks and task history. `spend_report` groups recorded spending by model or day and can refresh missing prices from kie.ai or mark published-price estimates. A per-call or default credit limit can prevent requests whose estimated cost exceeds the configured cap.

## Setup and configuration

Install Node.js 18 or newer, obtain a kie.ai API key, clone the project, and run `npm install`. For stdio, configure the MCP client to execute `server.mjs` with `KIE_API_KEY`; `KIE_PROJECT_ROOT` can set the location used for downloaded assets.

HTTP mode requires `KIE_MCP_AUTH_TOKEN` and listens on `127.0.0.1` by default. Clients send the token as a bearer authorization header. `KIE_MCP_PORT` changes the port, while `KIE_MCP_HOST`, `KIE_MCP_ALLOWED_HOSTS`, and `KIE_MCP_ALLOWED_ORIGINS` control binding, accepted host names, and browser origins. Remote access requires a tunnel or reverse proxy, and the token should be treated as a credential because it permits tool calls, credit spending, and media uploads.

`KIE_SUNO_API` selects between the newer Suno market API and legacy endpoints. `KIE_ELEVENLABS_ENABLED=1` re-enables the ElevenLabs tools when needed, and `KIE_MAX_CREDITS_PER_CALL` sets a default spending ceiling.

## Tools and capabilities

- Generate images, videos, music, speech, dialogue, sound effects, and Gemini-directed TTS.
- Discover models, filter by use case, inspect options, and request vertical profile briefs.
- Poll generation tasks, list session tasks, check account credits, and report historical spending.
- Download completed results and inspect files waiting in the raw asset directory.
- Extend, cover, remix, separate, convert, edit, upscale, lip-sync, and otherwise process supported media.
- Prepare experimental Suno voice-cloning workflows, including callback-based verification.

## Limitations and notes

Generation costs vary by model, resolution, duration, and operation. Failed tasks are tracked separately in spending reports because kie.ai may refund them. Experimental voice cloning requires ownership or explicit permission for the cloned voice and a real callback URL; its completion flow is not fully verified end to end.

HTTP deployments should use authentication and should not expose the service directly without appropriate network controls. Earlier unauthenticated, broadly bound HTTP behavior is identified as unsafe; upgrade before using HTTP mode. The Sora 2 family has been removed from the supported model guidance, and ElevenLabs operations may require explicit re-enabling through configuration.

_Full upstream README: https://allmcps.com/mcp/kie-mcp/readme_

