Skip to Content
Billing

Billing

Computalot uses account credits. When you submit a job, a hold is placed against your balance. After the job completes, the hold settles to actual usage. Supported beta access today is either an admin-issued API key or an admin-whitelisted wallet session, and both see the same billing truth.

How it works

  1. Submit a job — Computalot estimates the cost and places a hold
  2. Job runs — your balance stays reserved
  3. Job completes — the hold settles to the actual cost

If your account can’t cover the estimated hold, the job is rejected before it starts.

Billing truth lives on GET /api/v1/account/balance, GET /api/v1/account/holds, GET /api/v1/account/ledger, and GET /api/v1/account/quotes.

Checking your balance

curl -sS -H "Authorization: Bearer $TOKEN" \ https://computalot.com/api/v1/account/balance

Returns:

FieldDescription
ledger_balance_usdTotal credits minus settled charges
held_usdCurrently reserved for active jobs
available_usdSpendable balance (ledger minus holds)

Use GET /api/v1/account/holds to inspect active reservations, GET /api/v1/account/ledger for settled credits/debits, and GET /api/v1/account/quotes for open funding or shortfall quotes.

Funding with x402

x402 is the programmatic funding rail. No subscription or credit card needed.

# 1. Request a top-up quote curl -sS "$BASE_URL/api/v1/account/quotes/topup" \ -X POST \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"amount_usd": 5.0}' # 2. Response: 402 Payment Required with x402 payment details # 3. Pay with an x402-capable client # 4. Confirm payment curl -sS "$BASE_URL/api/v1/account/quotes/<quote_id>/pay/x402" \ -X POST \ -H "Authorization: Bearer $TOKEN" \ -H "PAYMENT-SIGNATURE: <x402 payment payload>"

If POST /api/v1/projects/:name/init returns 402 Payment Required with a shortfall quote, fund the account and retry the same init request.

If POST /api/v1/jobs returns 402 Payment Required with a shortfall quote, fund the account and retry the same submit request.

What’s charged

  • Job execution — charged against credits, based on resource usage and runtime
  • Project init — free, but requires at least $5 available balance
  • Artifact storage — free (7-day retention)

Endpoints

MethodPathDescription
GET/api/v1/account/balanceCurrent balance and holds
GET/api/v1/account/ledgerTransaction history
GET/api/v1/account/holdsActive holds
GET/api/v1/account/quotesFunding and shortfall quotes
POST/api/v1/account/quotes/topupRequest a top-up quote
POST/api/v1/account/quotes/:id/pay/x402Confirm x402 payment
Last updated on