<!-- The Markdown version of https://hyviral.com/docs/mcp/credits: the same content as the page. -->

Guide

# Know what every call costs

Same rates in the app and over MCP. The rules below exist so an agent spending someone else's money cannot surprise them.

## Quote, then confirm

Any tool that costs credits answers its first call with a price, not a result. Nothing is charged. You get a single-use `confirmationToken` bound to the exact arguments you sent.

```
// 1. ask
tools/call generate_image { description: "a red ceramic mug…" }

// → success, nothing charged
_meta: {
  "hyviral/requiresConfirmation": true,
  "hyviral/quotedCredits": 95,
  "hyviral/quotedCreditsCovers": "tool_price_and_ai_processing",
  "hyviral/confirmationToken": "cft_…",
  "hyviral/expiresAt": "…"
}

// 2. show the price to your user, then execute
tools/call generate_image { description: "a red ceramic mug…", confirmationToken: "cft_…" }
```

Change the arguments and the token stops matching: you get a fresh quote rather than an error, because changing your mind is not a mistake. The same request re-quoted returns the SAME token, so an agent cannot bank several approvals for one piece of work.

The quote is a ceiling, enforced on our side. If the real price comes out above it, the call is refused before anything is reserved: you are never charged more than the number you showed your user.

## What the quote covers

`quotedCredits` covers everything the call bills: the tool's own price, and an allowance for the AI pass it runs internally — a quality critic on image, thumbnail and carousel calls, a review watcher on `video_review`. That pass used to be billed on top, which meant the total could land above the number you had shown your user; it no longer can.

The charge is often lower than the quote — whatever the call does not spend is released rather than charged, so the allowance is headroom, not a fee. Say "up to 95 credits", not "exactly 95": a real `generate_image` call quoted at 95 credits was actually charged 59 — reporting the quote as the price would have over-stated it by more than a third.

## Long jobs

Video generation and rendering return a job handle in seconds rather than holding the request open for minutes. Poll `get_job_status` with the id.

```
_meta: { "hyviral/jobId": "…", "hyviral/jobStatus": "accepted", "hyviral/reservedCredits": 2400 }
```

Do not call the tool again while a job is running: that starts and bills a second one. `list_active_jobs` shows what is in flight, and `cancel_job` stops it. Cancelled work bills only for what was already delivered.

## What “no credit cost” means

Read tools are free. Every tool listed at no credit cost charges nothing: none of them returns token usage, and none of them bills.

What does add a charge is a generation tool: the model call it makes for you, and the internal AI pass it runs to check the result — image, thumbnail and carousel calls run a quality critic, and `video_review` runs a watcher — are both inside the quote you were shown. There is no second charge to warn a user about, and the tool reference says which tools run that internal pass.

## Ceilings and retries

Each credential has its own daily spend ceiling: the larger of 50,000 credits or a fifth of the plan's monthly grant. It is a runaway brake, not an entitlement: the account balance is still the real limit. If one credential hits its ceiling, the others on the account are unaffected, which is what makes revoking a misbehaving agent a targeted action.

Any spending tool accepts an optional `idempotencyKey`. Send the same key with the same arguments and you get the original response back instead of a second charge. The same key with DIFFERENT arguments is refused: that is a bug in the caller, not a retry.

[Plans and grants](https://hyviral.com/pricing) · [per-tool costs as JSON](https://hyviral.com/pricing.json)
