List the fleet's GPUs
const url = 'https://gpu-kitchen.example.lan/api/v1/gpus?offline=include';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/gpus?offline=include' \ --cookie gpuk_session=<gpuk_session>Every present GPU of every node, or of one node with node_id; with offline=include, also the cards a disconnected node last reported, in state offline.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Success.
object
object
The normalized GPU model recipes and benchmarks name.
What an engine may use: the card’s VRAM minus the host’s reservation.
Free, busy (a GPU Kitchen container holds it), foreign (something else uses its VRAM), booked (a reservation or the occupancy plan holds it) or offline (its node is disconnected: the card as the node last reported it, never placeable; listed only with offline=include); later states may be added.
Example
{ "gpus": [ { "holder": { "alloc_task": "local_inference" } } ]}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: 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: node_not_found.
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" }}