Stop an engine container
const url = 'https://gpu-kitchen.example.lan/api/v1/containers/1/stop';const options = { method: 'POST', headers: {cookie: 'gpuk_session=<gpuk_session>', 'Content-Type': 'application/json'}, body: '{"mode":"soft"}'};
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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Responses
Section titled “Responses”Success.
object
object
What the engine is doing: starting, running, stopped, error; later states may be added.
What the operator asked for: running or stopped. Differs from status while it is restored.
[VIS-21] The names it answers to at the proxy; none for a benchmark or a test.
[VIS-18] What a page calls the recipe it runs; null without a recipe.
Its first public name, else the recipe’s model.
The share of its card a small engine is held to, in GB; null = whole cards.
Finishing its requests and taking no new one.
[PRX-118] Requests the proxies report running on it now; 0 when none is reported.
[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.
[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.
Example
{ "container": { "kind": "benchmark", "task_type": "text-generation" }}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.
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: container_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: 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" }}Error codes: node_unreachable.
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" }}