Request a model or raw GPUs for a time window
const url = 'https://gpu-kitchen.example.lan/api/v1/reservations';const options = { method: 'POST', headers: {cookie: 'gpuk_session=<gpuk_session>', 'Content-Type': 'application/json'}, body: '{"kind":"model","window_start":"2026-04-15T12:00:00Z","window_end":"2026-04-15T12:00:00Z","team_id":"example","title":"example","note":"example","plat_key":"example","objective":"chat","constraints":{"concurrent_users":1,"tokens_per_user":1},"gpu_count":1,"gpu_model":"example","min_vram_gb":1,"image":"example","command":["example"],"env":{"additionalProperty":"example"},"recurrence":{"weekdays":[1],"until":"2026-04-15T12:00:00Z"}}'};
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/reservations \ --header 'Content-Type: application/json' \ --cookie gpuk_session=<gpuk_session> \ --data '{ "kind": "model", "window_start": "2026-04-15T12:00:00Z", "window_end": "2026-04-15T12:00:00Z", "team_id": "example", "title": "example", "note": "example", "plat_key": "example", "objective": "chat", "constraints": { "concurrent_users": 1, "tokens_per_user": 1 }, "gpu_count": 1, "gpu_model": "example", "min_vram_gb": 1, "image": "example", "command": [ "example" ], "env": { "additionalProperty": "example" }, "recurrence": { "weekdays": [ 1 ], "until": "2026-04-15T12:00:00Z" } }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Responses
Section titled “Responses”Success.
object
object
object
object
Example
{ "reservations": [ { "kind": "model", "execution": { "state": "waiting" } } ], "budget": { "scope": "team" }}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: enterprise_required, forbidden, management_key_read_only, not_a_member_of_team, team_membership_blocked.
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: 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: conflict.
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: 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" }}