Activation and billing overview

Updated at:

When you call LLM APIs, you must perform content moderation on user inputs and model outputs. This topic describes how to activate AI Guardrails and the available billing methods.

Important

After you activate AI Guardrails, content compliance detection is supported by default. To detect sensitive content or prompt attacks, you must turn on the corresponding feature switches in the console before you can use these two detection features. For more information, see "Enable detection features" later in this topic.

Prerequisites

Activating AI Guardrails requires your account to complete real-name verification.

Activate AI Guardrails

Activating AI Guardrails is free. You are charged based on actual usage. For billing details, see "Billing methods overview" later in this topic.

Select an access method

Select an access method based on your business scenario:

  • API access: Call the moderation service directly through API operations. This method is suitable for scenarios where you use AI Guardrails independently.

  • AI Gateway integration: Centrally manage moderation policies for multiple LLMs through AI Gateway. This method is suitable for scenarios where you call a mix of multiple models.

  • Model Studio integration: Call AI Guardrails directly in Model Studio. This method is suitable for users who already use Model Studio.

Activation steps

  1. Go to the AI Guardrails activation page.

  2. Carefully read and select the service agreement, and click Buy Now.

  3. After activation, log on to the AI Guardrails console and confirm that the service status is Activated.

Billing methods overview

AI Guardrails provides pay-as-you-go and savings plans, and you can also use resource plans:

  • Pay-as-you-go: A postpaid billing method. Activation is free, and you are charged based on actual usage. For the billing rules of each moderation type and information about overdue payments and top-ups, see Pay-as-you-go billing.

  • Savings plans: A prepaid discount solution. You can obtain call discounts by committing to a specified spend amount and usage period. For the applicable scope and purchase methods, see Savings plans and resource plans.

If your call volume is stable and predictable, savings plans can reduce unit costs. If your call volume fluctuates greatly, pay-as-you-go requires no upfront payment and is more flexible.

Enable detection features

  1. Log on to the AI Guardrails console. In the left-side navigation pane, choose Protection Config > Model Protection.

  2. In the detection item configuration list, find the target Service (the detection service that has been activated), and click Configuration in the Actions column to go to the Service management page.

  3. In the protection dimension area, turn the switches on the cards on or off to enable or disable the corresponding detection features:

    • Content Compliance: Enabled by default. Detects undesirable content such as pornography, violence, and political content. Billed separately.

    • Sensitive content detection: Detects personal information or enterprise sensitive data that may be leaked. Billed separately.

    • Prompt injection detection: Detects malicious prompts intended to bypass LLM security restrictions. Billed separately. This feature has been commercially billed since January 22, 2026. If you do not need it, turn off the corresponding switch in the console to avoid charges.

    • Malicious URL (public preview): Scans LLM content for malicious links. Free trial is available.

    • Model Hallucination (public preview): Detects false or inaccurate information generated by LLMs. Free trial is available.

    • Detection Agent: Detects LLM interaction content based on custom configurations and identifies business-specific risky content.

Note

After the feature is enabled, the switch of the corresponding feature is displayed as enabled.

Activation FAQ

How do I confirm whether AI Guardrails has been activated for my account?

You can verify the activation status in either of the following ways:

  1. Log on to the AI Guardrails console and check whether the service status is displayed as Activated.

  2. Log on to the Alibaba Cloud console, go to Expenses and Costs > Order Management, and search for "AI Guardrails" to check whether an activation record exists.

Note

Activation itself is free. You are charged only for actual calls.

How do I query the plan usage and remaining quota?

Go to the Resource Instance Management page in the Alibaba Cloud Billing Center to view the details, plan usage, and remaining calls of your Content Moderation resource plan. You can also view usage and bill details in the Expenses and Costs console. If no data is found, verify whether the current account has purchased a Content Moderation resource plan and check the purchase records.

How do I troubleshoot region mismatch and account mismatch?

If the region in which the console activates the service differs from the region available for API calls, calls may fail. First, check whether the account used for API calls is the same as the account that activated AI Guardrails. If they are different, switch to the correct account that has activated the service and try again, or activate the service again under the account that reported the error.