---
title: "Switch the model on a deployment"
method: POST
path: "/v1/deployments/{deploymentId}/switch-model"
tags: ["Deployments"]
---

# Switch the model on a deployment

`POST /v1/deployments/{deploymentId}/switch-model`

## Request

- Base URL: `https://api.auxen.ai`
- URL: `https://api.auxen.ai/v1/deployments/{deploymentId}/switch-model`
- Auth: HTTP bearer

Same-plan switches only. Starts the new model and returns a `new_deployment_id` (about 3 minutes; the endpoint URL and api_key change).

## Path parameters

- `deploymentId` string, required

## Request body

- object
  - `model` string, required

## Response `202`

Accepted — switch started.

## Other responses

- `400`: Plan mismatch or invalid model.
- `404`: Resource not found.
- `409`: Conflict with current resource state.

---

[API](https://skmtc.dev/auxen/apis/auxen-headless-api.md) · [All operations](https://skmtc.dev/auxen/apis/auxen-headless-api/llms.txt) · [OpenAPI document](https://skmtc.dev/auxen/apis/auxen-headless-api/revisions/164be65f5ce8?raw)
