Skip to main content

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.

Cost Overview

Open Cost. The page shows costs for model calls, model training, and model deployment.
  1. 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.
  2. Select a grouping dimension: by model, product category, API Key, workspace, region, or service site. API Keys are displayed by ID, not in plaintext.
  3. 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.
  4. View Bill Trend: Shows only post-paid bill amounts and excludes subscription fees. Bills for the current month may be delayed.
  5. To set a budget or alert, go to Budget Management.
To view earlier costs or calculate total historical spending, export bills month by month from the Alibaba Cloud Expenses and Costs Billing Details page 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.

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.
Some fields in Bill details may be incomplete. For complete fields, go to the Billing Details page in Alibaba Cloud Expenses and Costs and check the instance ID rules in Billing details below.

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 following field format descriptions apply to model inference bills. The instance ID field in model training and tuning bills is delimited by the English exclamation mark !, 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.
The "Instance ID" field uses semicolons (;) 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:
  1. 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.
  2. 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.
  3. Model name: The model used for the call, for example, qwen-max.
  4. Input/output type: The billable usage type for this bill entry, such as input tokens (input_token) or output tokens (output_token).
  5. Invocation channel: The entry point that initiated the call. For common values, see Invocation channel descriptions below.
  6. Free quota exhaustion flag: 0 indicates that the feature is disabled, and 1 indicates that it is enabled.
Some bills omit trailing empty fields, so the actual number of segments may be less than six. If the fifth segment is 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;0
  • 53618;llm-xxx;qwen-max;output_token;;0

3. Data traceability and terms

  • Query API Key: Copy the ApiKeyID from your bill and go to the API Key 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:
    • (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.
To proactively control cost limits in pay-as-you-go scenarios, go to Budget Management to set a monthly budget and enable "Stop immediately when the budget is reached".
  • 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

Reason:
  • 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.
Solution: Wait for the corresponding billing delay to elapse before querying again.
Reason: The same model is billed separately by billing type (input tokens, output tokens, cache hits, etc.) and call channel (API calls, console experience, etc.). For example, a single qwen3.6-plus conversation generates two records: "Input Token" and "Output Token".Solution: Use the Instance ID field in bill details to distinguish the specific meaning of each record.
Reason: The "Billing Item" in bills uniformly displays "LLM text consumption" and does not directly show the model name.Solution: Check the Instance ID (billing granularity) column on the bill details page. The field is delimited by English semicolons, and the field immediately after the Workspace ID (such as llm-xxx) is the model name. Example: 12xxx;llm-xxx; qwen3.6-plus ;context_0-128k_input_token;aicenter;0 indicates the qwen3.6-plus model.
Go to the Alibaba Cloud Model Studio console, select the target region in the upper-right corner, and select Costs and Usage > Model Usage in the left-side navigation pane.
No. Alibaba Cloud pay-as-you-go adopts a "reserve + monthly settlement" model — the system first freezes a portion of your credit, and after the monthly billing period ends (at the beginning of the next month), the final bill is generated and the actual deduction is made.
Reason: Add-on features of Model Studio such as web search are billed separately by call count (pay-as-you-go) and billed apart from model inference charges. Even if you have not actively operated the console recently, if the 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:
  1. 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.
  2. Check whether enable_search is enabled in your application code or Model Studio application configurations; if web search is no longer needed, set the parameter to false or remove it.
  3. 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.
The overdue payment impact described in this document is isolated by commodity Code and applies only to commodity Codes within Model Studio bills. It is not used to determine whether other Alibaba Cloud products (such as ECS and OSS) remain available or continue to be billed. When overdue payments occur in Model Studio, the availability and billing rules of other products under an account with overdue payments are subject to the documentation of those products themselves.Conversely, overdue payments of other products can affect Model Studio: the Alibaba Cloud account balance is at the account level. If other products such as ECS have unsettled fees, the account's available balance becomes negative and Model Studio will also indicate overdue payments. Model Studio becomes available again after the overdue payments of the corresponding products are settled (see "Why did overdue charges occur even though I barely used the service?" above).
Reason:
  • 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.
Solution:
  • 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.
If you suspect that your account has been compromised by others and incurred unexpected charges, follow these steps to investigate:
  1. Filter Model Studio in the billing details and check the ApiKeyID in the Instance ID (billing granularity) column to identify the API Key that generated the charges.
  2. 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.
  3. 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.
  4. 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.
Reason: Model Studio uses the pay-as-you-go (postpaid) pattern by default and does not support granting Token quota in advance; free quota and savings plans are merely deduction methods for pay-as-you-go fees, whereas Coding Plan and Token Plan are subscription packages independent of the account balance. When multiple solutions coexist, the deduction order is: free quota> savings plans for other models > AI general-purpose savings plan > pay-as-you-go. That is, the free quota is used first, and after it is exhausted, savings plans are deducted in order; once all same-type quota has expired or been fully deducted, the excess is automatically converted to pay-as-you-go and settled with the account balance.Solution: First choose a solution based on your call volume and willingness to commit, then confirm it against the key rules in the table below:

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

Selection conclusion: for standard API call scenarios, prioritize the AI general-purpose savings plan; for coding tool scenarios, prioritize Coding Plan. For long-term, stable use of large model services, choose the savings plan; if you need shared quota for team collaboration, choose Token Plan; for coding scenarios where you want to lock in monthly costs, choose Coding Plan; if you are only doing feature verification, use up the free quota first, then decide whether to purchase a discount plan based on actual usage. The discount tiers, purchase entries, and activation rules of each plan can be confirmed in Savings plans and resource packages; for operations to stop billing for each plan, see the Stop Billing (Disable the Service) section in this document.
  1. Go to the Billing Details page.
  2. Click the Preferences (gear) icon above the billing table.
  3. In the Customize Columns dialog box, select Commodity Code. Return to the billing table to view the commodity code for each bill.