All AI Builder credits have been consumed
This article provides a resolution for the "All AI Builder credits in this environment have been consumed" error that occurs when you run a flow in Microsoft Power Platform.
The resolution also addresses other issues related to AI Builder credit consumption. For example, you receive the "You've consumed all your credits" or "You need an AI Builder license to use this component" message or the "EntitlementNotAvailable" or "QuotaExceeded" error code.
Applies to: AI Builder
Symptoms
Here are the different symptoms of this issue:
A banner shows the "Some environments have consumed all or almost all AI Builder credits" message on the Capacity page in the Power Platform admin center.
A banner shows the "You've consumed all your AI Builder credits" message on the AI Builder page.
Maker actions (Model creation, Model edit, and Quick test) are blocked on the AI Builder page.
A flow stops with the "All AI Builder credits in this environment have been consumed" error.
Note
This error is displayed in the Error panel on the flow run page.
The Error Details of the AI Builder tile mentions one of the following:
- Code="EntitlementNotAvailable"
- Code="QuotaExceeded"
- Message="Credit usage exceeds allocation."
In Power Apps, a banner shows the "You need an AI Builder license to use this component" message when you try to perform an AI Builder action.
Cause
This issue occurs because AI Builder actions consume AI Builder credits. These credits come from tenant-level or environment-level allocations.
The environment's consumption is computed each day from the beginning of the month.
- When the consumption is close to the allocated credits, a banner is displayed on the Capacity page in the Power Platform admin center, and a notification email is sent to the administrator.
- When the consumption starts exceeding the tenant-level or environment-level credits ("simple overage"), a banner is displayed on the AI Builder page, and Maker actions are blocked. In "simple overage", AI Builder actions in flows and apps are still allowed and continue consuming credits.
- When the consumption is much higher than the tenant-level or environment-level credits ("important overage"), AI Builder actions in flows and apps are blocked, and an error might occur in flows and apps.
Resolution
To solve this issue, add more credits to your environment.
If credits come from the tenant level (unassigned credits), you need to add credits at the tenant level. This can be done by deallocating credits from other environments or by purchasing more.
If credits come from the environment level, you need to allocate more credits to your environment. This can be done by using the existing tenant-level environment or by adding credits at the tenant level first (using purchase or environment deallocation).
Note
If the Allow users to consume unassigned credit setting is disabled, the unassigned credits can't be used. You can go to the Power Platform admin center, select Settings, and then open the AI Builder credit page to enable this setting.
How to determine the source and number of allocated, unassigned, and owned credits
You need to be the administrator of your environment to perform these actions.
Sign in to the Power Platform admin center.
On the left pane, select Resources > Capacity.
On the right pane, select Add-ons.
The environments that have allocated AI Builder credits are listed with the number of allocated credits.
If an environment isn't listed or listed with zero AI Builder credits, the credits come from the tenant level. This step also provides the number of owned credits.
- On the right pane, select Summary.
- At the bottom of the pane, in the Add-ons section, the AI Builder credits indicates the total number of credits allocated to environments among the total of owned credits. The amount of tenant-level credits (unassigned credits) is the difference between these numbers.
How to change the number of environment-allocated credits
You need to be the administrator of your environment to perform these actions.
- Sign in to the Power Platform admin center.
- On the left pane, select Resources > Capacity.
- On the right pane, select Add-ons.
- The environments that have allocated AI Builder credits are listed with the number of allocated credits.
- Select Assign to an environment.
- In the right-side panel, select your environment.
- Modify the number of AI Builder credits. If the remaining credits aren't enough, you can deallocate credits from other environments or purchase more.
How to change the number of tenant-level credits (unassigned credits) by deallocating credits from environments
You need to be the administrator of your environment to perform these actions.
- Sign in to the Power Platform admin center.
- On the left pane, select Resources > Capacity.
- On the right pane, select Add-ons.
- The environments that have allocated AI Builder credits are listed with the number of allocated credits.
- Select Assign to an environment.
- In the right-side panel, select an environment.
- Reduce the number of AI Builder credits.
Note
If the Allow users to consume unassigned credit setting is disabled, the unassigned credits can't be used. You can go to the Power Platform admin center, select Settings, and then open the AI Builder credit page to enable this setting.
How to change the number of tenant-level credits (unassigned credits) by purchasing more AI Builder credits
You need to be the billing administrator of your tenant to perform these actions.
- Sign in to the Microsoft 365 admin center.
- On the left pane, select Billing > Purchase services.
- Search for AI Builder.
- Select AI Builder Capacity Add-on T1, AI Builder Capacity Add-on T2 (min 10 packs), or AI Builder Capacity Add-on T3 (min 50 packs), depending on how many packs you need. Each pack provides 1 million AI Builder credits.
- Follow the purchase process.
- Once purchased, follow the steps in How to change the number of environment-allocated credits if the credits come from the environment level.
Note
If the Allow users to consume unassigned credit setting is disabled, the unassigned credits can't be used. You can go to the Power Platform admin center, select Settings, and then open the AI Builder credit page to enable this setting.
How to evaluate the amount of credits to add
You need to be the administrator of your environment to perform these actions.
- Sign in to the Power Platform admin center.
- On the left pane, select Resources > Capacity.
- On the right pane, select Summary.
- At the bottom of the pane, in the Add-ons section, select Download reports.
- Select New > AI Builder > Submit.
- Select Refresh until the report with the latest report date is marked as Completed.
- Select the latest report and select Download. A .csv file is downloaded to your computer.
- Open the .csv file in Excel. It contains the AI Builder credit consumption per day, user, and environment.
- By adding all your environment's consumption for the current month, you can evaluate how many credits this environment needs for the entire month.
AI Builder purchase takes time, and I urgently need to unblock my flow or app. What can I do?
You can find the Request extension button to add 200,000 extension credits for the current month.
- On the AI Builder page, you might find the Request extension button in the "You've consumed all your AI Builder credits" overage banner.
- In the Power Platform admin center, you might find the Request extension button in the "Some environments have consumed all or almost all AI Builder credits" banner.
Note
- These credits can't be allocated or assigned and can be used directly by any environment in overage.
- The number of extension requests per month and per year is limited.
- Each extension request sends a notification email to the Power Platform admin informing that extension credits have been requested and granted.
- If the Allow users to consume unassigned credit setting is disabled in the Power Platform admin center, the environment without assigned credits is blocked, and extension credits won't help. You can go to the Power Platform admin center, select Settings, and then open the AI Builder credit page to enable this setting.
Resources
For more information, see AI Builder licensing.