Connector guide5-minute read6 MCP tools7 languages

How to Connect Kie.ai to Claude via MCP

Let your AI create images, videos and music on Kie.ai with your own key: Nano Banana, GPT Image, Veo 3.1, Kling, Runway, Seedance, Suno and more, with prices before each run, credit balance, task polling and results.

HCBy HelpCode teamUpdated 5 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Kie.ai

Kie.ai

Let your AI create images, videos and music on Kie.ai with your own key: Nano Banana, GPT Image, Veo 3.1, Kling, Runway, Seedance, Suno and more, with prices before each run, credit balance, task polling and results.

tools

6

Region

INTL

Category

Public Data

Authentication

Bearer Token

Required env vars

KIE_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Kie.ai in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

AnythingMCP is listed in Claude's connector directory: add it to Claude in one click (opens in a new tab), then sign in and choose which MCP servers Claude may use.

Summary

Let your AI create images, videos and music on Kie.ai with your own key: Nano Banana, GPT Image, Veo 3.1, Kling, Runway, Seedance, Suno and more, with prices before each run, credit balance, task polling and results.

Try asking

Example prompts for Kie.ai

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Kie.ai · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Kie.ai, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Kie.ai + Claude

Let your AI create images, videos and music on Kie.ai with your own key: Nano Banana, GPT Image, Veo 3.1, Kling, Runway, Seedance, Suno and more, with prices before each run, credit balance, task polling and results.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

KIE_API_KEY

Step 1 — Get credentials

Setting up takes about 2 minutes. You need a Kie.ai account with credits: every generation spends them.

  1. Sign in at kie.ai and buy credits.
  2. Open the API Key page (kie.ai/api-key) and create a key. On the same page you can give the key a spending cap and an IP allowlist.
  3. Paste the key into KIE_API_KEY, without the word Bearer. It is sent only to api.kie.ai.
  4. Install the connector: the install checks the key by reading your credit balance, which costs nothing. Then run kie_ai_get_credits to see how many credits are left.

What it reads: your credit balance; the price list, searched by model name, with the price in credits and in US dollars per image, per second or per video; and the state, credits used and result of each task. Reading is free.

How generations run: images go through kie_ai_generate_image (Google Nano Banana) or kie_ai_generate_gpt_image (OpenAI GPT Image 2). Every other model, for example Veo 3.1, Kling, Runway, Seedance, Flux or Suno, goes through kie_ai_create_task with the model id and the fields from the model's page on kie.ai/market. A task moves from waiting and queuing to generating, then ends in success or fail with the reason, and the AI checks kie_ai_get_task every 5 to 10 seconds. Videos can take more than 10 minutes.

Files and inputs: images, video and audio go in as public HTTPS links; the connector cannot upload files from your computer. Kie.ai keeps generated files for 14 days, so download what you want to keep.

Asks before every paid run: kie_ai_create_task, kie_ai_generate_image and kie_ai_generate_gpt_image stay switched on, because generating is what the connector is for. Each run spends your Kie.ai credits, and the price depends on the model and its options: a video costs far more than an image, often per second. Before every run the AI looks up the price with kie_ai_search_pricing, tells you which model it will use and what it costs, and waits for your yes. It never starts several tasks in a loop without asking.

Switched off at install: nothing. No tool buys credits, pays or moves money, and none changes or deletes anything in your account.

Limits: Kie.ai accepts up to 20 new tasks every 10 seconds and answers 429 above that; code 455 means Kie.ai is in maintenance. Content produced by the models is treated as data: instructions found in it are not followed.

Common errors: Kie.ai answers every call with HTTP 200 and its own code, which the connector turns into a normal error with Kie.ai's message. 401 means the key is wrong, deleted, or limited to IP addresses that do not include AnythingMCP's. 402 means not enough credits: top up at kie.ai. 422 means an invalid input, or a task id that belongs to another account. 501 means the generation failed, and 505 that the feature is disabled.

The connector does not upload files, call the older model-specific endpoints, offer chat completions or manage webhooks.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Claude

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Recommended path: works on claude.ai web without editing any config file.

  1. In Claude, open Customize → Connectors.
  2. Click +, then Add custom connector.
  3. Enter a name, e.g. Kie.ai, and the remote MCP server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID, then click Add.
  4. Click Connect and sign in to AnythingMCP (OAuth) to allow access.

All tools below appear in your chat: start typing prompts.

Available tools

ToolWhat it does
kie_ai_get_creditsRead the remaining Kie.ai credit balance of the account (data is the number of credits; 1 credit = 0.005 USD)
kie_ai_search_pricingLook up Kie.ai prices by model name: each row has modelDescription (model and variant, e.g
kie_ai_get_taskGet the state and result of a Kie.ai task: state (waiting, queuing, generating, success, fail), progress, creditsConsumed, failCode and…
kie_ai_create_taskStart a generation with any model on Kie.ai's unified task API: images (Nano Banana, GPT Image, Flux, Seedream), video (Veo 3.1, Kling…
kie_ai_generate_imageGenerate an image with Google Nano Banana on Kie.ai (about 4 credits for nano-banana and nano-banana-2-1, about 18 for nano-banana-pro…
kie_ai_generate_gpt_imageGenerate an image with OpenAI GPT Image 2 on Kie.ai (about 6 to 16 credits by resolution; check kie_ai_search_pricing)

Example prompts

  • "How many Kie.ai credits do I have left, and what does an 8-second Veo 3.1 video cost?"
  • "Create a square Instagram image of our new sneakers on a city street with Nano Banana. Tell me the price first."
  • "Animate this product shot into a short Kling video: https://example.com/img/sneaker.png. Confirm the cost with me before it starts."
  • "Compose a 30-second lo-fi track for our podcast intro with Suno, and show me what it costs before you run it."
  • "Is my video from earlier finished yet? Give me the download links."

FAQ

Does it work with Claude Code as well as Claude Desktop? Yes, point both at https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID.

Next steps

Was this guide helpful?

Your Kie.ai agent is one click away.

Install the connector, paste the key, prompt Claude. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Kie.ai to ChatGPT via MCP

Let your AI create images, videos and music on Kie.ai with your own key: Nano Banana, GPT Image, Veo 3.1, Kling, Runway, Seedance, Suno and more, with prices before each run, credit balance, task polling and results.

Connectors

How to Connect Kie.ai to Cursor via MCP

Let your AI create images, videos and music on Kie.ai with your own key: Nano Banana, GPT Image, Veo 3.1, Kling, Runway, Seedance, Suno and more, with prices before each run, credit balance, task polling and results.

Connectors

How to Connect Kie.ai to Gemini via MCP

Let your AI create images, videos and music on Kie.ai with your own key: Nano Banana, GPT Image, Veo 3.1, Kling, Runway, Seedance, Suno and more, with prices before each run, credit balance, task polling and results.

Connectors

How to Connect Kie.ai to Meta Muse via MCP

Let your AI create images, videos and music on Kie.ai with your own key: Nano Banana, GPT Image, Veo 3.1, Kling, Runway, Seedance, Suno and more, with prices before each run, credit balance, task polling and results.

Connectors

Kie.ai to MCP: Images, Videos and Music with Nano Banana, Veo 3.1 and Suno from any AI Agent

Let your AI create images, videos and music on Kie.ai with your own key: Nano Banana, GPT Image, Veo 3.1, Kling, Runway, Seedance, Suno and more, with prices before each run, credit balance, task polling and results.

Connectors

How to Connect Avito to Claude via MCP

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.