Skip to main content
Billing

Billing and cost management

This topic describes how to query billing details, analyze bills, and stop billing.

Query bills

Bills are generated only after a call is completed. Bills for model inference are generated with minute-level granularity, typically within 2 to 10 minutes. Bills for services such as batch inference, model training, and knowledge base are generated hourly. During peak business hours, the time displayed in the system is considered the final billing time.

Billing Overview

Log on to the Model Studio console. Click the Dashboard tab at the top. In the left-side navigation pane, choose Usage & Billing > Billing Overview, then select a billing month.
This page displays costs for model inference only. To view costs for services such as model training and knowledge base, see Billing Details.
  • View total consumption and breakdown: The top of the page shows the Total amount for the month, broken down into Subscription (such as Token Plan and Coding Plan) and Bill (for pay-as-you-go model calls and training). Click View details on the Subscription or Bill card to view itemized costs. The Bill trend chart below displays only pay-as-you-go amounts and excludes prepaid subscription fees. When viewing data for the current month, the Bill amount is typically updated first, while the Bill trend chart may lag slightly.
  • Query costs by model or API Key: In the Bill trend section, select a target model from the Model drop-down list or filter by API Key ID, then switch to the List view. The Payable amount column in the List view shows the cumulative monthly cost for the selected item.
  • Compare spending trends: Set Grouping to Category and compare the spending trends for model inference and training on a Daily or Monthly basis.
  • Set billing alerts: On the Bill card, click Edit next to Bill alert. In the Usage limit & alerts panel, enable a monthly limit, set a threshold, and configure email notification. You are notified when your spending reaches the threshold. This helps you avoid service interruptions caused by overdue payments.
  • View historical cumulative costs: The Billing Overview page displays only the total consumption for the current month. Cost Analysis supports up to 12 months of data at monthly granularity and up to 92 days at daily granularity. To view costs beyond 12 months or to calculate your total historical spending, export bills month by month from Billing Details and aggregate them manually:
    1. Go to Expenses and Costs > Billing Details.
    2. Set Product Name to Alibaba Cloud Model Studio.
    3. Switch the billing month one at a time and export each month's bill as a CSV file. For the export steps, see Billing Details.
    4. Sum the exported data across all months to obtain your total historical spending.
    All statistical period options on the Billing Details page are scoped to a single month, so cross-month aggregation is not supported and must be done manually after exporting each month. In the export dialog box, you can select content from the last 18 months for batch export.

Billing details

Bills for large model inference and training can be broken down for review by API Key ID, workspace ID, model name, input/output type, invocation channel.

1. Download the bill

  1. On the Billing Details page, select a billing period.
  2. Select Product as Alibaba Cloud Model Studio, and click Search.
  3. In the upper-right corner of the bill list, click the Export Bill CSV to download the bill.
  4. Open the file, locate the Instance ID column, and interpret it using the rules described in the next section.

2. Interpret key fields

The "Instance ID" field contains multiple pieces of information separated by semicolons (;).
  • Example: text_token;llm-xxx;qwen-max;output_token;app
  • This represents the following information in order: billing type;workspace ID;model name;input/output type;invocation channel

3. Data traceability and terms

  • Query API Key: Copy the ApiKeyID from your bill and go to the Model Studio API Key Management page to find the corresponding key name.
  • Query workspace: Copy the workspace ID from your bill. Go to the Workspaces page to identify the specific workspace.
  • Invocation channel descriptions:
    • app: A call made from an application (via code).
    • bmp: A call made from the Playground in the console.
    • assistant-api: A call made via the Assistant API.

Stop billing

If you no longer use Model Studio, follow the instructions below to stop the related services and prevent further charges.
  • Stop model inference: Stop making API calls from your code and stop using the Playground in the console to prevent further charges. To prevent accidental calls, you can delete your keys on the API-KEY page.
  • Stop model training: You are not charged when no model training tasks are running.
  • Cancel a Coding Plan subscription: Coding Plan is a monthly subscription product that automatically stops at the end of the subscription period. Mid-term cancellation and refunds are not supported. If you have auto-renewal enabled, disable it on the Coding Plan page.
  • Unsubscribe from Token Plan Team Edition: On the My Subscriptions page of the Token Plan console, you can unsubscribe seats that have not been used, and a refund is issued to the original payment account. If you do not want to renew your subscription, disable auto-renewal.

FAQ

