CapVM docs

Billing and caps

How CapVM bills machines (per second, 60-second minimum, prepaid credits), how per-key spend caps work, and how card top-ups will work (Coming soon; for now, CapVM adds credits to your account).

Prices

SKU Price/hour micro-USD/hour
arm-small $0.20 200000
gpu-l4 $2.00 2000000

Prices are in USD, excluding VAT where applicable. Prices may change. Each machine keeps the price it was created at (price_per_hour_micro).

How a lease is billed

  1. Create → hold. CapVM reserves ceil(price_per_hour_micro × ttl_seconds / 3600) from the organization's available credits. If that's more than the available credits, you get 402 insufficient_credits and nothing launches.
  2. Stop → charge + release. When you DELETE the machine, or it reaches its TTL or the egress cap, CapVM charges ceil(price_per_hour_micro × billed_seconds / 3600) and returns the rest of the hold to the balance.
  3. Billed seconds are the wall-clock time from the create request until the stop, at least 60 and at most ttl_seconds. The clock starts at create, not at ready, so boot time is billed.
  4. If the machine never launched (a provider error, or no capacity), the full hold is released.

Examples: a 10-second job on arm-small is billed as 60 s = 3,334 micro-USD. 30 minutes on gpu-l4 = 1,000,000 micro-USD ($1.00).

Machine holds never make the balance negative. Because the full TTL is paid for up front, a running machine never needs more credit than it already holds. A Stripe refund or dispute can take the balance below zero (see Refunds and disputes). While it's negative, every new machine gets 402 insufficient_credits; machines already running aren't affected, and their unused hold goes back to the balance when they stop.

Spend caps (per API key)

Each key has:

Setting What it does Error
Spend cap At create time, CapVM rejects the machine if the key's charged total + its open holds + the new hold would go over the cap 402 spend_cap_exceeded
Max concurrent machines Counts the key's machines that aren't terminated 409 concurrency_limit_exceeded
Allowed SKUs The SKUs this key can launch 403 sku_not_allowed

Check where a key stands with GET /v1/usage (spend_micro, held_micro, spend_cap_micro).

Credits

Every credit movement is written to an append-only ledger (top-up, hold, release, charge, refund, refund reversed, dispute, dispute won and dispute closed).

Topping up by card

Coming soon. For now, CapVM adds credits to your account; this section describes how card top-ups will work. The amount format may change, possibly to integer cents. Today the API takes amount_usd in dollars. Check this page again before you build on it.

  1. Your agent starts a top-up with POST /v1/checkout/sessions (or the MCP tool create_checkout_session), giving an amount and an Idempotency-Key:

bash curl -X POST https://api.capvm.com/v1/checkout/sessions \ -H "Authorization: Bearer $CAPVM_KEY" \ -H "Idempotency-Key: topup-1" \ -H "Content-Type: application/json" \ -d '{"amount_usd":"50.00"}'

It gets back 201 {"id":"cs_…","url":"https://checkout.stripe.com/…"}. 2. A human opens the url and pays on Stripe's Checkout page. The agent can't pay. The page asks for a company name (required), a billing address (required) and a VAT ID (optional). It also shows the no-refunds notice: "No refunds during the beta: credits are non-refundable and never expire. You are buying USD 50.00 in CapVM credits (plus VAT where applicable) for {your organization}. …" 3. Credits arrive when Stripe confirms the payment . Check GET /v1/balance. For a payment method that settles later, credits arrive when it settles.

Rules:

Full contract and errors: API reference → Top-ups.

Refunds and disputes

There is no API to request a refund.

``` CapVM stopped your machines.

Reason: dispute_suspended Machines: m_…,m_… Balance: -1234567 micro-USD.

These machines are not restarted after a dispute is won. Contact hello@capvm.com. ```

For a negative balance after a refund, the last two lines are different instead (no mention of disputes):

``` CapVM stopped your machines.

Reason: negative_balance Machines: m_… Balance: -1234567 micro-USD.

Your balance is negative after a refund. The next top-up covers it first. Contact hello@capvm.com. ```

Machines lists the stopped machines' ids, comma-separated. Reason is dispute_suspended or negative_balance. Balance is the organization's balance in micro-USD right after the stops. The same event never stops machines or emails twice. If the email can't be delivered, the machines stay stopped. With no account email on file, no email is sent. - No restart. Machines stopped this way stay stopped, even after you win the dispute. - A refund or dispute on a payment CapVM never credited changes nothing. - Done by hand for now: the API doesn't freeze your other credits or charge you the card processor's dispute fee. If CapVM does either under Terms §8.2, it does it manually.