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.
| Request | What it tells you |
|---|---|
GET /v1/compute-units/balance | The units you have left today. |
GET /v1/compute-units/summary | The units you used today, your allowance, and when it comes back. |
GET /v1/compute-units/transactions | A 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_..."{
"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_..."{
"object": "credit_usage_summary",
"tier": "free",
"window": "day",
"used": 190,
"cap": 600,
"remaining": 410,
"resets_at": "2026-04-26T00:00:00.000Z"
}| Field | What it is |
|---|---|
tier | Your plan. |
window | The time span the numbers cover: day, the UTC calendar day. |
used | The units you used today. A run that failed or was canceled does not count. |
cap | Your plan's daily allowance. |
remaining | The cap minus used. |
resets_at | The 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_..."{
"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"
}| Field | What it is |
|---|---|
amount | A charge is negative. A refund or grant is positive. |
type | What happened: simulation_debit, sweep_debit, refund, adjustment, or a grant (signup_grant, monthly_grant, bounty_grant). |
unit_type | An old label, free or monthly. It doesn't tell you anything useful now. |
resource | The simulation or submission the event belongs to. null for grants and adjustments. |
balance_after | The 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:
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:
{
"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.