Skip to content

Put recipes in the benchmark queue

POST
/api/v1/benchmarks
curl --request POST \
--url https://gpu-kitchen.example.lan/api/v1/benchmarks \
--header 'Content-Type: application/json' \
--cookie gpuk_session=<gpuk_session> \
--data '{ "recipe_ids": [ 1 ], "gpu_config": "example", "profile": "example", "rebench": true }'

One outcome per recipe: queued, or skipped with its reason (already queued, already tested, a task GPU Kitchen does not benchmark). profile and gpu_config apply to every recipe of the call.

Idempotency-Key
string
>= 1 characters <= 128 characters /^[\x21-\x7E]+$/

Send the request again with the same value: for 24 hours, you get the first successful answer back, and nothing is done twice.

Media typeapplication/json
object
recipe_ids
required
Array<integer>
>= 1 items <= 200 items
gpu_config
required

The exact configuration to measure on (rtx 3090*2).

string
>= 1 characters <= 256 characters
profile
string
<= 64 characters
rebench

Measure again: what this cluster or the community already measured on this configuration is not reused, so already_tested is never the outcome.

boolean
Examplegenerated
{
"recipe_ids": [
1
],
"gpu_config": "example",
"profile": "example",
"rebench": true
}

Success.

Media typeapplication/json
object
outcomes
required
Array<object>
object
recipe_id
required
integer
>= -9007199254740991 <= 9007199254740991
queued
required
boolean
benchmark
required
Any of:

[API-96] A benchmark. A caller who is not an administrator receives no node: node_id is an administrator’s.

object
id
required
integer
>= -9007199254740991 <= 9007199254740991
recipe_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
recipe_snapshot
required

The recipe as it was when the benchmark was queued.

pinned_gpu_config
required

The exact configuration it must run on.

string
gpu_config
required

The configuration it ran on, once started.

string | null
power_level
required

The power level it asks for.

string
Allowed values: max low
session
required
Any of:
string
Allowed values: complete interrupted
correctness_passed
required
boolean | null
correctness_check
required

The task’s correctness check and its contract version, once it ran.

string | null
correctness_trials
required
Any of:
Array<object>
object
id
required
string
passed
required
boolean
detail
required

Always null here: GET /api/benchmarks/:id/correctness gives it to an admin.

string | null
publication
required

Whether the closed session reached the hub, or why it stays here. [OBJ-107]

object
state
required
string
Allowed values: published kept pending
reason
required

Why it is kept here; null otherwise.

string | null
budget_usage_pct
required

[OBJ-121] How much of the VRAM it reserves (its budget, else its card’s usable VRAM) a complete session of a bridable recipe used (%); null when no verdict was made.

number | null
budget_verdict
required
Any of:
string
Allowed values: ok notice no_proof
budget_target_gb
required

[OBJ-121] [GPU-290] Under 70 %: the highest proposed VRAM cap per GPU, below the VRAM reserved, that would bring the usage to 70 %; null otherwise, or when none does.

number | null
budget_places_needed
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
budget_overrun
required
Any of:
object
peak_gb
required

The highest attributed peak on a GPU (GB); null when no GPU memory was read.

number | null
budget_gb
required

The recipe’s VRAM budget per GPU (GB).

number
ram_tier_shortfall
required
Any of:
object
needed_gb
required

The system RAM it held plus the largest cache its options declare (GB).

number
tier_gb
required

The RAM tier its recipe declares (GB).

number
unmeasured
required

True when no profile read its system RAM, so the tier could not be checked.

boolean
status
required

Queued, delegated, running, completed, partial, failed, cancelled; more may come.

string
container_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
error_message
required
string | null
profile_plan
required

The workload profiles it runs, in order.

last_verdict_rung
required
string | null
last_verdict_note
required
string | null
last_verdict_at
required
Any of:
string format: date-time
rebench
required
boolean
rebench_of_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
queue_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
template_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
variation_key
required
string | null
driver_branch
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
force_driver
required

Started past a liftable driver verdict by an Owner or Admin (Benchmark anyway).

boolean
position
required
number
origin
required
string
not_before
required
Any of:
string format: date-time
created_at
required
string format: date-time
started_at
required
Any of:
string format: date-time
completed_at
required
Any of:
string format: date-time
node_id
string | null
skipped_reason
required

Why nothing was queued: already_queued, already_tested, unsupported_task_type, enqueue_failed (this recipe alone could not be queued; calling again is safe), or a reason a later version adds.

string | null
detail
required
string | null
existing_benchmark_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
existing_result_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
Example
{
"outcomes": [
{
"benchmark": {
"power_level": "max",
"session": "complete",
"publication": {
"state": "published"
},
"budget_verdict": "ok"
}
}
]
}

Error codes: validation_error.

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: 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, management_key_read_only, own_image_admins_only, reserved_gpus_only.

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: recipe_not_found.

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: idempotency_in_progress, kitchen_account_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: payload_too_large.

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: gpu_config_invalid, idempotency_key_reused, load_profile_task_mismatch, load_profile_unknown.

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"
}
}