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.
Cost Overview
Open Cost.
The page shows costs for model calls, model training, and model deployment.
- Select a statistical period and time range. You can view data by minute, hour, day, or month: minute supports up to 1 day, hour up to 7 days, day up to 31 days, and month up to 12 months.
- Select a grouping dimension: by model, product category, API Key, workspace, region, or service site. API Keys are displayed by ID, not in plaintext.
- View the cost cards:
- Total Cost: The total cost for the selected time range. You can click Go to Invoice.
- Subscription Cost: Subscription fees for Token Plan, provisioned throughput, model units, savings plans, and similar items.
- Bill Cost: Pay-as-you-go costs for model calls, training, and deployment.
- View Bill Trend: Shows only post-paid bill amounts and excludes subscription fees. Bills for the current month may be delayed.
- To set a budget or alert, go to Budget Management.
- Cost data may be delayed. For the latest data, see Alibaba Cloud Expenses and Costs.
- Only cost data from April 1, 2026 onward is available.
- Go to Expenses and Costs > Billing Details.
- Set Product Name to Alibaba Cloud Model Studio.
- 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.
- Sum the exported data across all months to obtain your total historical spending.
Bill details
Open Billing Details.
Bill details are displayed by model calls, model training, provisioned throughput units, and dedicated throughput units. The page includes only post-paid bill costs and excludes prepaid orders. Only data from April 1, 2026 onward is available.
- Filters: Filter by API Key, model, inference type, and time range. Inference types include real-time inference, offline batch inference, and online batch inference.
- Table columns: Time, model, inference type, specification, workspace, billed usage, and payable amount. Specification indicates billing specifications such as input/output, cache hits, and video resolution.
- View calculation: Click Details for a row to open the Cost details - model name drawer. View Payable amount = Total catalog usage price - Total discounts, along with the calculation of original usage, usage after free quota deduction, total catalog usage price, and payable amount. Total discounts include savings plan deductions, promotional offers, and coupons. If all usage is covered by the free quota, the usage after free quota deduction is 0 and the payable amount is 0.
- Download: Click the download icon in the upper-right corner to export bills under the current filters. Click Download records to view exports from the last 7 days.
- Duration-based billable items: On the model training, provisioned throughput unit, and dedicated throughput unit tabs, select By minute for billable items charged by usage × duration. When you query by month, day, or hour, duration information is temporarily unavailable.
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
- On the Billing Details page, select a billing period.
- Select Product as Alibaba Cloud Model Studio, and click Search.
- In the upper-right corner of the bill list, click the Export Bill CSV to download the bill.
- Open the file, locate the Instance ID column, and interpret it using the rules described in the next section.
2. Interpret key fields
!, in the common format Workspace ID!Region!Training job ID, and can be matched to bill entries through Product Name (for example, Model Studio LLM Training). Instance ID formats also differ for other billing items such as Token Plan, knowledge base, and web search, to which the rules in this section do not apply.;) as delimiters. From left to right, the segments are ApiKeyID;workspace ID;model name;input/output type;invocation channel;free quota exhaustion flag. The segments have the following meanings:
ApiKeyID: The ID of the API key used for the call. If this segment is empty, the call did not use an API key and typically came from the console. If it is not empty, the call was made from code, and you can use this ID to identify the specific API key.Workspace ID: The workspace that the call belongs to (for example,llm-xxx). A workspace is the smallest unit for permission management (models and users) and for cost allocation in Alibaba Cloud bills.Model name: The model used for the call, for example,qwen-max.Input/output type: The billable usage type for this bill entry, such as input tokens (input_token) or output tokens (output_token).Invocation channel: The entry point that initiated the call. For common values, see Invocation channel descriptions below.Free quota exhaustion flag:0indicates that the feature is disabled, and1indicates that it is enabled.
0 or 1, it is the free quota exhaustion flag and the invocation channel is empty. If the fifth segment is a channel code, it is the invocation channel and the free quota exhaustion flag is empty. Bills for tasks such as batch inference and model evaluation may be generated later than the call time. The actual bill is authoritative.
Examples:
1210386;llm-xxx;qwen-max;output_token;bailian-claude-code-proxy;0;llm-xxx;qwen-max;input_token;aicenter;053618;llm-xxx;qwen-max;output_token;;0
3. Data traceability and terms
-
Query API Key: Copy the
ApiKeyIDfrom your bill and go to the API Key page to find the corresponding key name. -
Query workspace: Copy the
workspace IDfrom your bill. Go to the Workspaces page to identify the specific workspace. -
Invocation channel descriptions:
(empty): The model is called through the API.aicenter: The model is called through the console Experience Center.assistant-api: The model is called through the Assistant API.responses: The model is called through the Responses API.evalModel: The model is called through model evaluation.batch: The model is called through batch inference.bailian-claude-code-proxy: The model is called through the Anthropic-compatible API.app: The model is called through an application.agent1: The model is called through agent applications (Agent 1.0).agent2: The model is called through the new version of agent applications (Agent 2.0).managed agent: The model is called through ManagedAgent managed agents.RAG: The model is called through knowledge base retrieval or Q&A.
Overdue payments
An account is considered overdue if available credit < 0. The following notes apply only to Model Studio bills. Overdue restrictions are isolated by Commodity Code. When a commodity code becomes overdue, the services corresponding to that commodity code are unavailable, and they recover after the overdue amount is settled; services corresponding to other commodity codes remain available and continue to be billed. For example, when Model Studio Capacity Reservation in a bill becomes overdue, the provisioned throughput deployment services under that commodity are unavailable, but Model Studio model calling is not affected.
- If you still have a free quota or savings plan: These are also isolated by commodity code. They offset only commodity codes that have no overdue payment and cannot be used for a commodity code that is overdue.
- If you have purchased a Coding Plan or Token Plan: The plan's quota is independent of your account balance and can be used during the overdue period. However, automatic renewal will fail, and you cannot renew the plan after it expires.
Billing for asynchronous tasks when your account is overdue
Models for image and video generation use an asynchronous task mechanism. Task submission, generation completion, and fee settlement may occur at different times.
1. Overdue payment during task execution
If your account is in a normal state when you submit a task, the task can be submitted and executed normally. If your account becomes overdue while the task is running, submitted tasks may still continue to execute.
For tasks that complete successfully, the system still bills you based on actual usage even if your account is already overdue when the task completes. The related fees are added to your account bill and may further increase the overdue amount.
2. Overdue payment again after recharge
Because there is a time lag between asynchronous task execution and fee settlement, some tasks may complete while your account is overdue but their fees have not yet been settled.
Therefore, after you recharge your account to settle the overdue amount, you may still receive bills for previously submitted tasks, which can put your account into an overdue state again.
3. Recommendations
We recommend that you monitor your account balance and bill changes in a timely manner. In particular, when you submit image and video generation and other asynchronous tasks in batches, keep sufficient account balance to avoid the account becoming overdue again due to delayed settlement of task fees.
Note: Fees for asynchronous tasks are subject to the actual billing rules and the final bill. An overdue account does not mean that fees incurred by previously submitted tasks will be waived.
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 API calls in your code and disable calls from the console Experience Center, and no further charges will be incurred. To prevent accidental calls, you can delete created keys on the API Key page.
- Stop model training: No charges are incurred when no training jobs are in progress.
- Stop Coding Plan billing: Coding Plan is a monthly subscription product that stops automatically at expiration; cancellation and refunds are not supported mid-term. If auto-renewal is enabled, disable it on the Coding Plan page.
- Unsubscribe from Token Plan Team Edition: On the My Subscriptions page of the Token Plan console, unsubscribe by seat. Seats with no usage can be unsubscribed, and refunds are returned to the original payment account. If you no longer want to renew, disable auto-renewal.
-
Stop model deployment: Take offline deployed models. The product names corresponding to different billing methods in bills and the subsequent operations are as follows:
- Billed by token calls (pay-as-you-go): The bill product name is Model Studio LLM Inference. After the deployment is taken offline, no further call charges are incurred for that deployment; you can also delete the API Key to prevent accidental calls.
- Billed by compute units or Model Units (pay-as-you-go): The bill product name is Model Studio Model Unit (pay-as-you-go). After the deployment is taken offline, duration-based billing stops.
- Billed by provisioned throughput units (pay-as-you-go, by hour): The bill product name is Model Studio Capacity Reservation (pay-as-you-go). After the deployment is taken offline, hourly billing stops.
- Billed by provisioned throughput units (upfront, by day): The bill product name is Model Studio Capacity Reservation (upfront). After the deployment is taken offline, you must also unsubscribe from the instance on the Unsubscribe Management page. Upon unsubscription, the used portion is settled at a factor of 1.2 (for more information, see Unsubscription instructions), and the remaining amount is refunded.
FAQ
Why do - or empty values appear in Billing Overview or bill trends?
Why do - or empty values appear in Billing Overview or bill trends?
- Data for fine-grained dimensions is delayed; when a call has just occurred, "-" may be displayed, and the actual value appears after a few or a dozen minutes.
- An empty API Key usually indicates that the call came from a console page.
- For calls initiated through Batch Chat, data related to the API Key ID is empty.
- The region information of some models is empty.
- The invocation method of speech models is empty.
Why is there no bill after calling a model?
Why is there no bill after calling a model?
- Billing delay: Model inference bills are aggregated by minute and usually generated 2~10 minutes after a call; batch inference, model training, and knowledge base bills are aggregated by hour and may be further delayed during peak business hours.
- Non-commercialized models used: Models in public or invited beta do not generate bill records.
Why does the same model have multiple records in the bill?
Why does the same model have multiple records in the bill?
Instance ID field in bill details to distinguish the specific meaning of each record.Many rows in the bill are all named LLM text consumption; how do I tell which model they belong to?
Many rows in the bill are all named LLM text consumption; how do I tell which model they belong to?
12xxx;llm-xxx; qwen3.6-plus ;context_0-128k_input_token;aicenter;0 indicates the qwen3.6-plus model.Where can I view model call counts and statistics?
Where can I view model call counts and statistics?
Does pay-as-you-go deduct charges in real time?
Does pay-as-you-go deduct charges in real time?
Why am I overdue even though I barely used the service?
Why am I overdue even though I barely used the service?
enable_search parameter is enabled in applications or code created earlier, each call still incurs web search charges.Alibaba Cloud account balance is account-level: Model Studio/Qwen accounts are shared with the Alibaba Cloud account. If other products under your Alibaba Cloud account (such as ECS, OSS, and other pay-as-you-go products) have unsettled charges, your available account credit becomes negative, and you are prompted as overdue even if you have not used Model Studio/Qwen. After the overdue charges of the corresponding products are settled, Model Studio/Qwen can be used normally again.Solution:- In bill details, filter for Model Studio and check the Instance ID (billing granularity) column to identify the model names and call channels that generated the charges.
- Check whether
enable_searchis enabled in your application code or Model Studio application configurations; if web search is no longer needed, set the parameter tofalseor remove it. - If all calls have stopped but charges continue, check whether other API Keys or applications are still running. You can troubleshoot them one by one or delete unused keys on the API Key page.
Will an overdue Model Studio payment affect other Alibaba Cloud products such as ECS?
Will an overdue Model Studio payment affect other Alibaba Cloud products such as ECS?
Why was my balance quickly depleted within a short time?
Why was my balance quickly depleted within a short time?
- Input Token accumulation in long-context conversations: When the same document is repeatedly included in a long-context conversation, the input Token of each request grows as the context accumulates, and the Token consumption of a single call is far higher than that of an ordinary short conversation. For example, in an actual investigation, 43 out of 47 calls had input Token reaching 580,000 to 600,000, with total input Token exceeding 25 million, depleting the CNY 120 balance and resulting in overdue payments within about 20 minutes.
- Balance alerts have an upper limit on reminder frequency: When the account's available balance falls below the alert threshold, the system notifies the account contact by email. If notifications are not checked in time, the balance may be depleted between two reminders.
- Billing statement is delayed: Model inference bills are aggregated and issued by minute, so bills generated by delayed statement may still be received after the model service is suspended, and the overdue amount may continue to increase after service suspension.
- View the Token consumption of individual calls on the Model Usage page to check whether high-Token requests exist.
- Set the available funds alert on the Billing Overview page and pay timely attention to alert notifications.
- To stop billing immediately, delete API Keys that are no longer in use on the API Key page.
How do I determine whether my account has been compromised?
How do I determine whether my account has been compromised?
- Filter Model Studio in the billing details and check the
ApiKeyIDin the Instance ID (billing granularity) column to identify the API Key that generated the charges. - Go to the API Key page and check the Created At of each Key to determine whether it was created by you. The API Key page shows only the creation time, not the call time.
- Check the call time distribution to determine whether there are abnormal call patterns not initiated by you: go to the Model Usage page, filter by Model or API Key ID, and switch to the List view to view the call time distribution.
- If unauthorized calls are found, immediately delete the corresponding API Key on the API Key page and generate a new one. Update all legitimate callers to use the new Key.
How do I choose between pay-as-you-go billing, free quota, Coding Plan, and savings plans?
How do I choose between pay-as-you-go billing, free quota, Coding Plan, and savings plans?
Solution | Billing Mode | Applicable Scenario | Price Level | Limits | Key Rules |
|---|---|---|---|---|---|
Pay-as-you-go billing (default) | Postpaid; billed based on the actual usage of input/output Token | Highly fluctuating usage; trial first and then evaluate | Settled based on the actual usage of input/output Token; no discounts; the unit Token price is the highest among all solutions | No upfront purchase required; ready to use at any time; whether overdue payments affect calls depends on the corresponding commodity Code | Adopts "pre-hold + monthly settlement": the final bill is generated and the actual deduction is made after the monthly billing period ends (at the beginning of the next month); no upfront purchase required; whether overdue payments affect calls depends on the corresponding commodity Code |
Free quota | Complimentary quota that is automatically deducted after the model service is activated | Feature verification and small-scale trials | CNY 0; automatically granted after the model service is activated; cannot be purchased additionally | Fixed quota and validity period; automatically converted to pay-as-you-go after depletion; once Free Quota Only (worry-free mode) is enabled, savings plans cannot be used for deduction | Highest priority in the deduction order; other solutions are deducted only after it is exhausted; after Free Quota Only (that is, worry-free mode) is enabled in model settings, the service is automatically stopped when the quota is depleted and no further pay-as-you-go bills are generated. In this case, savings plans cannot be used for deduction; you must manually disable this feature before the service is restored and switched to savings plan deduction |
Savings plan (AI general-purpose, recommended) | Commit to a monthly spend for 3, 6, 12, or 24 months in exchange for tiered discounts, up to 53% off | Long-term, stable use of large model services | Tiered discounts based on the committed monthly spend—the higher the committed amount, the greater the discount, up to 53% off; for the specific discount tiers, see Savings plans and resource packages | The commitment period is 3, 6, 12, or 24 months; the quota is issued monthly, and unused quota in the current month does not roll over to the next cycle; once it takes effect and deductions have occurred, unsubscription is generally not supported | Applicable to all models—one purchase can be used across models; it takes effect immediately after purchase and only offsets fees incurred after it takes effect; the quota is issued on a dynamic monthly basis, and unused quota in the current month does not roll over to the next cycle; once it takes effect and any deduction has occurred, unsubscription is generally not supported and you can only wait for natural expiration |
Coding Plan | Monthly subscription with a fixed monthly investment | Coding scenarios that require a fixed monthly cost | CNY 200/month; the fixed monthly fee does not fluctuate with Token usage | Only applicable to coding tool scenarios, and cannot offset fees from standard API calls or console inference; it stops automatically upon expiration, and cancellation or refund before expiry is not supported | The plan quota is independent of your account balance and remains usable while your account is in arrears, but this will cause auto-renewal to fail; it stops automatically upon expiration, and cancellation or refund before expiry is not supported; if auto-renewal is enabled, disable it on the Coding Plan page |
Token Plan | One-time purchase of credits with a per-seat subscription | Shared quota for team collaboration | One-time payment; the fee increases with the number of seats and the amount of credits purchased | Only supports selected models; the quota is independent of your account balance; seats with no usage consumption can be unsubscribed | Only supports selected models; the plan quota is independent of your account balance; seats with no usage consumption can be unsubscribed per seat on the My Subscriptions page in the Token Plan console, and refunds are returned to the original payment account |
How do I query the corresponding commodity code?
How do I query the corresponding commodity code?
- Go to the Billing Details page.
- Click the Preferences (gear) icon above the billing table.
- In the Customize Columns dialog box, select Commodity Code. Return to the billing table to view the commodity code for each bill.