Step 1
Get the Pro or Studio plan
MCP access is included in the Pro and Studio plans. The connection itself costs nothing extra: each job uses your normal credits at exactly the website's prices.
Pro
$79 a month · 3,200 credits every month
Studio
$199 a month · 9,000 credits every month
Already on Pro or Studio? Go straight to step 2. On another plan, upgrade in Billing; your credits carry over.
Compare plansStep 2
Create a personal token
Open Settings → Developers and click Create token.
- Give it a name you'll recognise, for example “Claude Desktop” or “Production server”.
- Choose when it expires: after 30, 90 or 365 days, or never.
- Optional: set a monthly credit limit, so this app can never spend more than you allow.
- Copy the token right away. It starts with
kv_live_and is shown only once.
Treat the token like a password: never put it in a website, a mobile app or a public repository. If it leaks, revoke it in Settings → Developers; it stops working immediately.
Step 3
Connect your AI app
Add Kisvia as a remote MCP server in your app. Replace kv_live_YOUR_TOKEN with your token.
claude mcp add --transport http kisvia https://kisvia.com/mcp \
--header "Authorization: Bearer kv_live_YOUR_TOKEN"
# check it: claude mcp listRestart the app, then ask in plain words. The assistant checks the price before it spends credits and tells you when your credits run low.
“Make a 9:16 picture of our new caramel latte, turn it into a 6-second video and tell me what it costs first.”
Step 4
Call Kisvia from your code
Use the official MCP SDK for your language. Each example reads your credits, asks for the price with a dry run, starts a job and waits for the result. All of them are tested against the live server.
// Kisvia MCP from Node.js 18+: npm install @modelcontextprotocol/sdk
// Run: KISVIA_TOKEN=kv_live_... node kisvia-example.mjs
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
const KISVIA_MCP_URL = process.env.KISVIA_MCP_URL ?? 'https://kisvia.com/mcp';
const token = process.env.KISVIA_TOKEN;
if (!token) throw new Error('Set KISVIA_TOKEN (Settings → Developers on kisvia.com).');
const client = new Client({ name: 'my-kisvia-app', version: '1.0.0' });
await client.connect(
new StreamableHTTPClientTransport(new URL(KISVIA_MCP_URL), {
requestInit: { headers: { Authorization: `Bearer ${token}` } },
}),
);
// Calls a tool and returns its JSON result; a refused call (e.g. not enough credits) throws its message.
async function call(name, args = {}) {
const result = await client.callTool({ name, arguments: args });
if (result.isError) throw new Error(result.content[0].text);
if (result.structuredContent?.credits?.warning) console.warn('⚠', result.structuredContent.credits.warning);
return result.structuredContent;
}
// 1. Credits and plan
const account = await call('get_account');
console.log(`Plan ${account.plan}, ${account.credits.credits_left} credits left`);
// 2. Price first (nothing is charged with dry_run)
const request = { prompt: 'A cozy coffee shop at sunrise, steam rising from a latte', shape: '9:16' };
const quote = await call('generate_image', { ...request, dry_run: true });
console.log(`This picture costs ${quote.credits_needed} credits`);
// 3. Start the job, then wait for it (each wait_for_job call waits up to 50 seconds)
const job = await call('generate_image', request);
let result = job;
while (result.status === 'queued' || result.status === 'running') {
result = await call('wait_for_job', { job_id: job.job_id, timeout_seconds: 45 });
}
if (result.status === 'failed') throw new Error(`Job failed: ${result.error} (credits were given back)`);
console.log('Picture:', result.url, '| asset_id:', result.asset_id);
await client.close();
Set your token in the KISVIA_TOKEN environment variable; never write it into the code.
Step 5
Credits, warnings and limits
- Prices. Every tool charges exactly what the same action costs on the website. Add
dry_run: trueto any paid tool to see the price first; nothing is charged. - Charging. Credits are taken when a job starts and given back automatically if it fails.
Warning before your credits run out
When your balance drops below 10% of your plan's monthly credits (at least 100), every answer contains a warning. AI apps are told to pass it on to you, so you can top up before work stops.
{
"job_id": "cmvpb8k75000dnu01jgasq0l4",
"status": "queued",
"credits_charged": 28,
"credits": {
"credits_left": 240,
"low_credits": true,
"warning": "Low credits: only 240 left. Work stops when they run out. Tell the user they can top up at https://kisvia.com/en/dashboard/billing."
}
}When there aren't enough credits
A paid request the balance can't cover is refused before anything starts. Nothing is charged, and the message says how many credits are needed and where to top up.
{
"isError": true,
"content": [{ "type": "text",
"text": "Not enough credits: this needs 28, the account has 10. Nothing was started or charged. The user can top up at https://kisvia.com/en/dashboard/billing." }]
}Limits
- 120 requests and 10 new jobs a minute per token.
- Optional monthly credit limit per token (Settings → Developers).
- Long jobs return a job_id; wait_for_job waits up to 50 seconds per call.
- Results stay in your library for 30 days and appear on the “Made with MCP” canvas.
Tools
Every paid tool accepts dry_run. Jobs run in the background: they return a job_id, and wait_for_job or get_job give you the result.
| Tool | What it does | Cost |
|---|---|---|
| get_account | Plan, credits left (with low-credit warning) and what this token may still spend this month. | Free |
| list_models | Video models with lengths and prices, picture models, shapes and audio kinds. | Free |
| generate_image | A picture from a description, in 9:16, 1:1, 4:5 or 16:9. | By model |
| generate_video | A video clip from a description, optionally starting from one of your pictures. | By model |
| generate_audio | A voiceover from text, music from a description, or a sound effect. | By model |
| list_edit_tools | The 25 editing tools with their options and prices. | Free |
| edit_media | Up to 8 edits in a row on a picture, video or audio file: reframe, captions, trim, remove background, upscale and more. | By tool |
| make_shorts | Cuts the best moments of a long video into captioned vertical clips. | By length |
| import_file | Copies a picture, video or audio file from a public URL into your library. | Free |
| get_job | Status of a job: queued (place in line), running, done (URL) or failed (credits given back). | Free |
| wait_for_job | Waits up to 50 seconds for a job and returns its status; call again until done. | Free |
| list_assets | Your files in the Kisvia library, newest first. | Free |
Error messages
| Message | What to do |
|---|---|
| Missing, unknown or expired token (401) | Check the Authorization header, or create a new token in Settings → Developers. |
| MCP access is included in the Pro and Studio plans (403) | Upgrade to Pro or Studio. Tokens stop working after a downgrade and work again after upgrading. |
| Not enough credits | Top up in Billing. Nothing was charged and nothing was started. |
| This token's monthly limit is reached | Raise or remove the limit in Settings → Developers, or wait until next month. |
| Too many requests (429) | Wait a minute: at most 120 requests and 10 new jobs a minute per token. |
| Job failed | The credits are given back automatically. Try another prompt or model. |
Questions
What is MCP?+
The Model Context Protocol is an open standard that lets AI apps use outside tools. Kisvia's server gives them the same video, picture and audio tools as the website.
Which apps work with it?+
Any MCP client that supports remote (Streamable HTTP) servers with an Authorization header: Claude Code, Claude Desktop (through mcp-remote), Cursor, VS Code, and agents built with the official SDKs.
Where do my results go?+
Into your Kisvia library for 30 days and onto a canvas called “Made with MCP”, so you can keep editing them on the website.
What happens if I change my plan?+
On Pro or Studio your tokens work. After a downgrade they stop at once, and they work again when you upgrade back.
Is my token stored safely?+
Kisvia stores only a fingerprint (SHA-256 hash) of each token, never the token itself, so even Kisvia can't read it back.
Ready to connect?
Create a token and connect your first app in about two minutes.