Put recipes in the benchmark queue
const url = 'https://gpu-kitchen.example.lan/api/v1/benchmarks';const options = { method: 'POST', headers: {cookie: 'gpuk_session=<gpuk_session>', 'Content-Type': 'application/json'}, body: '{"recipe_ids":[1],"gpu_config":"example","profile":"example","rebench":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Send the request again with the same value: for 24 hours, you get the first successful answer back, and nothing is done twice.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The exact configuration to measure on (rtx 3090*2).
Measure again: what this cluster or the community already measured on this configuration is not reused, so already_tested is never the outcome.
Examplegenerated
{ "recipe_ids": [ 1 ], "gpu_config": "example", "profile": "example", "rebench": true}Responses
Section titled “Responses”Success.
object
object
[API-96] A benchmark. A caller who is not an administrator receives no node: node_id is an administrator’s.
object
The recipe as it was when the benchmark was queued.
The exact configuration it must run on.
The configuration it ran on, once started.
The power level it asks for.
The task’s correctness check and its contract version, once it ran.
object
Always null here: GET /api/benchmarks/:id/correctness gives it to an admin.
Whether the closed session reached the hub, or why it stays here. [OBJ-107]
object
Why it is kept here; null otherwise.
[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.
[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.
Queued, delegated, running, completed, partial, failed, cancelled; more may come.
The workload profiles it runs, in order.
Started past a liftable driver verdict by an Owner or Admin (Benchmark anyway).
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.
Example
{ "outcomes": [ { "benchmark": { "power_level": "max", "session": "complete", "publication": { "state": "published" }, "budget_verdict": "ok" } } ]}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, management_key_read_only, own_image_admins_only, reserved_gpus_only.
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: recipe_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: idempotency_in_progress, kitchen_account_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: payload_too_large.
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: gpu_config_invalid, idempotency_key_reused, load_profile_task_mismatch, load_profile_unknown.
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" }}