Skip to main content
A dedicated endpoint runs between a minimum and a maximum number of replicas. Active replicas follow your live traffic between the two. Requests beyond what your maximum can serve get a 429 with Retry-After right away; nothing is queued. You can read the live count and change the minimum and maximum yourself, up to the ceiling in your contract:
  • In the dashboard: open Dedicated at app.wafer.ai, pick the endpoint, and use Edit min / max in the Replicas panel. Where your contract bills by replica-hour, the dialog estimates what the new limits bill before you save. Account owners and admins can save.
  • With the API below, using an API key from the account that owns the endpoint.
Changes apply within a minute.
Replica control is switched on per endpoint. If the Replicas panel says it isn’t switched on, or the API returns 404 or 409 as described under Errors, contact Wafer to turn it on.

Read replicas

GET https://api.wafer.ai/v1/dedicated/replicas/{endpoint} returns the endpoint’s limits and live state. {endpoint} is your endpoint’s hostname. Any API key on the account that owns the endpoint can read it.

Change the minimum and maximum

PUT https://api.wafer.ai/v1/dedicated/replicas/{endpoint} sets both limits and returns the same object as the read. The API key must be enabled for replica management: ask Wafer to enable it for the key you want to automate with. Other keys on the account can read but get a 403 on a change.
The limits are checked on the server on every change. A request outside them is refused and changes nothing. To raise your ceiling, contact Wafer.

What a change bills

Your contract sets how dedicated capacity is billed. Where it bills by replica-hour, you are billed for the replicas active each hour, from min_replicas up to max_replicas. While fewer than min_replicas are healthy, you are billed only for the healthy ones. At full capacity, raising the minimum raises the least you are billed each hour; raising the maximum raises the most. Where your contract bills by replica-hour, the Billing page at app.wafer.ai shows your rate, spend per day, and month to date, and the limits dialog on the Dedicated page estimates a change per hour and per 30 days, at full capacity and today’s rate, before you save it. Otherwise the dialog shows no bill figures: your contract sets whether the limits change your bill.

Replica history

GET https://api.wafer.ai/v1/dedicated/replicas/{endpoint}/history?days=30 returns the limits and active replicas over time. days is 1 to 90 and defaults to 30. steps is sampled, not a complete change log: after the first step in the window, at most the last change in each time bucket is kept. Buckets are 5 minutes for up to 2 days, 1 hour for up to 14 days, and 6 hours beyond that.

Errors

Every error is JSON with one error object:
message says what was refused. code is http_<status> unless the table names another. request_id is included when the request has one; quote it when you contact Wafer.