Kunavo
v0.1.0List Kunavo's AI models with live prices, generate images, video and music, and read usage.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_models List models and prices
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 `endpoint` names the tool that takes it: chat → chat, image → generate_image, image_edit → edit_image, video → generate_video, audio_music → generate_music; its `capabilities` say what it takes (a source image, several images, a mask, first and last frames). A model priced by tier lists every tier and its price under `tiers`, with the request field that picks one (`resolution` or `renderin…
| Parameter | Type | Description |
|---|---|---|
endpoint | string | Only models of this kind, e.g. image or video. |
search | string | Only models whose id, name or provider contains this text. |
chat Ask a text model
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.
| Parameter | Type | Description |
|---|---|---|
model * | string | A model id from list_models with endpoint chat. |
prompt * | string | The user message. |
max_tokens | integer | Optional cap on the answer's tokens. On a reasoning model the reasoning counts against it, so a low cap can leave no room for the answer. |
system | string | Optional system prompt. |
timeout_seconds | integer | How long to wait for the answer (default 50). The tool call is over at most 5 seconds after that, the reading of the model list included. MCP clients usually end a tool call after 60 seconds; raise th… |
generate_image Generate an image
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.
| Parameter | Type | Description |
|---|---|---|
model * | string | A model id from list_models with endpoint image. |
prompt * | string | What the image should show. |
idempotency_key | string | Any string of your own, 128 characters at most. Calling again with the same one and the same arguments returns the task that call started instead of starting, and charging, another. A key stands for o… |
rendering_speed | string | Render-speed tier on a model priced by it: one of the ids list_models gives under `tiers`, e.g. "TURBO". It sets the price, like resolution. |
resolution | string | Resolution tier on a model priced by resolution: one of the ids list_models gives under `tiers`, e.g. "2K". It sets the price. A resolution for a model priced by render speed is refused before anythin… |
size | string | Shape of the image: a size such as "1536x1024" or a ratio such as "16:9", which the API turns into a shape the model takes; square when left out. |
wait_seconds | integer | How long to wait for the result before returning, in seconds (0 to 45, default 40). An unfinished task is returned with its id. |
edit_image Edit an image
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.
| Parameter | Type | Description |
|---|---|---|
images * | array | The source image first, then any further reference images. More than one needs a model with the multi-image-input capability, and no more than its max_input_images in list_models. Each: An https:// UR… |
model * | string | A model id from list_models with endpoint image_edit. |
prompt * | string | What to change, or what to make from the images. |
idempotency_key | string | Any string of your own, 128 characters at most. Calling again with the same one and the same arguments returns the task that call started instead of starting, and charging, another. A key stands for o… |
mask | string | Optional mask: an image of the source's dimensions that marks the part to change. Needs a model with the inpainting capability, and such a model may refuse an edit that brings none. An https:// URL, o… |
rendering_speed | string | Render-speed tier on a model priced by it: one of the ids list_models gives under `tiers`, e.g. "TURBO". It sets the price, like resolution. |
resolution | string | Resolution tier on a model priced by resolution: one of the ids list_models gives under `tiers`, e.g. "2K". It sets the price. A resolution for a model priced by render speed is refused before anythin… |
size | string | Shape of the image: a size such as "1536x1024" or a ratio such as "16:9", which the API turns into a shape the model takes; square when left out. An edit model that keeps its source's shape does not r… |
wait_seconds | integer | How long to wait for the result before returning, in seconds (0 to 45, default 40). An unfinished task is returned with its id. |
generate_video Start a video
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.
| Parameter | Type | Description |
|---|---|---|
model * | string | A model id from list_models with endpoint video. |
prompt * | string | Description of the shot. |
aspect_ratio | string | Shape of the clip, e.g. "16:9" or "9:16". |
duration | integer | Clip length in whole seconds, on a model priced per second: these are the seconds charged, and a length outside the model's range (`duration_seconds` in list_models) is refused. When left out, the mod… |
idempotency_key | string | Any string of your own, 128 characters at most. Calling again with the same one and the same arguments returns the task that call started instead of starting, and charging, another. A key stands for o… |
image_mode | string | How the images are used. "frame" (default): one image is the first frame, two are the first and last frame. "reference": style or subject references that are not shown as frames; how many a model take… |
images | array | Optional source images. One image as the first frame needs a model with the image-to-video capability; two (first and last frame) need first-last-frame; references need reference-image, and no more th… |
resolution | string | Resolution tier: one of the ids list_models gives under `tiers` for the model, e.g. "720p" or "1080p". It sets the price. A value that is none of the model's tiers is refused by the API with a 400 tha… |
wait_seconds | integer | How long to wait for the result before returning, in seconds (0 to 45, default 0). An unfinished task is returned with its id. |
generate_music Start a song
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.
| Parameter | Type | Description |
|---|---|---|
model * | string | A model id from list_models with endpoint audio_music. |
prompt * | string | A description of the track. With custom_mode it is the lyrics instead, and the arrangement comes from style. |
custom_mode | boolean | Treat prompt as lyrics and take the arrangement from style. |
idempotency_key | string | Any string of your own, 128 characters at most. Calling again with the same one and the same arguments returns the task that call started instead of starting, and charging, another. A key stands for o… |
instrumental | boolean | No vocals. |
style | string | Style or genre, e.g. "lofi, jazz, chill". |
title | string | Track title. |
wait_seconds | integer | How long to wait for the result before returning, in seconds (0 to 45, default 0). An unfinished task is returned with its id. |
get_task Check a generation task
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The task id a generate tool returned. |
wait_seconds | integer | How long to wait for the result before returning, in seconds (0 to 45, default 20). An unfinished task is returned with its id. |
get_balance Read the balance
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, an…
get_usage Read usage and spend
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.
| Parameter | Type | Description |
|---|---|---|
bucket | string | Row size. A range may span 90 days by day, 7 days by hour. |
by_model | boolean | One row per model in each day or hour. |
end_date | string | Last UTC day, YYYY-MM-DD. Default: today. |
start_date | string | First UTC day, YYYY-MM-DD. Default: 29 days before end_date by day, or the day before end_date by hour. |