Skip to main content

Create, integrate, and manage

This page walks through the complete workflow in order of use: creating a throughput reservation in the console (form parameters and fee confirmation), integrating and calling the API, viewing monitoring data, and daily management (scaling, renewal, unsubscription, add-on capacity packs, and overflow policy changes).

Before you begin

Before using throughput reservations, make sure the following three items are ready:
  • Model Studio: Activated in the Model Studio console.
  • Workspace: A workspace has been created; calls against reserved capacity use the dedicated host and API Key of that workspace.
  • API Key: Created within the target workspace; see Obtain and configure an API Key for instructions.
This page covers the complete workflow for using throughput reservations:
创建吞吐预留 → 接入调用 → 查看与监控 → 日常管理(叠加容量包/扩缩容/续订/退订)

Create a throughput reservation

Open the creation page: Log on to the Model Studio console, choose Model Inference > Throughput Reservation in the left-side navigation pane, and click Create Throughput Reservation. Fill in the form fields in the order they appear in the console:
Form fieldWhat you can enterWhen it is available
Reservation NameA custom name of up to 50 charactersAlways visible
Select ModelSelect the model to reserve capacity for from the drop-down listAlways visible; once selected, the billing cycle options appear dynamically based on the chosen model
Reasoning ModeStandard mode / High-speed modeAlways visible; for the differences between the two, see Throughput reservation overview
Billing CycleBy day / By 8-hour time slot / Pay-as-you-go by hourBy day: available for both modes. By 8-hour time slot: Standard mode only, and orders can be placed only from 22:00 on the current day to 00:00 the next day. Pay-as-you-go by hour: High-speed mode only; appears once High-speed is selected
Input capacity / Output capacityIn kTPM (1 kTPM = 1,000 tokens per minute); input starts at 200 with a step of 10, output starts at 20 with a step of 1Always visible; before purchasing, use the TPM capacity calculator for an estimate; for long-input and cache conversion rules, see Long input and prefix cache
Duration1~30, 60, 90, 120, or 365 DaysVisible only for upfront/by day; fixed at 8 hours for the 8-hour time slot option, no entry required; pay-as-you-go is billed by actual usage and has no duration
Auto-Renew on ExpirationEnable/Disable, enabled by default; when enabled, automatic deduction occurs between 8:20 and 20:00 one day before expiration, with up to 4 attemptsVisible only for upfront/by day; the 8-hour time slot option does not support auto-renewal
Renewal Duration1~30, 60, 90, 120, or 365 DaysVisible after Auto-Renew on Expiration is enabled (by day only)
Overflow policyAuto overflow (default; usage beyond the reservation is automatically billed at pay-as-you-go rates without service interruption) / Use reserved capacity only (requests beyond the reservation directly return a 429 rate limit error and incur no extra charges)Always visible
The full fee is charged as soon as creation succeeds. The capacity fee is paid upfront in full based on the purchased amount, regardless of whether any calls are made: even if you never make a call, the full fee still applies and is not refunded based on actual usage. Make sure you understand this before submitting your purchase.
As you fill in the form, the Cost Details panel on the right side of the page shows the estimated fee and billing notes in real time. After confirming the parameters, click Buy Now, verify the fee in the dialog box, and click Confirm Payment. Where do you get the dedicated model code after creation? Go back to the throughput reservation list page, expand the card for the model, and find the dedicated model code on the Overview tab of the details section, then click to copy it. Replace the model parameter with it in all subsequent calls.

Integration and calls

Prerequisite: the reservation instance status is Running. There is only one rule for making calls: replace the model parameter in the request with the dedicated model code, and keep everything else the same as a regular model call. The API Integration tab in the console details section only provides sample code for some protocols (OpenAI compatible and DashScope); the full instructions for all three protocols are as follows.
  • OpenAI Chat compatible
  • Anthropic compatible
  • OpenAI Responses
Suitable for services already integrated with the OpenAI Chat Completions protocol. Both endpoints work: the DashScope host https://dashscope-intl.aliyuncs.com/compatible-mode/v1, or the dedicated workspace host https://{workspaceId}.{region}.maas.aliyuncs.com/compatible-mode/v1 (replace {workspaceId} and {region} with your actual values, such as ap-southeast-1).
  • cURL
  • Python
curl -X POST https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "your-dedicated-model-code",
    "messages": [
      {
        "role": "user",
        "content": "你好"
      }
    ]
  }'
To switch to the dedicated workspace host, simply replace the host in the example above with https://{workspaceId}.{region}.maas.aliyuncs.com/compatible-mode/v1; all other parameters stay the same.
To confirm whether a call hits reserved capacity: check the service_tier field in the response — if it returns ptu_default (Standard mode) or ptu_fast (High-speed mode), the call hit reserved capacity; provisioned_tokens is the converted capacity consumed by this call. For field descriptions, see View capacity consumption and cache hits.

