Skip to main content
PATCH
Swap a deployment's model

Authorizations

Authorization
string
header
required

Your Abstract API key. Get it with abstract login, pass it as $(abstract token).

Headers

Abstract-Version
enum<string>

The API version your client was written for. 2026-11-17 is the newest version; 2026-10-27 and 2026-11-16 are still answered on every route except POST /v1/get_action, which refuses them with 400 unsupported_api_version (minimum_version: 2026-11-17): its request is application/vnd.abstract.chunk only. The deployment routes are answered under any of the three. Without this header the request is answered under the newest version; a version the API does not answer is refused with 400 unsupported_api_version before anything runs.

Available options:
2026-10-27,
2026-11-16,
2026-11-17

Path Parameters

deployment_id
string
required

The deployment's id, such as pi05-yam-a3f2.

Body

application/json
model
string
required
checkpoint_uri
string

Your own checkpoint to serve on the model's lane: hf://<org>/<repo>@<commit>. Without it, the model's own weights.

checkpoint_options
object

What a checkpoint needs said about it. An option its pipeline does not read is a problem, invalid_option.

Response

The deployment, on its new model.

id
string
required

Unique inside your account. It names no account.

object
string
required
Allowed value: "deployment"
model
string
required
state
enum<string>
required

idle, stopped and failed hold no GPU.

Available options:
created,
launching,
ready,
busy,
idle,
stopped,
failed
idle_timeout
string
required

Such as 30m, or never.

attempt
integer
required

The attempt the deployment is on, counted from 1.

checkpoint_uri
string | null

Your own checkpoint it serves on the model's lane. null when it serves the model's own weights.

checkpoint_options
object | null

What a checkpoint needs said about it. An option its pipeline does not read is a problem, invalid_option.

robot
string | null
reason
enum<string> | null

Why an attempt ended. capacity: no GPU could be had when it launched. unreachable: it held a GPU and lost it. idle_timeout: it ran no chunk for its idle timeout, or the day's idle budget was spent. user: you stopped it, swapped its model or deleted it. model_error: the engine could not serve the model.

Available options:
capacity,
unreachable,
idle_timeout,
user,
model_error,
null
idle_timeout_s
integer | null
checkpoint
string | null

The weights the current attempt runs, when the engine names them.

created_at
integer
updated_at
integer
ready_at
integer | null
last_chunk_at
integer | null
idle_at
integer | null

Unix seconds at which the GPU is released if no chunk runs before then.