> ## Documentation Index
> Fetch the complete documentation index at: https://docs.budecosystem.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployment settings

> Responses API behaviour, context length, pricing, rate limiting, fallback and retries, and autoscaling.

Open **Settings**. A list on the left switches between sections; the header has **Reset** and **Save Settings**, which act on the section you are in. **Save Settings** is disabled until you change something. If a section's stored values cannot be loaded you see a banner with **Reload**: reload before saving, or the save would replace the stored limits with defaults.

| Section | Shown when |
| - | - |
| **Responses API** | The deployment serves text (chat completions). |
| **Context length** | The deployment serves text. |
| **Audio** | Voice deployments. |
| **Pricing** | Every deployment. |
| **Rate limiting** | The gateway serving the deployment enforces rate limits. |
| **Resilience** | The gateway enforces retries or fallbacks for it. |
| **Autoscaling** | Self-hosted deployments only. A cloud model is an API call to someone else's servers, so there is nothing to scale. |

Saving asks for confirmation: **Save Deployment Settings** ("This will affect how your deployment handles requests"), then **Yes, Save Settings**. You see "Settings updated successfully" or the reason it failed. Rate-limit, retry and fallback changes apply to live traffic straight away.

![Deployment settings: Responses API behaviour, context length, pricing, rate limiting and resilience.](https://mintcdn.com/budecosystem-b7b14df4/tm7AvlRzpE_EcnqL/images/product-guide/deployment-settings.jpg?fit=max\&auto=format\&n=tm7AvlRzpE_EcnqL\&q=85\&s=b6fff8d1d2150d3fe89854c7193768cd)

Deployment settings: Responses API behaviour, context length, pricing, rate limiting and resilience.

## Responses API

Controls the `/v1/responses` endpoint on this deployment. It runs on top of chat completions, so it is unavailable until chat completions is enabled for the deployment. Changes affect new requests only.

| Field | What it does | Rules and defaults |
| - | - | - |
| **Endpoint enabled** | Turns `/v1/responses` on or off. When off, callers get a 404. | On by default. |
| **Allow background mode** | Lets callers run long responses asynchronously with `background: true`. | On by default. |
| **Persist responses by default (`store`)** | Saves responses so they can be retrieved and chained. | On by default. Zero-data-retention deployments force it off. |
| **Max output tokens** | Ceiling on tokens generated per response. Hitting it ends the response gracefully. | Default 16,384. Leave blank for the default. |
| **Max tool calls per response** | Stops runaway tool-use loops. | Default 50. |
| **Chain depth limit** | The most responses that may be linked with `previous_response_id`. Deeper chains are rejected. | Default 200. |
| **Background workflow timeout** | How long a background response can run before it is cancelled. | Default 3,600 seconds. |
| **Default reasoning effort** | How much the model thinks before answering. Higher is better on hard problems and slower. | (none), Minimal, Low, Medium, High or Extra High (xhigh). Default Medium. |
| **Default truncation** | What happens when the context overflows. *Auto* drops the oldest turns; *Disabled* returns an error. | Default Disabled. |
| **Default system instructions** | A system prompt added to every request. Callers can override it per request. | Empty by default. Up to 100,000 characters. |
| **Web search (DuckDuckGo)** | Gives the model a built-in web search tool; callers do not declare it. No API key is needed. | Off by default. |
| **Web fetch** | Lets the model read a specific URL. Pairs well with web search. | Off by default. |

**Reset** in this section clears every per-deployment override and falls back to the model's defaults (**Reset Responses API Settings**, **Yes, Reset**). It takes effect at once and cannot be undone.

## Context length

How many tokens the deployment's model reads in one request. Agents compact long conversations against this number, so they need it.

| Deployment | What you can do |
| - | - |
| **Self-hosted** | Read only. The value is the engine's `max-model-len`, fixed when you deployed ("redeploy the model to change it"). Set it with **Maximum context** in the deploy wizard. |
| **Cloud** | Editable. A whole number of tokens from 1 to 10,000,000. Empty means the detected value. A *Set manually* tag appears when you override it; **Reset** returns to the model's limit or the cloud catalogue's. Under the field you see where the value comes from: set manually, the engine's max-model-len, the model's context length or the cloud model catalogue. |

> [!TIP]
>
> If no context length is known for a cloud model you see a warning. Set it, or agents using the deployment cannot compact long conversations.

## Pricing

What each call costs. Cost reports use it and the Cost Optimiser weighs its savings against it. It is separate from the price customers pay (see "Publish a deployment" below).

| Field | What to enter | Rules and defaults |
| - | - | - |
| **Input rate · \$ / 1M tokens** | Cost of input tokens. | Starts from the catalogue or simulator figure when one exists ("Not on record" otherwise). A note under the field says where the value came from. |
| **Cached-input rate · \$ / 1M tokens** | Cost of input tokens served from the provider's cache. | Optional; "None" when blank. |
| **Output rate · \$ / 1M tokens** | Cost of output tokens. | As for the input rate. |

Voice deployments instead take one price in the unit their calls are metered in; decision-only deployments take one price per input token or per call. Saving shows "Rates updated"; **Reset** after saving restores the catalogue or simulator rate ("Rates reset").

## Rate limiting

Switch on **Toggle rate limiting**, choose an algorithm and set at least one limit. "Requests above the limit return 429 with retry-after."

| Field | What to enter | Rules and defaults |
| - | - | - |
| **Algorithm** | **Token bucket** (recommended): a smooth rate that allows bursts up to the burst size. **Sliding window**: smooths the window boundary. **Fixed window**: cheapest, but up to twice the limit can pass across a window boundary. | Required while limiting is on. |
| **Per second** | Maximum requests per second. | Positive whole number. Empty means no per-second cap. |
| **Per minute** | Maximum requests per minute. | Positive whole number. Empty means no per-minute cap. |
| **Per hour** | Maximum requests per hour. | Positive whole number. Empty means no per-hour cap. |
| **Burst capacity** | The peak a token bucket allows. | Token bucket only. Positive whole number. Recommended: 1.5 times the requests per second. |
| **Window size** | Set by the algorithm. | Read only. |
| **Max concurrent** | Concurrent requests or streams allowed across all gateway replicas. | Voice deployments only. Whole number of 1 or more. Set it at or below your vendor plan's concurrency limit. |

At least one limit is required when limiting is on ("At least one rate limit is required when enabled"). Limits are shared across all gateway replicas. A limited response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` and `Retry-After` headers ([Calling models from your applications](https://docs.budecosystem.com/api-integration/calling-models.md)).

## Resilience: fallback and retries

| Field | What to enter | Rules and defaults |
| - | - | - |
| **Fallback deployment** | Click **Select fallback deployment** and choose another deployment. Requests go there when this one fails (a server error, a 429 or a timeout). **Change** picks another; the clear control removes it. | Empty means failures reach the caller at once. Voice deployments may only fall back to a voice deployment that serves everything they serve. Fallbacks set through the API beyond the first are kept when you save and tried in order. |
| **Max retry attempts** | How many times to retry transient errors before giving up. | 0 to 10 ("Must be between 0 and 10 retries"). 0 or empty disables retries. |
| **Max delay** | Upper bound on the wait between attempts. Each retry doubles the previous delay (exponential backoff), up to this cap. | 0.1 to 60 seconds ("Must be between 0.1 and 60 seconds"). |

> [!TIP]
>
> **Fallback chains.** A fallback can have its own fallback. Circular chains are detected and fail with an error, so check that two deployments do not point at each other.

## Autoscaling

Changes the autoscaler of a running self-hosted deployment. It has the same options as step 7 of the wizard ([Deploying a model](https://docs.budecosystem.com/deployments/deploy-a-model.md)), laid out as cards: **Replica range** (**Minimum replicas** and **Maximum replicas**, "hard floor and ceiling the scheduler will never cross"), **Metrics sources** (at least one is required while autoscaling is on), **Schedule hints**, **Predictive scaling** (**Look ahead**, **Training history**) and **Scaling behavior** (stabilisation windows and per-period steps, mirroring Kubernetes HPA). Saving asks **Update Autoscale Configuration**, then **Yes, Update**.

> [!WARNING]
>
> **Minimum replicas are billed at zero traffic.** Set the minimum to what you need to meet latency at the quietest time, and the maximum to what the cluster can spare.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.