Extend model resources expiry
Keeps a ready model resource from stopping for inactivity for at least the given number of seconds from now. It moves the resource’s expires_at to at least that time, and never earlier. Every operation on the resource’s sessions already keeps it up for inactive_timeout seconds, so use this only to stay up longer without operations, for example while you compute rewards. Fails if the resource is not ready.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the model resource
Body
Request to keep a model resource from stopping for inactivity
Seconds from now the resource must not stop for inactivity.
60 <= x <= 864007200
Response
Model resource details
Allocated GPU resources that training sessions attach to
Unique identifier for the model resource
"123e4567-e89b-12d3-a456-426614174000"
Lifecycle status of the model resource
MODEL_RESOURCES_STATUS_PENDING, MODEL_RESOURCES_STATUS_CREATING, MODEL_RESOURCES_STATUS_READY, MODEL_RESOURCES_STATUS_ERROR, MODEL_RESOURCES_STATUS_STOPPED, MODEL_RESOURCES_STATUS_STOPPING "MODEL_RESOURCES_STATUS_READY"
Details of the resource's current status, such as its place in the queue.
Base model the resource is provisioned for
"Qwen/Qwen3.5-4B"
Compute layout provisioned for the resource.
Whether the resource hosts LoRA sessions or a full-weight session
true
Timestamp when the model resource was created
"2026-01-02T00:00:00Z"
Timestamp when the model resource was last updated
"2026-01-02T00:00:05Z"
Optimizer configuration for this resource.
ID of the user who created the model resource
"user_123"
Seconds without activity after which the resource stops and its sessions expire. Every operation on any of its sessions restarts the count.
3600
Structured detail for the model resource's current error. Set when the resource is in an error state.
Model-registry model whose weights the resource trains in place of the base model's own, pinned to the revision resolved when the resource was created. Absent when the resource trains the base model's own weights.
"together://ml_A1b2C3d4E5f6G7h8I9j0K@rv_A1b2C3d4E5f6G7h8I9j0K"
The earliest time the resource can stop for inactivity, which also expires its sessions. It is the resource's last activity plus inactive_timeout seconds. Becoming ready, a session start and every operation on any of its sessions count as activity, and the resource does not stop while an operation is running. An extend expiry call can move it later. It never moves earlier. Refreshed about once a minute. Set while the resource is ready.
"2026-01-02T01:00:05Z"