Skip to main content

AI Spend Management

As more teams build on Retool, AI use grows with them. More builders, larger apps, and more AI-powered workflows all draw on the same monthly allocation of AI credits or consume BYOK tokens from your model provider account. Without a plan, organizations usually find out about their AI spend the day builders can no longer prompt.

This resource is for platform owners and Center of Excellence (CoE) leads responsible for running Retool at scale. It covers how AI spend works on Retool, what drives it, how to see it, how to control it, and how to build an operating rhythm so AI usage grows predictably.

note

This resource covers AI credit and token spend. For the infrastructure costs of running Retool Self-hosted (compute, database, storage), refer to Cloud Cost Management.

What does AI power in Retool?​

Retool uses AI Models for building Apps, Queries, Agents, running AI logic in Agents, and executing AI Actions in Apps, Workflows, and Agent Custom Tools.

App Building​

Retool App Builder provides its core building experience via a chat-based interaction. Builders can select model providers during this process.

App Builder
App Builder

Ask AI​

Query Builder in Retool Classic supports asking AI to help in generating SQL and JavaScript within the Query Editor.

Ask AI in the Query Editor
Ask AI in the Query Editor

Agent Building​

Retool Agent Builder uses AI prompts to help define the Agent Configuration and Custom Tools creation.

Custom Tool/Function Generator
Custom Tool/Function Generator

Agents​

Retool Agents employ AI Models to execute pre-defined configuration and tool selection.

Agent Configuration
Agent Configuration

AI Actions​

Apps, Workflows, Agent Custom Tools can employ AI Actions, including summarization, generation, classification, and more. For example, classifying support tickets' priority based on content within the ticket.

AI Actions example
AI Actions example

Access to these features/settings is enabled/disabled under Settings > AI.

AI features
AI features

What AI spend options do I have?​

Retool supports two options for your AI spend. The first is Retool-managed keys, and the second is Bring your own key (BYOK), where you use your existing API key with a model provider. The following table provides additional details.

Two ways to pay for AI​

Retool-managed keysBring your own key (BYOK)
Who provides the modelRetoolYour organization's provider account (for example, OpenAI, Anthropic, Azure OpenAI, Bedrock)
How usage is measuredAI creditsTokens, billed by your provider
Where you see usageAI Monitoring page, Retool managed keys viewAI Monitoring page, BYOK view, plus your provider's console
LimitsYour plan's monthly credits plus any purchased creditsYour provider's quotas and budgets
AvailabilityAll plansEnterprise

How are Retool Managed Credits consumed?​

Retool provides two monthly pools, starting with what each builder is provided, the organization next, and finally you can acquire additional credits that are added to the organization pool. Builders will consume their credits first, then roll into the organization, and finally additional credits.

