Skip to content

Read one engine container

GET
/api/v1/containers/{id}
curl --request GET \
--url https://gpu-kitchen.example.lan/api/v1/containers/1 \
--cookie gpuk_session=<gpuk_session>
id
required
integer
> 0 <= 2147483647

Success.

Media typeapplication/json
object
container
required

[API-95] An engine instance. A caller who is not an administrator receives the fields every reader may see (id, recipe_id, deployment_id, public_names, recipe_label, model, status, desired_state, kind and its instants); every other field is an administrator’s.

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

What the engine is doing: starting, running, stopped, error; later states may be added.

string
desired_state
required

What the operator asked for: running or stopped. Differs from status while it is restored.

string
deployment_id
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
public_names
required

[VIS-21] The names it answers to at the proxy; none for a benchmark or a test.

Array<string>
recipe_label
required

[VIS-18] What a page calls the recipe it runs; null without a recipe.

string | null
model
required

Its first public name, else the recipe’s model.

string | null
created_at
required
string format: date-time
started_at
required
Any of:
string format: date-time
ready_at
required
Any of:
string format: date-time
stopped_at
required
Any of:
string format: date-time
on_demand_launched
required
boolean
kind
required
string
Allowed values: benchmark reservation on_demand recipe
name
string
docker_container_id
string | null
status_reason
string | null
launch_note
string | null
recipe_model
string | null
gpu_ids
Any of:
Array<integer>
vram_share_gb

The share of its card a small engine is held to, in GB; null = whole cards.

number | null
api_port
Any of:
integer
>= -9007199254740991 <= 9007199254740991
image
string
command
string | null
node_id
string | null
node_name
string
expose_to_proxy
boolean
draining

Finishing its requests and taking no new one.

boolean
active_requests

[PRX-118] Requests the proxies report running on it now; 0 when none is reported.

integer
<= 9007199254740991
exit_code
Any of:
integer
>= -9007199254740991 <= 9007199254740991
restart_count
integer
<= 9007199254740991
pinned
boolean
last_activity_at
Any of:
string format: date-time
task_type
Any of:
string
Allowed values: text-generation embedding reranking classification asr tts speech-to-speech image-generation vision audio-generation video-generation custom
holding
Any of:
object
gpuk
required

The GPUk of its cards; null if one is not measured.

number | null
vram_gb
required

The VRAM its recipe holds: the requirement per card × its cards.

number | null
ram_gb
required

The RAM requirement of its recipe on its cards.

number | null
vram_used_gb

[CVC-55] A measure: the VRAM in use on its cards at its node’s last reading. Null when it holds no card now, its node has no reading, or its engine shares its card.

number | null
ram_used_gb

[CVC-56] A measure: the RAM its container held at its node’s last reading, GB. Null when it holds no card now or its node has no reading of it.

number | null
Example
{
"container": {
"kind": "benchmark",
"task_type": "text-generation"
}
}

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.

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