Skip to main content
← Guides

Cost formulas: cloud, agents, local and video

Cost control

No price figures, only four reproducible formulas and conventions — tokens, seats, local power, video seconds — each with an official pricing pointer.

Calculate with your own assumptions

Prices are blank: enter rates from your current contract or official billing page. Each group is independent and is not automatically added to the others. Use one currency throughout; totals exclude tax. Inputs are neither uploaded nor saved.

The preset only fills the three token rates in the cloud group. Cache write $2.50 / read $0.20 is noted but not auto-filled. Checked 2026-11-25; source: claude.com/pricing.

Cloud chat / agent model and tool calls

Fill every field in this group; explicitly enter 0 for costs that do not apply.

Seats, review and other fixed costs

Fill every field in this group; explicitly enter 0 for costs that do not apply.

Monthly local running costs

Fill every field in this group; explicitly enter 0 for costs that do not apply.

One-time hardware allocated—
Monthly running—
Video budget billed per second

Fill every field in this group; explicitly enter 0 for costs that do not apply.

Cloud, team and video groups use the period you enter. The local group splits one-time hardware from monthly running, so a one-off purchase is not mixed into a monthly bill.

Local vs API: when does it pay back?

Three inputs only: one-time hardware, monthly local running, monthly API bill. Payback months = hardware / (API - local). If the gap is zero or negative, local never pays back on savings alone.

Fill all three to see payback months.

Conventions first

Enter prices for the specific product, tier and contract you use. No rates are prefilled. Subscription seats and API usage are different billing bases: a monthly subscription is not a token rate. The groups above are independent; combine actual components without counting a cost twice.

  • Count uncached input, cached input and output separately. Do not include cached tokens again as uncached input.
  • Use currency per million tokens for token rates; convert tool rates to their actual billing unit.
  • Use one currency throughout. Account for currency conversion, taxes and discounts under your own contract.
  • Choose budget headroom from your failure, rework and review assumptions; there is no universal percentage.
  • Documentation alone does not establish which option costs less. Supply your own usage, hardware allocation and maintenance assumptions.

Cloud chat

Model cost = sum over calls of (uncached input tokens × input rate
           + cached input tokens × cached rate + output tokens × output rate) / 1,000,000

Each call may include history, system instructions and retrieved passages. Counting only the latest user message misses that input. The calculator simplifies this to average tokens per call multiplied by call count; calculate different models or rates separately.

Control point: preserve necessary context and evidence while removing irrelevant repetition, then check the answer again.

Agent tasks

Model calls = tasks × (initial model calls per task + additional retry calls per task)
Tool cost = tasks × total tool calls per task (including tool retries) × cost per tool call
Period cost = model cost + tool cost + seats, review and other costs

Count model and tool calls separately. Do not multiply the total tool calls by the model-call count again. Split tools that incur several service charges. Whether failed requests are billed depends on the service; retries may also carry different context lengths.

Control points: set retry and budget limits, record failure causes, and include approval time in review costs.

Local model

Monthly budget = allocated hardware cost / allocation months + electricity
               + monthly maintenance and evaluation
Electricity = average kW × daily running hours × running days × price per kWh

Allocation is a budgeting method, not cash paid that month. For existing hardware, distinguish incremental cash spending from a budget including hardware allocation. Record whether power covers the whole system or a component; rated peak power is not a sustained average.

Control point: first check capacity for weights, context cache, concurrency and runtime overhead, then compare costs.

Video generation

Video budget = shots × billed seconds per shot × total attempts per shot × rate per second
             + editing and asset-licence costs

Total attempts include the first attempt. The calculator estimates per-second billing with equal-length attempts. For credits, requests, resolution tiers or subscriptions, convert the appropriate billing unit first. Sum shots individually when lengths or attempt counts differ.

Control point: record acceptance criteria for each shot and use your own attempt budget or history, rather than assuming two or three attempts will suffice.

Four decisions

  1. Low usage does not automatically make cloud cheaper; compare subscriptions, existing equipment and maintenance over the same period.
  2. If data must remain offline, first check the entire processing chain, then budget local operations.
  3. For long tasks, record model calls, tool calls, retries and approval time separately to identify cost sources.
  4. Keep both first-attempt success and rework scenarios for video, showing what causes the difference.

Common misreads

  • Counting cached input twice or omitting repeated history.
  • Treating a per-million-token price as a per-token price: a millionfold unit error.
  • Adding an initial call to a retry count that already includes it.
  • Mixing billing per second, credit and request without conversion.
  • Comparing different currencies, tax bases or periods directly.
  • Treating an illustrative calculation as a quotation or savings promise.

Sources

SourceURL
OpenAI: ChatGPT pricing (subscription reference; no prices collected)https://openai.com/chatgpt/
Anthropic: Claude pricing (official reference)https://www.anthropic.com/pricing
Google AI plans (subscription reference)https://one.google.com/about/google-ai-plans
This site: cost control methods and pitfallshttps://tools.specul.com/mcp/guides/cost-control.html

Source snapshot: 2026-11-03; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.

This page appears in: Make music with AI · Office documents with AI · Use AI well · Make video with AI