ThrustLab Compute Units API
The compute-units API from ThrustLab — 3 operation(s) for compute-units.
The compute-units API from ThrustLab — 3 operation(s) for compute-units.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/thrustlab-com:thrustlab-com-compute-units-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
description: Electric UAV powertrain simulation platform
title: ThrustLab Compute Units API
version: v1-beta
servers:
- description: Production
url: https://thrustlab.com
security:
- HTTPBearer: []
tags:
- name: compute-units
paths:
/v1/compute-units/balance:
get:
operationId: get_credit_balance_v1_compute_units_balance_get
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CreditBalanceResource'
description: Successful Response
summary: Get Credit Balance
tags:
- compute-units
/v1/compute-units/summary:
get:
description: 'Owner-scoped usage meter read.
Reuses the metering primitives: ``used_in_window`` already SUMs
``abs(amount)`` = per-rotor COMPUTE units (a 4-rotor static counts 4), so the
meter inherits compute-unit accounting. The tier is resolved via
``entitlement_for`` (default-down: a forged/unknown tier → free, never
pro), never a raw dict lookup of the request-supplied tier.
resets_at is the ROLLING window''s next age-out instant — the oldest in-window
debit''s ``created_at`` + the window length. With no in-window debit there is
nothing pending to age out, so resets_at = now. It is NEVER ``since + window``
(which equals ``now`` for every request because ``since = now - window``).'
operationId: get_usage_summary_v1_compute_units_summary_get
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CreditUsageSummaryResource'
description: Successful Response
summary: Get Usage Summary
tags:
- compute-units
/v1/compute-units/transactions:
get:
operationId: list_credit_usage_v1_compute_units_transactions_get
parameters:
- in: query
name: type
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Type
- in: query
name: credit_type
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Credit Type
- in: query
name: limit
required: false
schema:
default: 25
maximum: 100
minimum: 1
title: Limit
type: integer
- in: query
name: cursor
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Cursor
- in: query
name: created_at[gte]
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Created At[Gte]
- in: query
name: created_at[lt]
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Created At[Lt]
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CreditUsageListResponse'
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: List Credit Usage
tags:
- compute-units
components:
schemas:
CreditBalanceResource:
properties:
as_of:
title: As Of
type: string
breakdown:
items:
$ref: '#/components/schemas/CreditBucketBreakdown'
title: Breakdown
type: array
currency:
const: credit
default: credit
title: Currency
type: string
low_balance_threshold:
anyOf:
- type: integer
- type: 'null'
title: Low Balance Threshold
object:
const: credit_balance
default: credit_balance
title: Object
type: string
total:
anyOf:
- type: integer
- type: 'null'
description: Remaining Free compute-unit allowance, or null when unlimited is true.
title: Total
unlimited:
description: True for usage-uncapped paid (Pro) accounts.
title: Unlimited
type: boolean
required:
- total
- unlimited
- breakdown
- as_of
title: CreditBalanceResource
type: object
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
title: Detail
type: array
title: HTTPValidationError
type: object
CreditUsageListResponse:
properties:
data:
items:
$ref: '#/components/schemas/CreditUsageEventResource'
title: Data
type: array
has_more:
title: Has More
type: boolean
next_cursor:
anyOf:
- type: string
- type: 'null'
title: Next Cursor
object:
const: list
default: list
title: Object
type: string
required:
- data
- has_more
title: CreditUsageListResponse
type: object
CreditUsageRelatedResource:
properties:
id:
title: Id
type: string
object:
enum:
- simulation
- component_submission
title: Object
type: string
required:
- object
- id
title: CreditUsageRelatedResource
type: object
CreditBucketBreakdown:
properties:
balance:
title: Balance
type: integer
expires_at:
anyOf:
- type: string
- type: 'null'
title: Expires At
type:
enum:
- free
- monthly
title: Type
type: string
required:
- type
- balance
title: CreditBucketBreakdown
type: object
CreditUsageEventResource:
properties:
amount:
title: Amount
type: integer
balance_after:
anyOf:
- type: integer
- type: 'null'
description: Remaining Free allowance after this event, or null for unlimited paid (Pro) accounts.
title: Balance After
created_at:
title: Created At
type: string
id:
title: Id
type: string
object:
const: credit_usage_event
default: credit_usage_event
title: Object
type: string
resource:
anyOf:
- $ref: '#/components/schemas/CreditUsageRelatedResource'
- type: 'null'
type:
enum:
- simulation_debit
- sweep_debit
- monthly_grant
- signup_grant
- bounty_grant
- refund
- adjustment
- debit
- topup
title: Type
type: string
unit_type:
enum:
- free
- monthly
title: Unit Type
type: string
required:
- id
- amount
- type
- unit_type
- balance_after
- created_at
title: CreditUsageEventResource
type: object
CreditUsageSummaryResource:
description: 'The usage meter''s single owner-scoped read.
``used`` is in COMPUTE UNITS (per physical rotor) — inherited from
``metering.used_in_window`` which SUMs ``abs(amount)`` (a 4-rotor static
counts 4). ``cap``/``remaining`` are None for Pro because paid
usage is unlimited. ``resets_at`` is the ROLLING reporting window''s next
age-out instant (oldest in-window debit + window length), NEVER
``since + window`` (which always equals ``now``).'
properties:
cap:
anyOf:
- type: integer
- type: 'null'
title: Cap
object:
const: credit_usage_summary
default: credit_usage_summary
title: Object
type: string
remaining:
anyOf:
- type: integer
- type: 'null'
title: Remaining
resets_at:
title: Resets At
type: string
tier:
title: Tier
type: string
used:
title: Used
type: integer
window:
enum:
- day
- week
title: Window
type: string
required:
- tier
- window
- used
- resets_at
title: CreditUsageSummaryResource
type: object
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
title: Location
type: array
msg:
title: Message
type: string
type:
title: Error Type
type: string
required:
- loc
- msg
- type
title: ValidationError
type: object
securitySchemes:
HTTPBearer:
scheme: bearer
type: http