Skip to content

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:

PartCredits
Input tokens325 per 1M tokens
Output tokens650 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.

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

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.

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 ​

SourceAmountNotes
Sign-up credits1,000 creditsAdded when you first sign in. They count as the free credits for that month.
Monthly free credits1,000 creditsOn the 1st of each month (US Eastern time), your free credits are reset to 1,000. Unused free credits do not carry over.
Top up10,000 to 3,000,000 creditsBuy 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:

PageWhat you see
UsageRequests and credits used per day, by API key
BillingBalance, next free-credit refresh, top-up packages, and top-up history

See Price for the full rate table.