> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gloo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Prepaid Credits

> Buy credits up front, watch your balance, and keep it topped up automatically.

API access is funded with **prepaid credits**. Every request draws down your balance at the model's published rate. [Direct endpoints](https://docs.gloo.com/api-guides/endpoint-types.md#direct-endpoints) bill that rate with nothing added; [guarded endpoints](https://docs.gloo.com/api-guides/endpoint-types.md#guarded-endpoints) are [priced](https://docs.gloo.com/getting-started/pricing.md) at that rate plus 6.5% for Gloo's [guardrails](https://docs.gloo.com/ai-learning-center/gloo-ai-101/application-patterns.md#guardrails), moderation and values alignment. Credits pay for API usage only; [Gloo Code](https://docs.gloo.com/gloocode/overview.md) is billed through [its own monthly allowance](https://docs.gloo.com/studio/billing.md#the-one-rule-that-surprises-people) and top-ups. Credits belong to your organization, so adding or removing Gloo Code or changing tiers leaves your balance untouched. Enterprise organizations are invoiced under their agreement and do not use prepaid credits.

> [card] Add credits
>
> Buy \$1 to \$100 at a time from the Billing page. Credit is available within seconds of payment.

> [card] Auto-refill
>
> Optionally let Gloo top you up automatically before you run dry, up to \$1,000 of automatic charges per rolling 7 days.

Without auto-refill, requests stop when your balance reaches zero and resume after you add credit.

## Adding credits

You need to fund your credits at least once before you can create an API key. Until then, the [API Keys](https://docs.gloo.com/studio/manage-api-credentials.md) page sends you here to add credits first. Only [organization](https://docs.gloo.com/getting-started/glossary.md#organization) Admins can add credits. Signing in to Gloo Code from the terminal is separate: it needs a Gloo Code plan, not credits.

**1. Open the Billing page**

Go to the [Studio Billing page](https://studio.ai.gloo.com/billing).

**2. Click Add credits**

On the **Overview** tab, click **Add credits**.

**3. Choose an amount**

Choose \$10, \$25, \$50 or \$100, or enter a custom amount between \$1 and \$100.

**4. Pay**

Complete payment on the checkout page.

New organizations choose their first credit amount during onboarding.

The card you pay with is saved for auto-refill. You can remove it at any time from the **Payment Methods** tab.

### When the credit appears

Credit is added when your payment confirms, not when your browser returns. It usually lands within a few seconds, and the page updates on its own. If it takes longer than about 90 seconds, the page offers **Continue anyway**: your payment went through and the credit will appear without you doing anything.

Gloo does not email a purchase receipt. Every purchase is listed in **Billing History** in the Studio with the amount and a link to the invoice or receipt.

## Auto-refill

When it is on, auto-refill charges your chosen amount to your saved card when your balance runs low, up to the weekly cap below. Studio says the charge happens before your balance runs out, and during heavy use it can happen more than once.

### Turning it on

**1. Find the switch**

On the Billing page, find the **Auto-refill** switch on the Wallet card.

**2. Set the amount**

Set the amount to add each time (\$10 to \$100).

**3. Turn it on**

Flip the switch on and confirm in the dialog.

Closing the dialog without confirming leaves auto-refill off. Turning it off later takes effect immediately.

### How it decides to charge

Auto-refill has no fixed schedule. It charges when your balance runs low, and the charge takes a few seconds to land.

### The weekly charge cap

Auto-refill will charge at most **\$1,000 per rolling 7 days**. This is a cap on money charged to your card, not on usage. When you reach it:

* Auto-refill pauses, and the Wallet card says **Auto-refill is paused** because it has reached its limit for this 7-day window
* You get one email telling you auto-refill is paused
* **Manual top-ups still work.** The cap applies only to automatic charges
* Headroom returns gradually as older charges age past 7 days

If your configured amount would not fit in the remaining headroom, Gloo charges the part that fits rather than skipping the top-up.

> [!NOTE]
>
> This charge cap is separate from the **monthly API spend limit** covered below, which pauses your API access rather than your card. Once you reach the monthly limit, adding credits manually is not allowed either, because the credit could not be used until the limit resets or is raised.

## When you run out

Two different limits produce two different errors, and the fix for one does nothing for the other.

| | Out of credits | Monthly API spend limit |
| - | - | - |
| **Error** | `402 INSUFFICIENT_CREDIT` | `429 MONTHLY_SPEND_LIMIT_REACHED` |
| **What happened** | Your balance reached zero | Your organization's API usage this month reached its monthly limit (\$4,000 unless Gloo has set a different one) |
| **Can you still have a balance?** | No | **Yes**. This fires even with credit remaining |
| **What fixes it** | Add credits; access resumes immediately | Wait for the limit to reset on the 1st of the month (UTC), or ask support to raise it |
| **Can you add credits now?** | Yes | No. Manual purchases are refused until the limit resets or is raised, so you cannot buy credit you could not use, unless the purchase is clearing a negative balance |

> [!WARNING]
>
> The monthly API spend limit is not the same as the auto-refill charge cap. One limits your organization's API usage in a month; the other limits how much Gloo will **charge your card automatically** in 7 days. You can be stopped by one while the other has room.

### What the monthly limit is

Each organization has a monthly API [spend limit](https://docs.gloo.com/studio/billing.md#spend-limits) of **\$4,000 per calendar month** unless Gloo has set a different one. The month runs on UTC, so usage drops to zero all at once at midnight UTC on the 1st and access returns in one step. Requests over the limit return `429` with the code `MONTHLY_SPEND_LIMIT_REACHED` and the message *"Your organization has reached its monthly API spend limit."*

The **Monthly API spend limit** meter on the Inference row of the Billing page, and the matching card on the Usage page, show your spend so far against the limit, for example *\$1,250 / \$4,000*.

> [!NOTE]
>
> Only usage paid from credit counts toward the monthly limit. Promotional credit and work done inside Gloo Code do not count. You cannot change the limit yourself in the Studio. [Contact support](https://docs.gloo.com/getting-started/support.md#contact-support) to have it raised, lowered, or removed. The limit belongs to your organization, so changing plans does not reset it.

## If your card is declined

If an automatic top-up is declined:

* **No credit is added, and your existing balance is untouched.**
* You get one email, *"Your card was declined"*, with a link to update your payment method.
* Gloo waits before retrying, so a declined card does not generate repeated charges.
* Your existing credit keeps working until it runs out, at which point requests return `402`.

Update your card on the **Payment Methods** tab and auto-refill resumes on the next top-up.

> [!NOTE]
>
> Decline emails are limited to one per organization per day, and are sent to the email address on your payment profile.

## If you also use Gloo Code

**Your Gloo Code allowance and your credits are separate pools that cannot substitute for each other**: Gloo Code work draws on the allowance, direct API calls on credits. See [Billing & Plans](https://docs.gloo.com/studio/billing.md#the-one-rule-that-surprises-people).

## Promotional credits

If your organization has promotional credit, it is shown alongside your paid balance and is **always spent first**, before credit you paid for.

## Who can see and change this

Billing surfaces are restricted to members who can manage billing. Everyone else sees *"Billing is managed by your organization admins"* in place of the Wallet card, payment methods and plan changes.

## Frequently asked questions

> [accordion] Do my credits expire?
>
> No expiry is applied to purchased credit today. Credit is consumed by usage and survives product and tier changes. If that changes, it will be announced and reflected in the [Terms of Service](https://gloo.com/legal/ai-studio-supplemental-terms-of-service) before it takes effect.

> [accordion] Can I get a refund on unused credits?
>
> Credit purchases are final, so buy what you expect to use; you can always add more. If something went wrong with a purchase, contact support.

> [accordion] Why was my top-up refused?
>
> A manual top-up is refused if the amount is outside the \$1 to \$100 range, or if your organization has reached its monthly API spend limit, since the credit could not be used until the limit resets on the 1st or is raised. Auto-refill is different: it pauses once it reaches its own weekly charge cap, and you can still add credits manually while it is paused.

> [accordion] Why did auto-refill not fire before I ran out?
>
> Auto-refill charges when your balance runs low, and the charge takes a few seconds to land. A burst of large requests arriving in that window can briefly outrun it. If that happens regularly, raise your auto-refill amount so each top-up lasts longer.

## Next steps

To make your credits go further, see [Controlling Cost](https://docs.gloo.com/best-practices/cost-control.md).

> [card] [Generate API Keys](https://docs.gloo.com/studio/manage-api-credentials.md)
>
> Create a key once your credits are funded.

> [card] [Billing & Plans](https://docs.gloo.com/studio/billing.md)
>
> Products, tiers, and spend limits.

> [card] [API Usage](https://docs.gloo.com/studio/api-usage.md)
>
> Track requests, tokens, and spend.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.