Skip to content

MCP server for agents

VelvetAPI runs a remote Model Context Protocol server, so AI agents and coding assistants can browse the models, price requests and generate images and video for you.

  • URL: https://api.velvetapi.dev/mcp (Streamable HTTP, stateless)
  • Auth: your API key as Authorization: Bearer vk_...

Tasks created through MCP are ordinary tasks: they’re billed to the key’s account, screened like any other, and appear in the console.

Most clients take a JSON configuration like this (Cursor’s .cursor/mcp.json, for example):

{
"mcpServers": {
"velvetapi": {
"url": "https://api.velvetapi.dev/mcp",
"headers": { "Authorization": "Bearer vk_your_key" }
}
}
}

Use a key with a monthly spending cap, and limit it to the models the agent should use: both are set per key in the console.

Tool What it does
list_models Lists the models with their tasks, prices and content labels. Filter by modality or task.
get_model One model’s input schema, examples and price.
quote Prices a request without running it.
create_task Creates a task and waits for it (unless wait is false). Needs max_price_usd; see below.
get_task A task’s state, outputs and price.
upload_image Imports an image from an HTTPS URL for reference_images, screened first.
get_balance The account’s balance in US dollars.

create_task spends money, so it requires max_price_usd: the most the user agreed to pay. If the quote is higher, or max_price_usd is missing, the tool refuses with price_not_confirmed and the price, and nothing is charged. Agents should call quote, tell the user the price and pass it on.

create_task waits up to about 100 seconds and returns the task as it is then. Images are usually done well within that. Video takes minutes, so a video task usually comes back queued or running: call get_task every few seconds until it finishes.