Read every team's and person's external budget with this month's spend
const url = 'https://gpu-kitchen.example.lan/api/v1/budgets?account=active&page=0&role=super_admin&sign_in=password&status=reached';const options = {method: 'GET', headers: {cookie: 'gpuk_session=<gpuk_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://gpu-kitchen.example.lan/api/v1/budgets?account=active&page=0&role=super_admin&sign_in=password&status=reached' \ --cookie gpuk_session=<gpuk_session>Budgets cap only what external models cost when a shared credential pays. Local models are never capped: privileges and recent GPU time only decide who is served first while the GPUs are full.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Success.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Example
{ "teams": [ { "kind": "standard", "privilege": { "source": "own", "range": "background" }, "status": "within", "ceiling": { "kind": "personal" } } ], "people": [ { "role": "super_admin", "source": "own", "budget_status": { "status": "within", "ceiling": { "kind": "personal" } }, "privilege": { "range": "background" }, "invitation": "pending", "ceilings": [ { "kind": "personal" } ] } ], "app_keys": [ { "budget_status": { "status": "within", "ceiling": { "kind": "personal" } }, "ceilings": [ { "kind": "personal" } ], "privilege": { "range": "background" } } ]}Error codes: validation_error.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: auth_required.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: admin_required, forbidden.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: rate_limited.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}