curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.computer.stateset.app/api/v1/jobs/{job_id}/cost-breakdown' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model": "string",
"lines": [
{
"label": "Replacement tent pole set",
"quantity": 2,
"rate_per_token": 7.5,
"cost_usd": 1.5
}
],
"total_cost_usd": 1.5
}
Get Job Cost Breakdown V1
Per-job cost breakdown with priced input/output token lines. Useful when callers see an unexpectedly high cost_usd and want to know whether output tokens or…
GET
/
api
/
v1
/
jobs
/
{job_id}
/
cost-breakdown
curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.computer.stateset.app/api/v1/jobs/{job_id}/cost-breakdown' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model": "string",
"lines": [
{
"label": "Replacement tent pole set",
"quantity": 2,
"rate_per_token": 7.5,
"cost_usd": 1.5
}
],
"total_cost_usd": 1.5
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
cost_usd and want to
know whether output tokens or input tokens drove it. Pricing comes
from the worker’s canonical rate table; jobs that ran without a
pinned model show prices at the deployment-default rate.
Path parameters
string (uuid)
required
Response
CostBreakdownResponse
string
required
string,null
required
Canonical model id used to price the job. None if the job ran on the deployment default and no per-job model was pinned.
CostBreakdownLine[]
required
number
required
Sum across lines. May not equal
Job.cost_usd exactly if the deployment-default pricing differed from the canonical rate table; the response reflects what the priced lines compute to.Status codes
| Code | Meaning |
|---|---|
200 | Successful Response |
422 | Validation Error |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.computer.stateset.app/api/v1/jobs/{job_id}/cost-breakdown' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model": "string",
"lines": [
{
"label": "Replacement tent pole set",
"quantity": 2,
"rate_per_token": 7.5,
"cost_usd": 1.5
}
],
"total_cost_usd": 1.5
}
Last modified on September 21, 2026