---
url: https://commerceai.ai/docs/guide/credits.md
---
# Credits

CommerceAI bills in credits. 1 credit = $0.001. Every completed `shopping_agent` turn uses credits from your balance.

## How a call is charged

A completed `shopping_agent` turn is charged in three parts:

| Part | Credits |
|---|---|
| Input tokens | 325 per 1M tokens |
| Output tokens | 650 per 1M tokens |
| Tool calls (product searches the agent runs inside the turn) | 6 per call |

Credits for one turn = ⌈input tokens × 0.000325⌉ + ⌈output tokens × 0.00065⌉ + tool calls × 6. Input and output are each rounded up to a whole credit separately, then the three parts are added up. A turn makes about 5 tool calls on average, so the cost depends on how much searching the request needs and how long the answer is.

| Call | Credits |
|---|---|
| Completed shopping turn: products found, a clarifying question, or no match | Token and tool call usage, as above |
| Refused request (cart, orders, coupons, store account, non-US market) | 0 |
| Call that ends in an error | 0 |

Playground calls cost the same as API calls and count toward the same usage, except the example search shown when you first open the Search Playground, which is free. For Search API pricing, see [Price](https://commerceai.ai/docs/pricing.md).

Every response reports the charge in `usage`. The value below is illustrative, not a fixed charge:

```json
"usage": {
  "credits_used": 34,
  "input_tokens": 6000,
  "output_tokens": 2000,
  "tool_calls": 5
}
```

`input_tokens`, `output_tokens`, and `tool_calls` are the billed amounts for the turn. In this example: ⌈6,000 × 0.000325⌉ = 2, ⌈2,000 × 0.00065⌉ = 2, and 5 × 6 = 30, so 34 credits. The console shows the new balance within a few seconds.

`credits_used` is the sum of the three rounded parts for the turn.

Before each call, CommerceAI checks your balance. When the balance is too low to start a turn, calls fail with `INSUFFICIENT_CREDITS` and are not charged.

## Getting credits

| Source | Amount | Notes |
|---|---|---|
| Sign-up credits | 1,000 credits | Added when you first sign in. They count as the free credits for that month. |
| Monthly free credits | 1,000 credits | On the 1st of each month (US Eastern time), your free credits are reset to 1,000. Unused free credits do not carry over. |
| Top up | 10,000 to 3,000,000 credits | Buy one of four packages in **Billing**: $10, $100, $1,500, or $3,000, at 1,000 credits per $1. Paid in US dollars on a Stripe checkout page. Purchased credits do not expire. |

Free credits are used first. Purchased credits are used only when the free credits run out.

## Check your usage

The console shows:

| Page | What you see |
|---|---|
| **Usage** | Requests and credits used per day, by API key |
| **Billing** | Balance, next free-credit refresh, top-up packages, and top-up history |

See [Price](https://commerceai.ai/docs/pricing.md) for the full rate table.
