Setting Budgets and Alerts for Model Costs
When AI tools such as Claude Code, OpenClaw, Cursor, TRAE, and ZCode connect to MaaS, model usage incurs charges based on token consumption, video duration, or the number of images generated. Pricing also varies significantly by model. AI agent workflows often trigger frequent model calls, with a single task potentially involving multiple rounds of calls. Costs can add up quickly, especially when multiple users share an API key. Other factors, such as choosing an unsuitable model, setting an oversized context window, or using inefficient invocation strategies, can also cause unexpected cost spikes. In addition, the Individual Token Plan has a usage quota. Once the quota is exceeded, pay-per-use charges may apply or service may be interrupted. To help you keep spending under control, MaaS lets you set daily and monthly cost thresholds and alerts for rapid cost increases. These alerts help you track spending, detect unusual usage, manage budgets, allocate costs, and identify potential budget overruns. This allows enterprises and individual users to enjoy the productivity benefits of AI tools while keeping model usage costs and budget risks in check.
Constraints
Each user can create up to 100 budgets.
Each recipient can receive up to 100 budget alerts per day.
Budgets are monitored hourly, so actual costs or usage may exceed the budget before an alert is sent.
Enterprise master accounts that are not enrolled in financial management cannot set budgets for member accounts.
Step 1: Configure the Message Receiving Method
- Go to the Message Receiving Management page and select Finance.
- On the Finance page, configure the message receiving method and recipients for Cost Management notifications. Figure 1 Configuring the message receiving method
Step 2: Create a Model Cost Budget
- Go to the Budgets page and click Create Budget.
- On the Create Budget page, select Custom Budget and click Create Budget.
- Select Cost budget and click Next.
- Configure the cost budget by referring to the following table.
Table 1 Cost budget parameters Parameter
Description
Example Value
Specify Budget Name
Budget Name
Enter a unique name for the budget.
Only letters, digits, hyphens (-), and underscores (_) are supported.
deepseek-v4-1-flash cost budget
Configure Budget Details
Reset Period
Specify how often the budget is reset.
- Daily: The budget is tracked from 00:00 on the start date and reset at 00:00 every day.
- Monthly: The budget is tracked from the first day of the start month and reset at 00:00 on the first day of each month.
- Quarterly: The budget is tracked from the first day of the start quarter and reset at 00:00 on the first day of each quarter.
- Yearly: The budget is tracked from 00:00 on the start date and reset at 00:00 on January 1 each year.
Daily
Budget Duration
Recurring: Set Start Time to specify when the budget takes effect. The budget then remains recurring.
Expiring: Set Time Range to specify the budget's start and end times.
Recurring
Budgeted Amount
Set the budgeted amount in USD based on your business requirements.
1
Define Budget Scope
Linked Account
Retain the default setting.
-
Billing Mode
Specify the billing mode.
Pay-per-use
Specifications
Click Show more, select the models to include in the cost statistics, and click OK.
CAUTION:Only models that have been used are displayed. To include a model that has not yet been used, invoke the model and incur a charge. The model will appear in the list after 2 to 4 hours.
- MaaS model: Select ModelArts and then select a model. Figure 2 MaaS model
deepseek-v4.1-flash
Cost Type
- Original costs: costs of cloud services purchased at the list price with available discounts applied. Original costs are equivalent to the amount due in the bill. Before the billing date, original costs are treated as the estimated amounts.
- Amortized costs: prepaid amounts amortized on a daily basis. It may take about 24 to 48 hours before amortized costs are displayed. Before the billing date, amortized costs are only estimates.
When you set Cost Type to Original costs (amount due), you can toggle on Include discount to include both discount and truncated amount. In this case, the original cost is equivalent to the list price.
Original costs
- Click Next. Toggle on Budget Alerts, and set the alert threshold and the recipients for receiving alerts.
Table 2 Parameters for creating alerts for a cost budget Parameter
Description
Example Value
Alerts
A maximum of five thresholds can be set for each budget.
If the actual cost reaches a certain amount or a certain percentage of a budgeted amount, an alert will be reported.
The threshold can be a certain amount or a certain percentage of the budgeted amount.
- Amount: If the actual cost reaches a certain amount, an alert will be reported.
- (%) of budgeted amount: If the actual cost exceeds a certain percentage of the budgeted amount, an alert will be reported.
An alert will be reported when the actual cost reaches 80% of the budgeted amount.
Recipients
The contacts who will receive alerts. The account contact is the default recipient. A maximum of 10 recipients can be added for each budget alert.
If you want to add or modify recipient information, go to the Message Receiving Management > Recipient Management page in the Message Center.
-
Figure 3 Setting alert thresholds and recipients
- Click Next, confirm the model cost budget settings, and click Save. The cost budget is created successfully.
- Click a budget name to view the actual cost, estimated cost, and budget history on the cost budget details page. Figure 4 Budget list
Figure 5 Cost budget details
Alert Notifications
- Alert notifications are sent between 8:00 and 21:00 Beijing Time. If an alert is triggered between 21:01 and 7:59 the following day, the notification is sent at 8:00 the next day.
- When the actual cost reaches an alert threshold, the system sends an alert notification through your configured message receiving method.
- You will typically receive a notification within one hour after the actual cost reaches the alert threshold. Each message recipient can receive a maximum of 100 budget alert notifications per day. Plan your budgets accordingly.
- If a budget meets multiple alert thresholds, only one alert notification is sent during each check.
Suppose you set the budgeted amount to $100 USD and thresholds to 60%, 70%, and 80%. If the actual cost reaches $85 USD (85% of the budget), only one notification is sent, indicating that the actual cost has exceeded 80% of the budget.
- Each alert threshold triggers only one notification per reset period.
Suppose the reset period is monthly, the budget is $100 USD, and the alert threshold is set to 80%. When the actual cost reaches $80 USD (80% of the budget) during the month, the system sends one notification.
If you change the threshold to 90% later in the same month, the system checks against the updated threshold. When the actual cost reaches $90 USD (90% of the budget), another notification is sent.
FAQs
Q1: How do I set a budget for a custom endpoint?
An endpoint is not a billable item. Charges are based on the pricing items of the specific model invoked through the endpoint. Therefore, when setting a budget for an endpoint, select the model associated with that endpoint, rather than the endpoint itself.
Helpful Links
For details about how to set a budget, see Budgets.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot