Kunavo MCP server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | The port to serve Streamable HTTP on. Default port 3920, or $PORT. | 3920 |
| KUNAVO_API_KEY | Yes | Your API key (sk-kn-…). Used on stdio. | |
| KUNAVO_BASE_URL | No | The API's base URL. Default https://api.kunavo.com/v1. | https://api.kunavo.com/v1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Kunavo is an AI API gateway: text models and image, video and music models from several providers, billed per use from one prepaid balance.
Call list_models first. It is the live catalog with listed prices in USD; pass a model's id as model, to the tool its endpoint names (chat → chat, image → generate_image, image_edit → edit_image, video → generate_video, audio_music → generate_music). Do not guess model ids. A model priced by tier lists every tier with its price under tiers: send one of those ids in the field tiers.parameter names. A video model priced per second lists the clip lengths it takes under duration_seconds.
Every tool except list_models, get_balance, get_task and get_usage spends the user's balance. Say what a request costs at the listed price before you send an expensive one (video is the dearest), and call get_balance to see that it fits. The amount actually charged is what get_usage reports afterwards; it can differ from the listed price.
Media is generated as a task. A tool returns either the finished result or a task id with a status; poll an unfinished task with get_task, a few seconds apart, until it is completed or failed. Do not submit the request again while its task is still running: a second submit is a second charge.
If a tool that makes an image or starts a video or a song fails without a clear refusal, repeat it with the same arguments and the idempotency_key its answer gives: the API then returns the task it already made instead of making another.
get_balance says what this key can spend right now: the account's wallet, what its running tasks hold, what is available, and what is left under a monthly limit. A request whose estimate is more than what is available is refused (402); with auto-recharge on, the wallet may first be refilled from the saved payment method, but only when its balance is under the threshold the account's owner set. One whose estimate is more than what is left under a monthly limit is refused too, as the API counts it: near a limit a request under what is left can be refused, or one over it admitted by as much as was charged in the last minute. A refusal for a monthly limit says in its message which limit it was; get_balance shows what is left under each. get_usage reports what this API key has spent.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_modelsA | List the models this Kunavo API key can call right now, with their listed prices in USD. Read from the API (reused for a minute), which leaves out any model that is disabled or paused. Each model's |
| chatA | Send a prompt to a text model on Kunavo (the models whose endpoint is chat in list_models) and return its answer. Spends the balance: the call is charged per token (the model's listed rates are in list_models). The answer is returned whole, not streamed, so a long one takes a while. |
| generate_imageA | Generate an image from a text prompt with a Kunavo image model (endpoint image in list_models). Spends the balance: one image is charged (the listed price is in list_models, and a higher resolution costs more). What was charged is what get_usage reports. Returns the image's URL when it is ready within wait_seconds, otherwise a task id to follow with get_task. Sending it twice makes and charges two images, unless the second call carries the first one's idempotency_key. |
| edit_imageA | Change an existing image, or make a new one from reference images, with a Kunavo image-edit model (endpoint image_edit in list_models). Spends the balance: one image is charged. What was charged is what get_usage reports. Returns the result's URL when it is ready within wait_seconds, otherwise a task id to follow with get_task. Sending it twice makes and charges two images, unless the second call carries the first one's idempotency_key. |
| generate_videoA | Start generating a video with a Kunavo video model (endpoint video in list_models), from a prompt and optionally from images. Spends the balance, and video is the dearest thing here: a model is priced per video or per second of video (its listed price is in list_models), and a higher resolution costs more. What was charged is what get_usage reports. A clip takes from half a minute to several minutes, so this returns a task id; follow it with get_task. Starting it twice makes and charges two videos, unless the second call carries the first one's idempotency_key. |
| generate_musicA | Start generating music with a Kunavo music model (endpoint audio_music in list_models). Spends the balance: one request is charged (its listed price is in list_models) and makes two tracks. What was charged is what get_usage reports. A song takes one to three minutes, so this returns a task id; follow it with get_task. Starting it twice makes and charges two requests, unless the second call carries the first one's idempotency_key. |
| get_taskA | Read the state of an image, video or music task by its id (img_…, vid_… or msc_…): queued, in_progress, completed with the result URLs, or failed with the reason. Waits up to wait_seconds for it to finish. Free to call. A task belongs to the account that started it and can be read for at least 30 days. |
| get_balanceA | What this Kunavo API key can spend right now: the account's wallet, what its running image, video and music tasks hold, what is available for a new request, the monthly limit on this key and the monthly cap on the account when there is one (each with what is left), and whether auto-recharge is on. A request is refused (402) when its estimate is more than what is available (auto-recharge refills the wallet first only when its balance is under the owner's threshold) or more than what is left under a monthly limit (near the limit, on the API's own count): call this before an expensive request, and after a 402 for a monthly limit to see what is left under each. Free to call. |
| get_usageA | What this Kunavo API key has used and been charged: successful requests, errors, tokens and cost in USD, per UTC day or hour, optionally per model. It covers this key only, not the account's other keys, and it is not the balance: get_balance is. Free to call. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| choose_model | Recommend the Kunavo model for a task, with prices from the live catalog. |
| create_video | Make a video on Kunavo: choose a model, state its listed price, start the task and wait for the clip. |
| spend_report | Summarise what this Kunavo API key has used and been charged. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| models | Every model the API key can call right now, with listed prices in USD (every tier's, on a model priced by tier) and the clip lengths of a video model priced per second, as JSON. The same data as the list_models tool. |
TDQS
Scored across 9 tools
Each tool maps to a distinct resource and action: generation per modality (generate_image, edit_image, generate_video, generate_music, chat), task polling (get_task), and account introspection (get_balance, get_usage, list_models). The descriptions explicitly separate the easily-confused pairs, such as generate_image vs edit_image (text prompt vs source/reference images) and get_balance (spendable) vs get_usage (charged history).
Eight of nine tools follow a clean verb_noun pattern (generate_image, edit_image, generate_video, generate_music, get_task, get_balance, get_usage, list_models). The single outlier is `chat`, which is a bare verb with no object, a minor deviation from an otherwise uniform convention.
Nine tools is well within the ideal range and each earns its place: five modality-specific generation tools, one shared task poller, and three free read-only introspection tools. Nothing appears redundant or padded for the scope of a media-generation API.
The surface covers the full lifecycle: discover models and prices, check budget, submit generation, and poll for results or failures. The notable gap is task management — there is no cancel/delete task tool despite long-running, charged video and music jobs, and no way to list past tasks or results beyond get_task by id, though agents can work around this with the ids they hold.