Skip to content

Stop an engine container

POST
/api/v1/containers/{id}/stop
curl --request POST \
--url https://gpu-kitchen.example.lan/api/v1/containers/1/stop \
--header 'Content-Type: application/json' \
--cookie gpuk_session=<gpuk_session> \
--data '{ "mode": "soft" }'

It stays stopped: it is not restarted. soft (default) lets the engine finish for 30 seconds; hard stops it at once. When its node does not answer, the stop is carried out as soon as it does.

id
required
integer
> 0 <= 2147483647
Media typeapplication/json
object
mode
string
Allowed values: soft hard

Success.

Media typeapplication/json
object
container
required
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
required
string
docker_container_id
required
string | null
status_reason
required
string | null
launch_note
required
string | null
recipe_model
required
string | null
gpu_ids
required
Any of:
Array<integer>
vram_share_gb
required

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

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

Finishing its requests and taking no new one.

boolean
active_requests
required

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

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

[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
required

[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, management_key_read_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: 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: 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: 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"
}
}

Error codes: node_unreachable.

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