Scale Serving
scale_servingAdjust a serving's replica range, autoscaling, and per-replica price cap. Preview cost-raising changes for confirmation; reductions apply immediately.
Instructions
Change a serving's replica range, autoscaling, or per-replica price cap. Pass only the fields to change. Any change that can raise the hourly cost — a larger replica range, turning autoscale on, or a higher per-replica price cap — with confirm=false (default) only returns the current state and the requested change and changes nothing; call again with confirm=true after the user agreed. Lowering the range, turning autoscale off, or lowering the cap applies immediately. Every write requires operation_id. Reuse the ID returned by the preview, or generate a UUID before the first call. Keep it for confirmation and all retries; a new ID means a new operation. After a timeout, check operation_status and resource state before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| serving | Yes | ||
| autoscale | No | ||
| max_replicas | No | ||
| min_replicas | No | ||
| operation_id | No | ||
| price_cap_per_hour | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||