Swap a deployment's model
Replaces the model, or the checkpoint on its lane, under the same id. The attempt on the
old weights ends with the reason user, and a new attempt on the new ones begins. A chunk
in flight completes first. The episode on the old weights is over: its next chunk is
refused with episode_ended. A deployment that holds no GPU changes what it serves and
launches nothing.
The body names everything the deployment serves from here on. Without checkpoint_uri
that is the model’s own weights, whatever it served before.
curl --request PATCH \
--url https://api.abstract.inc/v1/deployments/{deployment_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "allenai/molmoact2"
}
'import requests
url = "https://api.abstract.inc/v1/deployments/{deployment_id}"
payload = { "model": "allenai/molmoact2" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "pi05-yam-a3f2",
"object": "deployment",
"model": "physical-intelligence/pi0.5",
"checkpoint_uri": null,
"checkpoint_options": null,
"robot": "yam",
"state": "ready",
"reason": null,
"idle_timeout": "30m",
"idle_timeout_s": 1800,
"attempt": 1,
"checkpoint": null,
"created_at": 1794830400,
"updated_at": 1794830441,
"ready_at": 1794830441,
"last_chunk_at": null,
"idle_at": 1794832241
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}{
"error": {
"message": "Invalid API key.",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}Authorizations
Headers
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.
2026-10-27, 2026-11-16, 2026-11-17 Body
Response
The deployment, on its new model.
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.
capacity, unreachable, idle_timeout, user, model_error, null curl --request PATCH \
--url https://api.abstract.inc/v1/deployments/{deployment_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "allenai/molmoact2"
}
'import requests
url = "https://api.abstract.inc/v1/deployments/{deployment_id}"
payload = { "model": "allenai/molmoact2" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "pi05-yam-a3f2",
"object": "deployment",
"model": "physical-intelligence/pi0.5",
"checkpoint_uri": null,
"checkpoint_options": null,
"robot": "yam",
"state": "ready",
"reason": null,
"idle_timeout": "30m",
"idle_timeout_s": 1800,
"attempt": 1,
"checkpoint": null,
"created_at": 1794830400,
"updated_at": 1794830441,
"ready_at": 1794830441,
"last_chunk_at": null,
"idle_at": 1794832241
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}{
"error": {
"message": "Invalid API key.",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>",
"cameras": [
"<string>"
],
"accepts": [
"<string>"
],
"minimum_version": "<string>"
}
}