What the MCP server costs, and testing it in the Sandbox

Coding with AIMCP Server·· 7 views· 3 min read

The MCP server has no price of its own. You pay for what the tools use of the AI API, at the same prices, with AI credits or, in chat, with Coding Plan points. With a sandbox_ key, you can test everything without spending anything.

What each tool costs

Tool Cost
list_models, get_model, get_generation, get_balance Nothing.
generate_image, generate_video, generate_audio Credits, at the model price in list_models: per image, per second of video or per generation.
chat The tokens, at the model price. With a Coding Plan, the plan models spend points instead of credits.
web_search 0.5 credits per search. A search that fails costs nothing.

How a generation is charged

We reserve the credits on the request, charge the real cost at the end and return the rest. A generation that fails costs nothing. If your credits do not cover the reservation, the tool returns an error and nothing is charged. The generation keeps running on the server even if the agent stops waiting, and it is charged when it finishes.

Check before you spend

Before a long video or many images, ask the agent for the price and the balance, for example: "How much does each second of video cost and how many credits do I have left?". Each tool call shows up in the history of All in One AI and counts towards the requests per minute limit of the key. With your account, through OAuth, the limit counts for the whole account.

Testing in the Sandbox

With a sandbox_ key in the header, the server answers in the same format, but calls no model and charges nothing. chat always answers "Resposta de teste (sandbox).". A generation is ready at once, with a sample link and 0 credits. The model list, the prices and the balance are the real ones.

With your account, through OAuth, requests are always production. To test at no cost, you do need a key. In Claude Code:

1 Create a sandbox_ key with ai:read and ai:write in the API Center, and put it in the INTERWEB_API_KEY variable.
2 Add the server with the command below.
3 In Claude Code, ask "Generate a test image". You should get a sample link and 0 credits.
4 To work, switch to the prod_ key, as explained next.

claude mcp add --transport http --scope user interweb-ai https://api.interweb.co.mz/mcp \
--header "Authorization: Bearer $INTERWEB_API_KEY"

In Claude Code, changing the variable is not enough. The terminal replaces the variable with the key before running the command, and the key is saved in ~/.claude.json. To move to the prod_ key, run claude mcp remove interweb-ai and add the server again. In Codex and Cursor, the variable is read when the tool opens: change it and open the tool again.
More about the test answers in testing All in One AI in the Sandbox.

Want to know the price of each model? See the Coding with AI page and the Models tab.

See Coding with AI

SEE ALSO

The MCP server tools one by one: list_models, generate_image, chat, web_search and others

Testing All in One AI in the Sandbox at no cost: what each answer looks like

AI credits: how to buy them, the volume tiers and what each request uses

Coding Plan: which plan to choose, what it costs and how to subscribe

Coding with AI in All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $5.36/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.