> For the complete documentation index, see [llms.txt](https://docs.meganova.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meganova.ai/api-reference/platform-api/usage/paid-model-auto-switch.md).

# Paid Model Auto-Switch

Read and toggle the per-account flag that continues free-model calls under paid billing when daily quota is exhausted.

When a free model's daily quota runs out, requests normally fail with a quota error. Enabling **paid model auto-switch** instead forwards the call to the model's paid fallback (for example, `meganova-ai/manta-pro-1.0` → `meganova-ai/manta-pro-1.0-Paid`) so traffic continues uninterrupted under paid billing.

This is the "Allow paid usage after free quota" toggle in the console.

## Get auto-switch status

### HTTP Request

`GET` `{API_URL}/users/paid_model_auto_switch`

### Query Parameters

| Parameter    | Type   | Description                                                                                                     |
| ------------ | ------ | --------------------------------------------------------------------------------------------------------------- |
| `model_name` | string | *Optional.* A free-model name. If passed, the response includes that model's paid redirection target + pricing. |

### Responses

**Without `model_name`** — returns the account-level toggle:

```json
{
  "data": true,
  "message": "Get user paid model auto switch successfully.",
  "status": "success"
}
```

**With `model_name` of a free model that has a paid fallback:**

```json
{
  "data": {
    "switch_status": true,
    "pricing": {
      "input_price": 0.045,
      "output_price": 0.055,
      "unit": "per_1m_tokens"
    }
  },
  "message": "Get user paid model auto switch successfully.",
  "status": "success"
}
```

**With `model_name` that has no paid fallback** — `data` is `null`.

### Example

```bash
# Account-level status
curl -X GET '{API_URL}/users/paid_model_auto_switch' \
  -H 'Authorization: Bearer {TOKEN/KEY}'

# Per-model preview of the paid fallback pricing
curl -X GET '{API_URL}/users/paid_model_auto_switch?model_name=meganova-ai/manta-mini-1.0' \
  -H 'Authorization: Bearer {TOKEN/KEY}'
```

## Update auto-switch status

### HTTP Request

`POST` `{API_URL}/users/paid_model_auto_switch/update?switch_status={true|false}`

`switch_status` is a query parameter, not a body field.

### Response

```json
{
  "message": "Update user paid model auto switch successfully.",
  "status": "success"
}
```

### Example

```bash
# Turn the switch on
curl -X POST '{API_URL}/users/paid_model_auto_switch/update?switch_status=true' \
  -H 'Authorization: Bearer {TOKEN/KEY}'

# Turn it off (requests will fail with a quota error once free quota is exhausted)
curl -X POST '{API_URL}/users/paid_model_auto_switch/update?switch_status=false' \
  -H 'Authorization: Bearer {TOKEN/KEY}'
```

## Related

* [Free Model Quota](/free-model-quota.md) — Per-tier daily limits before the switch kicks in
* [Introducing Manta](/inference-models/manta-intro.md) — Manta models use this mechanism for paid fallback
* [User Credit Balance](/api-reference/platform-api/get-credit-balance.md)
