Hi, I faced this error when using AI Agent in ABP Studio: Your AI provider account has insufficient credits. Please add credits to your account and try again. (This request requires more credits, or fewer max_tokens. You requested up to 49152 tokens, but can only afford 21371. To increase, visit https://your AI provider dashboard/workspaces/abpio-org-fc5b37976fa2101582613a07dce2dbd3/keys/7789e02e771ccb6e496e8923f1dfa1b2434b4903cc9e16f3e522826fbf29a938 and adjust the key's total limit)
What is the link to go to in order to increase the credits?
Regards
8 Answer(s)
-
0
- The message you got is coming from your selected AI provider, not from ABP Studio credits. So the place to “increase credits” is the billing/credits page of the AI provider account whose API key you configured in ABP Studio.
- The URL shown in the error (
…/workspaces/.../keys/...) is a provider-dashboard deep link and is specific to your provider and workspace; ABP Studio can’t generate a universal “add credits” link.
What you should do
- In ABP Studio, open AI Assistant / AI Agent settings and check which provider and API key you are using.
- Go to that provider’s dashboard and add funds / upgrade plan / raise the key’s spending limit for that key/workspace (the error indicates the key has a total limit set).
- As an immediate workaround, lower the request size:
- Reduce max_tokens (your request tried up to
49152) - Reduce context / attachments / selected files for the agent run
- Reduce max_tokens (your request tried up to
If this is about ABP Studio’s built-in AI credits/subscription or account-side provisioning, that’s a licensing/billing topic—please contact ABP: https://abp.io/contact
Links (validated):
- https://abp.io/docs/10.4/studio/overview
- https://abp.io/contact
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
- In ABP Studio, open the left sidebar and click the AI icon. This opens the AI Assistant panel. From there you can use the AI Assistant / Agent UI (and it also shows the credits info in that panel).
If you meant the place where you change the AI provider / API key / limits, that configuration is not documented in the verified ABP Studio docs I can access right now.
Links (validated):
- https://abp.io/docs/10.4/studio/overview
- https://abp.io/studio/ai-agent
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
In ABP Studio, the AI Assistant panel is only available when the AI Assistant feature is enabled and the UI shows the AI icon in the left sidebar. According to the ABP Studio docs, you open it by clicking the AI icon on the left sidebar. If you don’t see that icon (like in your screenshot), it typically means AI Assistant is not available/enabled in your current ABP Studio build or configuration.
For ABP AI Agent, the UI in your screenshot already shows an “abp AI Agent” area on the Home screen, but it also says “Open a solution to get started.” So:
- Click Open solution (or open an
.abpslnfrom Recent Solutions). - After the solution is loaded/analyzed, the Agent UI becomes available from within the solution context (the Home tile alone is not the chat panel).
- Click Open solution (or open an
If you still can’t find any entry point after opening a solution, this is not covered in the verified docs beyond “AI icon in the left sidebar”, so the most reliable route is to contact ABP support with your ABP Studio version (Help -> About) and that screenshot: https://abp.io/contact
Sources (validated):
- https://abp.io/docs/10.4/studio/overview
- https://abp.io/studio/ai-agent
- https://abp.io/contact
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
The URL in the error message isn't meant for you to open — it points to an internal account that you don't have access to. So there's no link to click directly from that error.
The correct place to top up is the AI Credits section on your organization page:
- Go to https://abp.io/my-organizations/
- Select your TCOM organization
- Scroll to the AI Credits section (or use the
#ai-creditsanchor) - Under Top up AI credits, enter the amount in USD (minimum $10, in multiples of 10) and click Buy AI credits
AI credits are purchased per organization and shared across all developers in it. The balance updates automatically after payment, and ABP Studio will pick it up on the next request — you don't need to configure any API key yourself.
Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)