Cause:
  • Billing latency: Model inference bills are aggregated by the minute and typically appear 2 to 10 minutes after a call. Bills for batch inference, model training, and knowledge base are aggregated hourly. Bill generation may be further delayed during peak hours.
  • Use of a non-commercial model: Models in public preview or invite-only testing do not generate billing records.
Solution: Wait for the billing interval to pass and then check again.
Cause: The same model is billed separately based on the billing type (such as input tokens, output tokens, or cache hits) and the invocation channel (such as an API call or console experience). For example, a single API call to qwen3.6-plus generates two entries: one for "input tokens" and one for "output tokens".Solution: Use the Instance ID field in Billing Details to understand the specifics of each line item.
Cause: The "Billable Item" column on the bill is uniformly labeled "Large Model Text Consumption" and does not show the specific model name.Solution: Check the Instance ID (Billing Granularity) column on the Billing Details page. This field is a semicolon-separated string. The part of the string that immediately follows the workspace ID (such as llm-xxx) is the model name. For example, in 12xxx;llm-xxx; qwen3.6-plus ;context_0-128k_input_token;bmp;0, the model is qwen3.6-plus.
Go to the Alibaba Cloud Model Studio console, select the target region in the upper-right corner. Click the Dashboard tab at the top. In the left-side navigation pane, choose Usage & Billing > Model usage.
No. Alibaba Cloud uses a "reserve and settle monthly" model for pay-as-you-go billing. The system reserves an amount from your available balance to cover usage, and then generates a final bill and deducts the actual cost at the end of the billing cycle (early in the next month).
Reason: Additional features of Model Studio, such as web search, are billed separately (post-paid) based on the number of calls and are invoiced separately from model inference fees. Even if you have not actively used the console recently, if the enable_search parameter is enabled in applications or code that you created in the past, web search fees are still incurred for each call. In addition, your Alibaba Cloud account balance is managed at the account level. If any Alibaba Cloud product under the same account, such as pay-as-you-go ECS or OSS, has unsettled charges, your available balance becomes negative, and Model Studio displays an overdue payment as well, even if you have not used Model Studio itself. Settling the outstanding charges for the affected product restores normal usage of Model Studio.Solution:
  1. In Billing Details, filter for Alibaba Cloud Model Studio and check the Instance ID (Billing Granularity) column to identify the model name and invocation channel that incurred the cost.
  2. Check whether enable_search is enabled in your application code or Model Studio application configuration. If you no longer need web search, set this parameter to false or remove it.
  3. If you have stopped all calls but are still being charged, check if other API keys or applications are still running. You can find and delete unused keys on the API Key Management page.
Cause:
  • Input tokens accumulate in long context conversations: When the same document is repeatedly included in a long context conversation, the input tokens of each request grow as the context accumulates, so a single call consumes far more tokens than a short conversation. For example, in one investigation, 43 of 47 calls each consumed 580,000 to 600,000 input tokens, and the total input tokens exceeded 25 million, which depleted a balance of CNY 120 in about 20 minutes and resulted in an overdue payment.
  • Alert notifications are sent at a limited frequency: When the available credit of your account falls below the alert threshold, you receive a notification.The notification is sent by email.If you do not check the notification in time, your balance may be depleted before the next alert.
  • Billing latency: Model inference bills are aggregated by the minute. Therefore, you may still receive bills generated by billing latency after the service is suspended, and the overdue amount can keep increasing after the suspension.
Solution:
  • Check the token consumption of individual calls on the Model Usage page to identify requests with high token usage.
  • Configure the available credit alert on the Billing Overview page, and check alert notifications promptly.
  • To stop billing immediately, delete the API keys that you no longer use on the API Key Management page.
Cause: Model deployment in Model Studio is billed by duration. Billing starts as soon as the model deployment status changes to Running, regardless of API calls. Even if you have not called the model via API, charges continue to accumulate as long as the deployment status is Running. In addition, model inference is billed by token usage — fees are only incurred when API calls are made.Solution:
  1. Go to the Model Deployment page to check whether any deployed models have the status Running. If you no longer need them, take them offline to stop billing.
  2. Delete unused API keys to prevent accidental API calls from generating inference fees (note: deletion is irreversible, proceed with caution). You can manage your keys on the API Key Management page.