View and monitor

View capacity, usage, and running status on the throughput reservation page of the Model Studio console. The page has three layers following the usage flow:
  • Reservation list: One card per model, used to locate the target reservation.
  • Card details section: Click View more on a card to expand it, containing the Overview, Monitoring, and API Integration tabs — used respectively to determine whether capacity is sufficient, troubleshoot call issues, and obtain call examples; at the bottom of the Overview tab is the list of capacity instances for the model, and the entries for scaling, renewal, and unsubscription are all in the Actions column of each instance row.

Reservation list

预留列表的模型卡片:容量趋势图与生效中的容量实例
The card displays the following information:
Card fieldDescription
Mode tag, statusThe inference mode of the reservation and the current status of the instance.
Active ReservationsThe number of capacity instances in effect; the statistics include historical expired, stopped, and released reservations, so this is not equal to the currently available quantity.
Reserved input/output TPMThe total capacity of all instances under the model.
The list can be filtered by foundation model, Time, Status, and Performance. The Buy Capacity and Add-on Capacity Package entries on the card serve the same purpose: both add a capacity instance to the current dedicated model code.

Card details

The details section contains three tabs:
  • Overview
  • Monitoring
  • API Access
概览页签:部署配置、统计卡、使用率趋势、超额降级统计
Check whether the capacity is sufficient from three places:
Check itemLocationCriteria
UtilizationStatistics card (average utilization) and the Utilization Trend curveA utilization rate persistently close to 100% indicates insufficient capacity.
PeakStatistics card Peak within 7 days (peak capacity usage in the last 7 days)A peak close to or exceeding the purchased capacity indicates insufficient capacity during peak hours.
Overage degradationOverage Degradation Statistics (most recent degradation time and count, generated only under the auto spillover strategy)Frequent degradation indicates frequent overage; scaling out is recommended (see Management operations).
The utilization trend provides three statistics modes:
Statistics modeDescription
Based on purchased capacityCalculates the utilization rate based on the purchased capacity.
Based on converted capacityBased on the capacity converted using the conversion factor (conversion method for long input and cache).
Including spillover usageThe usage additionally includes the portion that spills over to pay-as-you-go billing.
The deployment configuration card displays the Reservation Name, dedicated model code, foundation model, and input/output capacity, with an Edit entry next to the spillover policy (see Management operations).

Capacity instance list

容量实例列表:容量实例 ID、输入/输出 TPM、状态、付费周期、生效/到期时间、自动续费与操作列
The capacity instance list is at the bottom of the Overview tab, titled "Capacity instance list for this model". Each capacity instance corresponds to one capacity purchase and is managed row by row:
ColumnDescription
Capacity instance IDThe unique identifier of the instance, used to specify the instance when calling management OpenAPIs.
Input/output TPMThe input/output capacity of the instance.
StatusFor the meaning, see Instance status.
Billing CycleUpfront/By Day, upfront/By 8-Hour Window, pay-as-you-go/By Hour.
Effective/expiration timeThe effective and expiration times; the days remaining are displayed before expiration.
Auto-RenewalOn/Off; the switch takes effect immediately (upfront/By Day only).
The Actions column provides entries for Scaling, Renew, and Unsubscribe (displayed based on the instance status); the Add-on Capacity Package button is next to the list title and is equivalent to the entry on the card.

Management operations

The operations and constraints available for each billing method:
Billing MethodScalingRenewUnsubscribe / deleteKey constraints
Upfront/By DaySupportedSupported (including auto-renewal)Unsubscribe via User CenterUnsubscription is irreversible and the refund is settled based on the penalty coefficient; the API cannot directly release an upfront instance (this must be done through User Center)
Pay-as-you-go/By HourSupportedNot applicable (no expiration concept)Deleting the instance stops billingInstances scaled to zero can be deleted directly; all instances must be released before deleting the Model Code
By 8-Hour WindowNot supportedNot supportedNot supportedThe capacity automatically becomes invalid after the window expires; auto-renewal is not supported
Add-on Capacity Package can be added to an upfront or pay-as-you-go reservation; at most one undeleted pay-as-you-go instance can exist under a dedicated model code. The spillover policy is modified on the Overview tab.
OperationProblem solvedEntryApplicable instancesFees and rules
Add-on Capacity PackageAdd a new capacity instanceCard Add-on Capacity Package/Buy Capacity, or next to the capacity instance list titleBy Day and pay-as-you-go By Hour instancesAdd-on capacity package billing
ScalingScale the capacity up/down on the original instance (including scaling to zero)Capacity instance list Actions columnBy Day and pay-as-you-go By Hour instancesScale out, Scale down
Renew / auto-renewalExtend the validity period and avoid interruption at expirationCapacity instance list Actions column / auto-renewal column switchBy Day instancesBilling rules
UnsubscribeCompletely stop and release the instanceCapacity instance list Actions column (redirects to User Center)By Day instancesUnsubscribe
Edit spillover policyDetermines whether the excess portion is converted to pay-as-you-go billing or a 429 is returnedEdit next to the spillover policy on the Overview tabAll instancesSpillover policy and billing
Each of the above operations has a corresponding OpenAPI; for how to call them, see Throughput reservation API reference.