Pool TypeDescriptionExample
BuilderCredits provided to a named builder (e.g., Alice cannot use Bob's credits)200 Credits per builder*
OrganizationCredits provided to an organization4,000 Credits per org*
Additional PurchasedAdditional Credits purchased1,000 Additional Credits*
note

* The Credit Pool

  • Credits reset at the start of each billing cycle and don't roll over.
  • Purchased credit packs add to your available credits and have their own expiry dates.
  • When you use up your available credits, AI-powered building pauses until the next cycle or until you add more credits. There's no automatic overage billing. Builders can still edit code by hand, and published apps keep running.

How do I track AI spend?​

Now that you have identified a selected payment option, it is important to keep track of the AI usage. For Team/Business plans leverage Plans & Billing. For Enterprise plans, Retool Admins can use the AI Monitoring dashboard in Settings. Both Retool Managed AI Credits and BYOK token consumption are visible at the Retool Feature, User, and Model.

AI Monitoring dashboard
AI Monitoring dashboard

Retool Builders have access to the Retool Model selection and monitoring of AI Credits pool spend via Chat > Settings.

Chat > Settings credit monitoring for builders
Chat > Settings credit monitoring for builders

How do I control AI spend?​

Retool provides several options for controlling spend.

Credit exhaustion​

When using Retool Managed AI Credits, if the total allotment allocated is exceeded (builder, organization, additional), Retool will disable the ability to build or execute on the platform. If using BYOK, cost controls are up to your model provider's enterprise features, as provided in the following links.

Configure AI Settings​

Within Settings > AI, the admin can specify the AI App Builder default provider and default model, which impacts the credit/token spend.

Configure AI Resource Permissions​

Access to AI Resources is governed in Retool and provides a key mechanism to define access to the AI provider and model(s). Apply this access at the group level so that members of the group inherit it.

To start, an AI Resource must exist that identifies the provider and model. Select Resources > Create new > Resource > AI > (model provider). The following image shows an Anthropic resource where we enable under Advanced Options > Restrict this resource to select models.

AI resource: restrict to select models
AI resource: restrict to select models

When configuring the AI Resource, the admin can specify the supported models. Once a resource is configured, you can then provide permissions to this resource in Settings > User management > Groups. Create a group and then define an Object Permissions where you can add Resource(s) and the specific AI Resource that you defined.

Group object permissions for an AI resource
Group object permissions for an AI resource

Enable Spend Controls​

User Limits​

Retool provides spend controls, available in Monitoring > AI Monitoring > Spend Controls. For individual users, spend controls allow you to set thresholds for notification and blocking access. For notifications, the admin can select Notify and then update the threshold a notification should be sent at:

Setting a user notify threshold
Setting a user notify threshold

To specify when to block access, select Block and enter a credit amount.

Setting a user block threshold
Setting a user block threshold

The notification and block limits are displayed.

Notification and block limits displayed
Notification and block limits displayed

Group Limits​

General user limits can be overridden by group limits. For example, a user working in a team that uses AI regularly may need to have a higher cap of 200 credits.

Setting a group limit for the Dev Group
Setting a group limit for the Dev Group

Updating the Dev Group to 200 credits for instance overrides the default user setting for members of that group. In this case, their limit becomes 200 credits.

Group limit override confirmation
Group limit override confirmation

If the administrator has any questions, they can examine the user and details to understand what overrides are occurring, leading to the increased AI credit limit.

User detail showing limit overrides
User detail showing limit overrides

Model Limit​

Within spend control you can access model limits, search on the model(s) of interest and then institute model limits against those (e.g., claude-opus-5-5).

Searching and setting a model limit
Searching and setting a model limit

Notifications​

Notifications based on previous limits will appear with Retool Home as well as in the App Builder so you are aware.

Notifications in Retool Home and App Builder
Notifications in Retool Home and App Builder

If you select Request credits, the Retool admin is notified and can then take action.

Request credits notification to the admin
Request credits notification to the admin

App Building Practices​

How Builders create apps in Retool App Builder can impact the spend during the build process. The lab App Spend Management covers this topic in more detail; however, the following table provides some high-level best practices.

PracticeWhy it saves credits
Use Plan mode for multi-step workFixes misunderstandings before code is written
One feature per promptLess rework than one large prompt
@-mention resources and componentsThe agent doesn't have to search for them
Use Select to Edit for component changesFocuses the agent on one component
Make small changes in the Code tabUses no credits
Start a new thread for each feature and after publishingDrops the history of earlier work
Use lighter models for simple editsSimple changes don't need the most capable model
Stop after two failed attemptsRetry loops are expensive. Read the code or reframe the request.

How can I plan my AI spend?​

A common issue in organizations is that newly adopted AI tooling is exceeding allocated funds for the organization, teams, or individuals. The million-dollar question is how much we provide at each of these levels and how to govern this.

The following sections provide recommendations to get started.

Designing your limits​

Use the following items to help establish limits:

  1. Start with notification limits only. Run them for one or two cycles to learn your real usage patterns before blocking anyone.
  2. Set limits by group, not by person. Align groups with teams or cost centers so limits match how you budget. Users in multiple groups will get the highest spend limit amongst the groups. Use individual limits for exceptions.
  3. Give new builders a smaller allocation while they complete prompting training, then raise it.
  4. Protect production teams. Keep headroom for teams that maintain business-critical apps, so an exploratory project can't exhaust the pool they depend on.
  5. Limit expensive models deliberately. Reserve the most capable models for groups that need them.
  6. Add blocking limits last, and only where the business impact of pausing is understood.
Note

Consider making the builder lab a prerequisite for builder access, and naming AI champions within each team who model good practices and help others.

Operating rhythm​

The following section helps identify actions you can perform regularly.

Weekly (during rollout or high-growth periods)​

  • Check credits remaining against days left in the cycle.
  • Look for unusual spikes by user or model.

Monthly review​

QuestionWhere to lookAction if the answer is concerning
Did we run out, or come close?AI Monitoring page, BillingForecast next cycle and buy credits ahead of time, or tighten limits.
Which users and teams used the most?AI Monitoring page, by userConfirm the work justified it. Offer coaching where usage looks like rework.
Which models drove spend?AI Monitoring page, by modelSteer routine work to lighter models.
Which features drove spend?AI Monitoring page, by featureSeparate build-time spend from AI in production apps and workflows. They need different owners and budgets.
BYOK: is cache write high relative to cache read?AI Monitoring page, BYOK viewLong or interrupted threads may be missing the cache. Reinforce thread practices.
Are new builders ramping efficiently?By user, filtered to recent buildersRevisit training and starting allocations.

Forecasting​

A simple forecast is enough to avoid surprises:

Projected monthly usage = (credits used so far / days elapsed) x days in cycle
Days of credits left = credits remaining / average daily usage

Adjust for known events: new teams onboarding, major new builds, or hackathons. Build in headroom for initial builds, which use more credits than ongoing maintenance.

Signals that call for action​

  • Credits projected to run out before the end of the cycle.
  • One user or team accounting for a disproportionate share without a matching project.
  • A sharp rise in usage on the most capable models.
  • Builders reporting they're blocked.

When to add credits​

Add credits when forecasts show sustained demand from valuable work, not to cover rework. Self-serve plans can buy credit packs under Settings > Billing. Enterprise organizations should contact their Retool account team, ideally before a cycle when growth is expected.

Maturity model​

As you start your journey with Retool, the following maturity model can be used to track your progress in governing spend.

LevelDescriptionWhat success looks like
1. ReactiveNo one owns AI spend. The organization finds out about limits when builders are blocked.n/a
2. VisibleAn owner reviews the AI Monitoring page monthly. Builders know where to see credit signals in the editor.No surprise exhaustion. Top users and models are known.
3. ManagedBuilders complete prompting training. Usage is reported by team. Notification limits are set by group. Credit purchases are forecast.Spend tracks plan within a reasonable margin. Builders rarely hit limits unexpectedly.
4. OptimizedUsage data feeds showback or chargeback. Model access is tiered. Limits are reviewed each quarter. AI cost is part of solution design reviews.Cost per delivered app falls over time while adoption grows.

Rollout checklist​

The following is an example checklist you can use to help improve your maturity state.

  • Name an owner for AI spend in the CoE or AI Working Group.
  • Decide which workloads use Retool-managed keys and which use BYOK.
  • Confirm who has access to the AI Monitoring page and Billing.
  • Review which models are available to builders.
  • Add the builder lab to onboarding before granting builder access.
  • Share where builders can see credit signals, and what to do when credits run low.
  • Publish an internal guide on who to contact for more credits.
  • Schedule a monthly AI spend review.
  • Set up a usage export or dashboard through the API (Enterprise).
  • Define groups, start with notification limits, and review after two cycles.
  • Include MCP and external-agent builders in reviews.

FAQ​

Do people using our apps consume AI credits? Not for the app itself. AI is used while building. Apps or workflows that call AI features at runtime (for example, an AI resource query) do use AI, and that usage appears by feature on the AI Monitoring page.

What happens when we run out? AI-powered building pauses until the next billing cycle or until more credits are added. Builders can still edit code directly, and published apps keep running.

Can a builder see how much they've personally used? Builders view the organization's remaining credits and the cost of each response. Admins can view usage by user on the AI Monitoring page.

Do Code tab edits use credits? No. Only prompts to the agent use credits.

Does building through Retool's MCP server use credits? Yes, when using Retool-managed keys. Prompts sent from an external AI tool through Retool's MCP server use your builder, group, or organization credits, even though the in-editor signals aren't shown there. Enterprise organizations using BYOK are billed by their provider instead and do not consume Retool AI credits.

Will spend controls be available on self-hosted? Yes, starting with notifications and followed by spend controls. Check the release notes for your version.

Does BYOK usage count against our Retool credits? No. BYOK usage is billed by your provider and appears in the BYOK view of the AI Monitoring page.

Summary​

AI spend on Retool grows with your builder community, and the drivers are predictable: context size, thread length, model choice, and builder habits. Platform owners who make spend visible, train builders, and adopt spend controls as they arrive can scale AI adoption without surprises.

Appendix​

Glossary​

TermMeaning
AI creditRetool's unit for measuring AI usage on Retool-managed keys
TokenThe unit of text an AI model processes
BYOKBring your own key: AI usage through your organization's own provider account
ContextEverything sent to the model with a prompt, including app files, schemas, and conversation history
ThreadA conversation with the app builder agent
Cache read / cache writeTokens reused from, or stored to, the provider's prompt cache (BYOK metrics)
Notification limitA spend limit that triggers notifications but doesn't stop usage
Blocking limitA spend limit that stops AI use for a scope when reached