Skip to navigation

Change the maximum runtime

Changes or removes the limit set with max_runtime_seconds at deploy, on a deployed or stopped instance. The limit counts from when the instance’s GPU was allocated, startup included, and again from each start, so expires_at becomes the allocation time plus the new limit. A limit the current allocation has already passed (less than a minute left) is refused with 409: choose a longer one, or stop or destroy the instance. On a stopped instance the limit applies from its next start. Send null to remove it.

Authentication

AuthorizationBearer

Pass your EmpirioLabs API key as a bearer token. The Anthropic-style x-api-key header is also accepted on every endpoint.

Path parameters

instance_idstringRequired
GPU instance id.

Request

This endpoint expects an object.
max_runtime_secondsinteger or nullRequired60-2592000

The new limit in seconds (60 to 2,592,000), counted from when the GPU was allocated, or null to remove the limit.

Response

The limit was changed; the instance reports the new max_runtime_seconds and expires_at.

instanceobjectOptional

Errors

400
Bad Request Error
409
Conflict Error