Skip to main content
POST
Get Usage Analytics

Authorizations

Authorization
string
header
required

Your Simplismart Playground token, from Settings → API Key.

Body

application/json
plan_type
enum<string>
required

Which usage to return. Each plan type has its own filters (see below). private includes reserved GPUs: for an org with a reservation it returns the reserved plan, as the dashboard's Private tab does. reserved is deprecated; use private.

Available options:
shared,
private,
byoc,
reserved,
training,
compilation
start_time
string<date-time>
required

Start of the range (ISO 8601, UTC).

end_time
string<date-time>
required

End of the range (ISO 8601, UTC).

window_size
enum<string>
required

Bucket size for each item's points.

Available options:
MINUTE,
15MIN,
30MIN,
HOUR,
3HOUR,
6HOUR,
12HOUR,
DAY,
WEEK
workspace_id
string<uuid>

Workspace UUID. Defaults to your default workspace.

deployment_ids
string[]

Only these deployment UUIDs. For private and byoc.

deployment_slugs
string[]

Only these deployment slugs. For private and byoc.

model_names
string[]

Only these models (for example DeepSeek-R1). For shared.

training_job_ids
string[]

Only these training job UUIDs. For training.

training_job_names
string[]

Only these training job names. For training.

model_repo_ids
string[]

Only these model repo UUIDs. For compilation.

model_repo_names
string[]

Only these model repo names. For compilation.

statuses

Only resources in these statuses. Ignored for training.

Available options:
PROGRESSING,
PENDING,
DEPLOYING,
DEPLOYED,
DEPLOYED_WARMPOOL,
FAILED_DELETING,
FAILED_WARMPOOL,
FAILED_DELETING_WARMPOOL,
FAILED,
DELETING,
DELETED,
STOPPED,
EDIT_IN_PROGRESS,
EDIT_WARMPOOL_IN_PROGRESS,
EDIT_ROLLBACK_IN_PROGRESS,
EDIT_ROLLBACK_FAILED,
EDIT_SUCCESS
group_by
enum<string>[]

["source", "feature_id"]: one item per deployment. ["feature_id"]: one item per accelerator. private only. On an org with reserved GPUs, omitting it returns one item per accelerator unless deployments are filtered.

Available options:
source,
feature_id

Response

Successful response

items
object[]
subtotal
string

Cost before discounts. Decimal as a string.

total_discount
string

Discounts. Decimal as a string.

total_cost
string

Total cost. Decimal as a string.

currency
string

For example usd.

reservation_commitment
object

Orgs with reserved GPUs, pooled queries only: commitment-adjusted cost and per-GPU overage/true-up.