# Set TTS model quality

- **Method:** `PUT`
- **Path:** `/api/v1/settings/model-quality`
- **Operation ID:** `set_model_quality_setting_api_v1_settings_model_quality_put`
- **Tags:** Settings

Set TTS model quality. Unloads the current model and clears voice prompt cache if changed.

## Effective servers

- `http://127.0.0.1:8100`

  Voice Creator Pro on this computer

## Query parameters

- **`quality` (required)**: `string`

  Quality preset ID

## Responses

### 200 Successful Response

**Content type:** `application/json`

schema: `ModelQualitySetResponse`

- **`changed` (required)**: `boolean`

  Whether the quality was actually changed
- **`success` (required)**: `boolean`

  Whether the operation succeeded
- **`message`**: `string | null`

  Optional status message
- **`needs_reload`**: `boolean`, default: `false`

  Whether the TTS model needs to be reloaded

**Example:**

```json
{
  "success": true,
  "changed": true,
  "needs_reload": false,
  "message": ""
}
```

### 422 Validation Error

**Content type:** `application/json`

schema: `HTTPValidationError`

- **`detail`**: `array`

  **Items:**

  schema: `ValidationError`
  - **`loc` (required)**: `array of (string | integer)`
  - **`msg` (required)**: `string`
  - **`type` (required)**: `string`
  - **`ctx`**: `object`
  - **`input`**: `any`

**Example:**

```json
{
  "detail": [
    {
      "loc": [
        ""
      ],
      "msg": "",
      "type": "",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Schemas

- `HTTPValidationError` — shown above.
- `ModelQualitySetResponse` — shown above.
- `ValidationError` — shown above.
