tencent cloud

Configuring Credit Budget

Download
Focus Mode
Font Size
Last updated: 2026-11-17 14:27:53
AI-Translated
This document describes how to configure credit budgets in the Tencent Cloud Model Routing console. By configuring credit budgets, you can control the spending limit for model calls and associate credit budgets with specific instances or API keys to achieve fine-grained cost management.

Introduction

A CMR credit budget supports configuring a maximum credit quota and a reset period. It can be associated with instances, user groups, or API keys to enforce budget limits.

Prerequisites

1. It is recommended to read Usage Constraints and Supported Models in advance for relevant information.
2. A CMR instance has been created. For detailed instructions, see Creating a CMR Instance.
3. A CMR access key (API Key) has been created. For detailed instructions, see Creating a CMR Access Key.
4. A user group has been created. For detailed instructions, see User Group Overview.

Operation Steps

Steps for Associating Credit Budgets

Step 1: Creating a Credit Budget

1. Log in to the CMR console and select Credit Management in the left sidebar.
2. On the Credit Budget page, click Create Credit Budget.

3. In the Create Credit Budget dialog box, select or enter the relevant parameters as needed, and click Next: Associate Objects.
Parameter
Description
Credit budget name
Custom budget name used to identify different budget purposes. Supports up to 255 characters.
Budget configuration
Includes the maximum credit limit and reset cycle.
Maximum credit quota: the maximum number of credits that can be consumed within a budget cycle. When the consumption of an associated object reaches this quota, it will be automatically blocked. Units can be selected from ones, thousands, ten thousands, millions, and hundred millions. Credit consumption = Input tokens (per million) × Input coefficient + Output tokens (per million) × Output coefficient. Actual consumption depends on the number of tokens per call and the model used, which is mainly determined by the coefficient configured for the model.
Reset cycle: the time interval at which the credit quota is automatically reset. Options include daily, weekly, and monthly.
Rate limit configuration
Can be configured for TPM and RPM.
TPM: Token per minute, the maximum number of tokens that can be processed per minute, unit: thousands/minute. Value range: 1-100000.
RPM: Requests per minute, the maximum number of requests that can be processed per minute, unit: requests/minute. Value range: 1-10000.
4. You can associate instances, user groups, or API keys. Alternatively, you can skip the association for now and click Done to complete the configuration.

Step 2: Editing a Credit Budget

1. In the list on the Credit Budget tab, locate the target budget entry.
2. In the operation column, click Edit.
3. Modify parameters such as the credit budget name, credit budget configuration, or rate limit configuration as needed.
4. Click OK to save the changes.

Step 3: Associating Objects

1. In the list on the Credit Budget tab, locate the target budget entry.
2. In the operation column, click Associate Objects.
3. Select the instances, user groups, or API keys to associate, and click OK.
Note:
A credit budget can be associated with multiple instances or multiple API keys at the same time. After association, calls from the corresponding objects are constrained by the budget configuration.
After an API Key is bound to a credit budget, it is subject not only to the credit budget limit of the API Key itself, but also to the rate limit or credit budget limit configured on the CMR instance.

Steps for Disassociating Credit Budgets

Step 1: Disassociating Objects

1. In the list on the Credit Budget tab, locate the target budget entry.
2. In the Associated Objects column, click Number of Associated Objects.
3. In the dialog box, select the items and click Batch Disassociate. Alternatively, in the operation column of the target, click Disassociate.
4. Confirm the information of the objects to be disassociated, and click OK to complete the disassociation.

Step 2: Deleting a Credit Budget

1. In the list on the Credit Budget tab, select the target budget entry.
2. Click Delete above the list, or click Delete in the operation column.
3. In the confirmation dialog box, click OK.
Note:
A credit budget with associated objects cannot be deleted. Disassociate the objects first, and then delete the credit budget.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback