---
title: "How AI credits work in Hercules"
description: "AI credits pay for every chat with Hercules and every agent run. See what uses them, track spend by category, and set auto-reloads and agent spend limits."
---

# How AI credits work in Hercules

AI credits pay for every message you send Hercules while building an app, and for every run of an agent built with Hercules Agents. Your plan includes a monthly grant, you can buy more, and your whole organization shares one balance.

- **One shared balance.** App building and Hercules Agents draw from the same credits.
- **Fix the bugs is free.** Other bug fixes still use credits.
- **Limits per agent.** Cap what one run, or one app's users in a day, can spend.

## How do AI credits work?

### Know what a build chat costs

Every message to Hercules uses credits, questions included, and the cost varies by model, task complexity and output length. Hercules re-reads your app and the conversation at each step, so long chats cost more. [AI Credits](https://hercules.app/docs/platform/billing/ai-credits)

### Know what an agent costs

Every agent run uses credits, including test chats, scheduled runs and replies inside your app. So do run summaries, scoring that grades replies, and Auto-improve, which suggests fixes from past runs. [Agent costs and limits](https://hercules.app/docs/agents/costs-and-limits)

### Cap what an agent spends

Run limits cap the spend, time and steps of a single agent run, which can go slightly over while it finishes its current step. The daily spend limit caps what an agent spends on runs your apps start over a rolling 24 hours, checked as each run starts. [Agent costs and limits](https://hercules.app/docs/agents/costs-and-limits)

### Reload before a build stops

Auto-reload tops up credits before a running build hits zero, at a threshold from 1 to 100 credits that defaults to 10. A spend maximum limits how much auto-reload can buy. [AI Credits](https://hercules.app/docs/platform/billing/ai-credits)

### See where the credits went

Settings, Billing, AI Credits shows your balance, usage by category and invoices. An agent's Analytics shows credits per run. [Agent analytics](https://hercules.app/docs/agents/analytics)

## How do you spend fewer credits?

### 1. Plan large features first

> Plan a delivery scheduling feature where customers pick a time window.

Send it in Plan mode, and Hercules settles the plan with you before it changes code, so there are fewer wrong guesses to pay for. [Agent modes](https://hercules.app/docs/ai/agent-modes)

### 2. Save your rules once

Save naming and design rules in Personalize, and Hercules follows them in every chat. Undo a change from Versions instead of asking Hercules to reverse it. [Improve accuracy](https://hercules.app/docs/ai/improve-accuracy)

### 3. Set agent limits from real runs

Watch Credits per run on an agent's Analytics for a week, then set its spend limit a few times higher than a typical run. Hercules stops any run that reaches the limit and says so in Run history.

## What could this look like for a cleaning company?

In this hypothetical example, a commercial cleaning company with 150 staff builds its crew scheduling app on Hercules, plus a client-portal agent that answers questions about visits. The portal agent's daily spend limit caps what visit questions cost in a day, but it doesn't set credits aside for building. The operations manager turns on auto-reload, so scheduling work doesn't stop mid-build when the shared balance runs low.

## What should you know about AI credits?

- Plan and add-on credits expire 28 to 31 days after they're granted. [AI Credits](https://hercules.app/docs/platform/billing/ai-credits)
- When you run out, your apps stay published, but building stops until you buy more or your next grant arrives, and an agent in your app tells users it isn't available.
- Auto-reload needs a paid plan and a saved payment method, and it pauses while a plan downgrade is scheduled.
- See how many credits each plan includes on the [pricing page](https://hercules.app/pricing).

## Related features

- Use [Hercules Cloud](/features/hercules-cloud) to pay for hosting and live Hercules AI Gateway requests from a separate balance once your apps are live.
- Use [Hercules Agents](/products/agents) to run work on a schedule or inside your app when you want it done without a chat.

## How do you get started?

Build one small feature in a new chat, then check its usage in Settings, Billing, AI Credits to set your auto-reload spend maximum. Start building.

## Frequently asked questions

### How many credits will my app take?

Hercules can't estimate how many AI credits an app will take to build, because every app is different. Build in small steps and check your usage as you go. [AI Credits](https://hercules.app/docs/platform/billing/ai-credits)

### Does a run stopped by a limit count as a failure?

Analytics doesn't count agent runs stopped by a limit, or by you, as failures. It still includes them in the total the failure rate is measured against. [Agent costs and limits](https://hercules.app/docs/agents/costs-and-limits)

### Can I move credits to another organization?

AI credits move to another organization from the Grants list if both organizations are on a paid plan. Only plan and purchased credits can move, and they keep their expiration date. [AI Credits](https://hercules.app/docs/platform/billing/ai-credits)

### Can I lower how many credits I buy each month?

If your plan allows AI credit tiers, a lower tier takes effect at the end of the billing cycle. An AI credit add-on can be reduced or canceled from the next cycle. [AI Credits](https://hercules.app/docs/platform/billing/ai-credits)

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "How many credits will my app take?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Hercules can't estimate how many AI credits an app will take to build, because every app is different. Build in small steps and check your usage as you go. AI Credits"
      }
    },
    {
      "@type": "Question",
      "name": "Does a run stopped by a limit count as a failure?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Analytics doesn't count agent runs stopped by a limit, or by you, as failures. It still includes them in the total the failure rate is measured against. Agent costs and limits"
      }
    },
    {
      "@type": "Question",
      "name": "Can I move credits to another organization?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "AI credits move to another organization from the Grants list if both organizations are on a paid plan. Only plan and purchased credits can move, and they keep their expiration date. AI Credits"
      }
    },
    {
      "@type": "Question",
      "name": "Can I lower how many credits I buy each month?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "If your plan allows AI credit tiers, a lower tier takes effect at the end of the billing cycle. An AI credit add-on can be reduced or canceled from the next cycle. AI Credits"
      }
    }
  ]
}
```
