List the menu: every name on it and its phase
const url = 'https://gpu-kitchen.example.lan/api/v1/menu';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/menu \ --cookie gpuk_session=<gpuk_session>One entry per name, sorted by name.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Success.
object
object
[VIS-18] The public name.
Null for a custom model setup.
[MNU-03] What the proxy does with a request for it.
Why: a restart’s wait, a failure’s cause; null otherwise.
[MNU-15] False when no deployment serves the name now: neither routed nor listed, its aliases kept. Administrators only.
On_demand when one deployment is, off when all are, else always.
[MNU-12] Never served by a compatible name.
[PLN-146] Callable, left out of GET /v1/models.
object
[MNU-09] The names on the menu that serve it as well, in the fallback order.
[API-95] Where it is pinned is an administrator’s.
object
object
Now: the instances answering the name; when_running: nothing answers, the covering deployments once they run.
[QTA-54] The GPUk of their cards; null when a card is not measured.
The VRAM their recipes hold, per card times cards; null when one has no figure.
[VIS-21] How many other names count the same instances or deployments.
Example
{ "menu": [ { "phase": "serving", "mode": "always", "deployments": [ { "serving_mode": "always", "replacement_mode": "when_idle" } ], "holding": { "basis": "now" } } ]}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: 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" }}