This topic describes the long-input and prefix cache capabilities of PTU (Provisioned Throughput) deployments, including quota consumption rules, how to use the Provisioned Throughput Quota Calculator , and API response field descriptions.
Overview
PTU deployments support long-input requests (up to 200K tokens for some models) and prefix caching. Tiered capacity coefficients and cache discounts provide flexible quota consumption management.
Core capabilities:
- Long-input support: Some models support inputs exceeding 32K tokens. Tokens beyond the threshold are consumed at higher tiered coefficients when converted to TPM (tokens per minute). For details, see Quota consumption rules.
- Prefix cache discount: Some models support prefix caching. Input tokens that hit the cache consume quota at a discounted coefficient (the specific discount varies by model), reducing quota consumption in multi-turn conversations and repeated prefix scenarios.
- Automatic pay-as-you-go fallback: When PTU quota is exceeded or the input exceeds the model limit (128K for Qwen / 64K for DeepSeek), the request automatically falls back to pay-as-you-go billing. No changes to your calling code are required.
Quota consumption rules
Long-input tiered coefficients and cache discounts vary by model. The following table lists the parameters for currently supported models:
Model | Maximum input length | Cache discount | Long-input tiered coefficients |
|---|---|---|---|
qwen3.8-Max | 1 Million | 0.125 (cache-hit tokens consume 12.5% capacity) | No tiers (1.0) |
qwen3.7-plus-2026-05-26 | 1 Million | 0.2 (cache-hit tokens consume 20% capacity) | No tiers (1.0) |
qwen3.7-flash-2026-07-15 | 1 Million | 0.2 (cache-hit tokens consume 20% capacity) | [0, 32K): input 1.0 / output 1.0 (256K, 1Million]: input 6.0 / output 6.0 |
glm-5.2 | 1 Million | 0.25 (cache-hit tokens consume 25% capacity) | No tiers (1.0) |
glm-5.1 | 200K | 0.2 (cache-hit tokens consume 20% capacity) | [0, 32K): input 1.0 / output 1.0 |
deepseek-v4-pro | 256K | 0.08 (cache-hit tokens consume 8% capacity) | No tiers (1.0) |
deepseek-v4-flash-0731 | 1 Million | 0.2 (cache-hit tokens consume 20% capacity) | No tiers (1.0) |
Other models | Refer to the console | Refer to the console | No tiers (1.0) |
Calculation examples (glm-5.1)
Estimating quota with the Provisioned Throughput Quota Calculator

Parameter | Description | Impact on results |
|---|---|---|
Requests per minute (RPM) | Number of requests per minute during peak business hours. | The larger the RPM, the more the recommended input and output KTPM increases proportionally. |
Average input length (tokens) | Average number of input tokens per request. | The longer the input, the higher the tier and coefficient, and the higher the recommended input KTPM. Tier boundaries vary by model; refer to the console for actual values. |
Average output length (tokens) | Average number of output tokens per request. | The longer the output, the higher the possible coefficient, and the higher the recommended output KTPM. |
Cache hit rate (%) | The percentage of request prefix tokens that hit the cache. Actual hit rate depends on request content repetition; refer to actual runtime results. | A higher hit rate slows input quota consumption, reducing the recommended input KTPM. Affects input KTPM only, not output KTPM. |
API response field descriptions
API responses for PTU deployments include the following quota-related fields that identify the billing method and quota consumption:
Field | Type | Description |
|---|---|---|
| String | A top-level response field (consistent across all API formats). A value of |
| Integer | The actual PTU quota tokens consumed after conversion (includes tiered coefficients and cache discounts). |
| Integer | The number of tokens that hit the prefix cache. For details, see Context Cache. |
- OpenAI Chat compatible
- OpenAI Responses
- Anthropic compatible
- DashScope
Field | JSON path | Description |
|---|---|---|
|
| Input-side cached token count |
|
| Input-side PTU quota consumption |
|
| Output-side PTU quota consumption |
Monitoring and verification
You can monitor PTU deployments through the model monitoring feature on the Model Studio platform. The following metrics are relevant to long-input and caching:
- PTU utilization: Three independent curves for input, output, and thinking mode output. In long-input scenarios, tiered coefficients can cause utilization to exceed 100%. This is expected behavior.
- Token usage and cache hits: Includes the
cached_tokensdata series to show the proportion of cache hits relative to total input. - In-quota and out-of-quota call counts: Shows the proportion of requests that fall back to pay-as-you-go billing after exceeding PTU quota.
FAQ
Q: What happens when PTU quota is exceeded?
Q: What happens when PTU quota is exceeded?
service_tier field is either absent or returns default, and the response header includes x-dashscope-ptu-overflow:true. Service is not interrupted.Q: What happens when a single input exceeds the model limit?
Q: What happens when a single input exceeds the model limit?
Q: How do I verify that caching is working?
Q: How do I verify that caching is working?
cached_tokens field in the API response. A value greater than 0 indicates a prefix cache hit. Cache-hit tokens consume quota at the model's discount coefficient (for specific discount rates, see Quota consumption rules). You can also view trends in the token usage chart on the console monitoring page.Q: What if cached_tokens is always 0 and caching is not working?
Q: What if cached_tokens is always 0 and caching is not working?
Q: Why does utilization exceed 100%?
Q: Why does utilization exceed 100%?