Skip to content

Read the state of the benchmark queues

GET
/api/v1/benchmarks/queues
curl --request GET \
--url https://gpu-kitchen.example.lan/api/v1/benchmarks/queues \
--cookie gpuk_session=<gpuk_session>

One queue per template, running or paused, with how many of its benchmarks wait and run. Benchmarks queued outside a template carry no queue; list them with GET /api/v1/benchmarks?status=queued.

Success.

Media typeapplication/json
object
queues
required
Array<object>
object
id
required
integer
>= -9007199254740991 <= 9007199254740991
template_id
required
integer
>= -9007199254740991 <= 9007199254740991
template_name
required
string | null
base_model_key
required
string
gpu_config
required

The template’s exact configuration.

string
state
required

Running or paused; later states may be added.

string
priority_band
required
string
scope
required
string
queued
required

Benchmarks waiting in this queue.

integer
>= -9007199254740991 <= 9007199254740991
running
required

Benchmarks of this queue running now.

integer
>= -9007199254740991 <= 9007199254740991
created_at
required
string format: date-time
updated_at
required
string format: date-time
Examplegenerated
{
"queues": [
{
"id": 1,
"template_id": 1,
"template_name": "example",
"base_model_key": "example",
"gpu_config": "example",
"state": "example",
"priority_band": "example",
"scope": "example",
"queued": 1,
"running": 1,
"created_at": "2026-04-15T12:00:00Z",
"updated_at": "2026-04-15T12:00:00Z"
}
]
}

Error codes: auth_required.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: forbidden.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: rate_limited.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}