Beta API. See the stability policy.

Compute units

One compute unit is one second of solver time. The engine estimates the solver time of a run before it runs, and the run costs that many units, rounded up to a whole second, at least one. A test bench run that the engine expects to take 13.7 seconds costs 14 units. This article shows how to read your units and what happens when a run needs more than you have left.

Every plan has a daily allowance of units. Free has 600 units a day (10 minutes of solver time). Pro has 10,800 units a day (3 hours). The units come back at midnight UTC. The allowance is also the largest single run: a run that needs more units than your plan's allowance never starts. Look at Pricing for the current plans, or read the numbers from GET /v1/public/plans.

The field compute_units keeps its name. Before 2026-11-20 its number was a count of rotors and points. It is now the solver seconds of the run. Runs made before that day keep the number stored with them.

If a run is canceled or fails, you get its units back. A canceled sweep costs only the share of its points that finished.

Check your usage

There are three read-only requests. Each one reads the account that owns your key.

Check your usage
RequestWhat it tells you
GET /v1/compute-units/balanceThe units you have left today.
GET /v1/compute-units/summaryThe units you used today, your allowance, and when it comes back.
GET /v1/compute-units/transactionsA list of every charge and refund.

The responses still use the old word credit in a few places: credit_balance, credit_usage_event and currency. Those names stay the same so existing code keeps working. The units are the compute units in this article.

Balance

curl https://thrustlab.com/v1/compute-units/balance -H "Authorization: Bearer key_..."
json
{
  "object": "credit_balance",
  "total": 410,
  "unlimited": false,
  "breakdown": [{"type": "free", "balance": 410, "expires_at": null}, {"type": "monthly", "balance": 0, "expires_at": null}],
  "currency": "credit",
  "low_balance_threshold": null,
  "as_of": "2026-04-25T15:42:11.123Z"
}

total is how many units you have left today. unlimited is always false. as_of is the time of the reading. low_balance_threshold is always null now.

Summary

curl https://thrustlab.com/v1/compute-units/summary -H "Authorization: Bearer key_..."
json
{
  "object": "credit_usage_summary",
  "tier": "free",
  "window": "day",
  "used": 190,
  "cap": 600,
  "remaining": 410,
  "resets_at": "2026-04-26T00:00:00.000Z"
}
Summary
FieldWhat it is
tierYour plan.
windowThe time span the numbers cover: day, the UTC calendar day.
usedThe units you used today. A run that failed or was canceled does not count.
capYour plan's daily allowance.
remainingThe cap minus used.
resets_atThe next midnight UTC, when the units come back.

Transactions

You get your charges and refunds, newest first, a page at a time. See Pagination.

curl "https://thrustlab.com/v1/compute-units/transactions" -H "Authorization: Bearer key_..."
json
{
  "object": "credit_usage_event",
  "id": "cue_2c5tQ...",
  "amount": -25,
  "type": "simulation_debit",
  "unit_type": "monthly",
  "resource": {"object": "simulation", "id": "sim_2c5tQ..."},
  "balance_after": null,
  "created_at": "2026-04-25T15:42:11.123Z"
}
Transactions
FieldWhat it is
amountA charge is negative. A refund or grant is positive.
typeWhat happened: simulation_debit, sweep_debit, refund, adjustment, or a grant (signup_grant, monthly_grant, bounty_grant).
unit_typeAn old label, free or monthly. It doesn't tell you anything useful now.
resourceThe simulation or submission the event belongs to. null for grants and adjustments.
balance_afterThe units you had left today after this event.

You can narrow the list with these query parameters: type (for example simulation_debit), created_at[gte] for events on or after a time, and created_at[lt] for events before a time. Times are in ISO 8601 form. limit and cursor work as in Pagination.

This request lists the simulation charges since April 18:

bash
curl "https://thrustlab.com/v1/compute-units/transactions?type=simulation_debit&created_at[gte]=2026-04-18T00:00:00Z" \
  -H "Authorization: Bearer key_..."

When a run needs more units than you have

A run that needs more units than you have left today does not start. The request fails with a 402. The message and details say how many units the run needs and how many are left:

json
{
  "error": {
    "code": "credits_insufficient",
    "message": "This run needs 500 compute units and you have 410 left today. Your free plan has 600 units a day. They come back at 00:00 UTC.",
    "details": {
      "units": 500,
      "left": 410,
      "allowance": 600,
      "tier": "free",
      "resets_at": "2026-04-26T00:00:00+00:00"
    }
  }
}

A run that needs more units than your plan's whole allowance, for example 900 units on the Free plan with its 600 units a day, fails with a 422 and the code run_too_large. Its details hold units, limit and tier. Waiting does not help; use fewer points, fewer different rotors or a shorter hold, or upgrade to Pro. See Errors for what to do with each. The numbers in these examples only show the shape.