Add-on capacity package

叠加容量包弹窗:确认专属模型 code 后选择付费周期与容量
Click Add-on Capacity Package (or Buy Capacity) on the card and complete the following steps in order:
确认专属模型 code → 选择付费周期 → 填写购买时长与自动续费(仅按天)→ 填写输入/输出容量 → 核对费用并支付
Available billing cycles for the add-on capacity package:
Billing CycleApplicable conditions
Upfront/By DayApplies to both upfront and pay-as-you-go reservations
Upfront/By 8-hour time slotOnly Standard mode Basic, and only some models are supported; for the supported list, see 8-hour time slot reservation billing
Pay-as-you-go instances cannot be created via add-on capacity packs: at most one non-deleted pay-as-you-go instance can exist under a dedicated model code. Pay-as-you-go/By Hour is selectable only when creating a new throughput reservation (High-speed mode only). The values of the other parameters (Duration, auto-renewal, input/output capacity) are the same as those for creating a new reservation: input starting value/step 200/10 kTPM, output 20/1 kTPM. After the purchase succeeds, the total capacity of the reservation increases accordingly; the dedicated model code remains unchanged, so no changes to API calls are required. Differences from scaling out on the original instance:
MethodObject of changeBilling
Add-on capacity packAdds an independent instance that coexists with the original instancePurchased independently, with a selectable billing cycle and duration (for example, By 8-hour time slot)
ScalingAdjusts the input/output TPM of the original instanceThe added portion is billed based on the remaining validity period

Scaling, Renewal, and Unsubscribe

All three operations are available in the Actions column of the capacity instance list:
  • Scaling
  • Renew
  • Unsubscribe
扩缩容弹窗:原配置与新配置对照、需补交金额与费用明细
Click Scaling. The dialog shows input and output TPM in an Original configuration / New configuration comparison (adjusted with sliders; if nothing is changed, it prompts The configuration has not changed.); after adjustment, the Amount to be paid and cost details are displayed in real time, along with Used hours / Remaining hours — these two values are the billing basis for settlement when scaling out or in.
Both input and output TPM can be adjusted to 0 (zeroed out): once zeroed, capacity fees stop accruing, the dedicated model code is retained, and calls can be restored by scaling out. Scaling in and zeroing out are settled as downgrades for refunds, with a penalty coefficient of 1.2 for ≤30 days used and 1.0 for >30 days; for more information, see Scaling in. The penalty coefficient applies only to upfront instances; pay-as-you-go instances stop billing upon deletion and no refund is issued.

Edit the overflow policy

The overflow policy can be changed after creation: click Edit next to the overflow policy on the Overview tab. Whether the excess portion is billed by the pay-as-you-go billing method or returns 429 is determined by the overflow policy; for the behavioral differences and billing impact of the two policies, see Overflow policy and billing.

Instance status

The five instance statuses and their meanings:
StatusMeaning and outcome
RunningNormal service; the dedicated model code can be called.
PendingCreated and waiting to take effect.
UpdatingScaling in progress.
StoppedThree causes: expiration, overdue payment, or zeroed-out capacity. Instances stopped due to expiration or overdue payment recover after renewal; zeroed-out instances recover after scaling out again in the Scaling dialog.
ReleasedResources have been reclaimed and recovery is not possible.
How upfront instances are handled upon expiration: after expiration, the instance shuts down immediately (it cannot be called, but can still be renewed), and it is released 2 hours after shutdown.

FAQ

Troubleshoot in three steps:
  1. Check the overflow policy first: if it is Reserved capacity only, any traffic beyond the reserved capacity inevitably returns 429; you can change the overflow policy to Automatic overflow on the Overview tab.
  2. On the Overview tab, check Overage Degradation Statistics to confirm how often excess occurs.
  3. Frequent excess indicates insufficient capacity: increase capacity via Scaling, or purchase an add-on capacity pack.
On the Monitoring tab, triage by failure type: 4xx errors are usually issues with the request itself (parameters, authentication); 5xx errors are server errors and can be retried; for rate limiting errors, check capacity in the direction described in the previous item; for content safety errors, check the input content.
The instance is shut down immediately after expiration (calls are rejected, but renewal is still possible), and it is released 2 hours after shutdown with no recovery. We recommend keeping Auto-Renew on Expiration enabled. For the rules, see Expiration and lifecycle.
Check two signals on the Overview tab: the utilization curve stays persistently close to 100%, or the count in Overage Degradation Statistics increases frequently. If either signal persists, we recommend scaling out the input/output capacity.