If you suspect your account has been accessed by others and unexpected charges have been incurred, follow these steps to investigate:
  • In Detailed Bill, filter by Model Studio, and check the ApiKeyID in the Instance ID (Billing Granularity) column to identify the API Key generating the charges.
  • Go to the API Key Management page, review the creation time of each key, and confirm whether it was created by you. The API Key Management page only shows creation time, not invocation time.
  • Review the call time distribution to identify any abnormal invocation patterns that may not be your own: Go to Model Usage, filter by Model or API Key ID, and switch to the List view to see the invocation time distribution.
  • If unauthorized invocations are found, immediately go to the API Key Management page to delete the corresponding API Key and regenerate it. Update all legitimate callers to use the new key.
Cause: Model Studio API calls use the pay-as-you-go billing method by default. After you activate Model Studio, you can call the API immediately and pay based on actual usage, without purchasing a resource plan or savings plan. The system automatically charges you based on the token usage and corresponding pricing of the model you call. For detailed pricing information, see Model inference pricing.
Model Studio applies discounted quotas in a fixed offset order: free quota > model-specific savings plan > AI general-purpose savings plan > pay-as-you-go. Each layer is fully consumed before the next one is used. Calls are billed on a pay-as-you-go basis against your account balance only after all discounted quotas are exhausted.The following table compares the options and the rules that apply to each one.

Option

Billing model

Scenarios

Price level

Limits

Key rules

Pay-as-you-go (default)

Post-paid, reserve and settle monthly

Fluctuating usage, or evaluation before you commit

Billed by input and output token usage, with no discounts. The per-token unit price is the highest among all options.

No prepurchase is required, so this option is available at any time. Models cannot be called while a payment is overdue.

No prepurchase is required. The final bill is generated and charged at the beginning of the next month. Models cannot be called while a payment is overdue.

Free quota

Granted quota, offset first

Feature validation and small-scale trials

Free of charge. Granted automatically when you activate Model Studio. The quota cannot be stacked or purchased separately.

The quota amount and validity period are fixed. After the quota is used up, billing automatically falls back to pay-as-you-go. While Stop when free quota is used up (worry-free mode) is turned on, savings plans cannot offset usage.

Turn on Stop when free quota is used up (worry-free mode) in the model settings to suspend calls as soon as the quota runs out, so that no pay-as-you-go charges accrue. While this switch is turned on, no savings plan is applied. Turn the switch off to resume calls and let the savings plan take effect.

Coding Plan

Monthly subscription

A fixed monthly budget for coding scenarios

A fixed monthly cost that does not vary with token usage.

Can be used only for programming tool scenarios. It cannot offset regular API calls or model inference fees incurred in the console. The subscription stops automatically at expiration, and mid-term cancellation and refunds are not supported.

The subscription stops automatically when it expires. Mid-term cancellation and refunds are not supported. If auto-renewal is enabled, disable it on the Coding Plan page.

Token Plan

One-off purchase of credits

Sharing one quota across a team

Credits are purchased per seat as a one-off payment.

Only some models are supported. The quota is independent of your account balance. Seats that have not consumed any usage can be unsubscribed on the My Subscriptions page.

Only some models are supported. You can unsubscribe individually from seats that have not consumed any usage on the My Subscriptions page of the Token Plan console.

AI general-purpose savings plan (recommended)

Commitment to a monthly spend in exchange for tiered discounts

Long-term steady use of large model services

Tiered discounts based on the monthly spend that you commit to: the higher the commitment, the deeper the discount. For the discount of each tier, see Savings plans and resource plans.

Commitment periods of 3, 6, 12, or 24 months are available. The quota is issued monthly and is not carried over to the next period. After the plan takes effect and starts offsetting usage, it generally cannot be unsubscribed and must run until it expires.

Covers all models. After the plan takes effect and starts offsetting usage, it generally cannot be unsubscribed and must run until it expires.

Resource plans are not offered on the international site, which provides savings plans only.For regular API call scenarios, choose the AI general-purpose savings plan first. For programming tool scenarios, choose the Coding Plan first. Choose an option based on these rules: a savings plan for long-term steady usage, a Token Plan when a team shares one quota, and a Coding Plan when you want a fixed monthly spend for coding scenarios. If you are only validating features, use up the free quota first.Model Studio is pay-as-you-go by default and does not grant token quotas in advance. Purchase a savings plan if you need to lock in a quota or reduce costs.For discount tiers, purchase steps, and effective-time rules, see Savings plans and resource plans. To stop billing for any of these options, see Stop billing.
Token Plan
Model Playground
  • Music generation
Statistics and Monitoring
Support