Skip to content
IQ

Billing

IQ shows input, output, cached and thinking tokens when the provider reports them. Thinking tokens normally use the output rate and are charged once. You can inspect token usage and cost in Requests. This page covers cache costs, thinking budgets, key group budgets and billing errors.

Token classes

  • Input tokens are the prompt tokens billed by the provider.
  • Output tokens are the model's response tokens.
  • Cached tokens are input tokens the destination provider served out of its own prompt cache. They are billed, at the provider's discounted cache-read rate, not at zero. See below.
  • Thinking tokens are reasoning tokens reported by the provider. They normally use the model's output rate. When the provider reports them, IQ shows thinking tokens on each request and thinking cost in the team thinking report.

What "cached" costs

Two different things produce a cached number on your bill, and they bill in opposite ways, so it is worth being precise about which one you are looking at.

A gateway response-cache hit is billed at zero. When IQ serves a request out of its own response cache it never calls the provider at all, so there is no upstream cost to pass through. It still counts against your rate limits and against your daily budget, because both checks run before the cache lookup happens. A hit skips the provider round trip entirely, so it costs nothing and returns faster than the original request did.

A provider prompt-cache read is a different animal. The request did go upstream, the provider recognised a prefix it had already stored, and it charged you its discounted cache-read rate for those tokens. That rate is substantially below the uncached input rate, but it is not free. The other half of that trade is the write side: seeding a provider prompt cache costs more per token than an uncached input token would have, so a prefix that is written often and read rarely loses money. Each request's detail page shows the provider cache read and write tokens separately. How much a cache read saves depends on the provider's cache-read rate and on how much of the prompt was served from cache.

For the mechanics of the gateway's own response cache, including the exact and semantic layers, conversation-scoped caching for agent loops, and streaming replay, see caching.

Thinking budgets

You can set a thinking budget to one of four tiers: none, low, medium, or high. Medium is the newest tier and fills the gap between a cheap nudge and a full reasoning pass, which previously meant choosing between spending almost nothing on reasoning and spending a lot. Where the destination model supports reasoning, IQ maps each tier onto a setting that provider supports and can adjust it, so the same choice becomes an Anthropic thinking budget, an OpenAI reasoning effort, or a Gemini thinking budget without you changing anything at the call site. That is the point of expressing it as a tier rather than a provider-specific number: routing can move a request across providers. Requests can also show a recorded budget label of custom, for example when a Messages request sets its own thinking token budget, or forfeited.

There is also an org-level auto mode. With auto on, the gateway picks the tier for a request when neither the caller nor a capability has set one, which is usually what you want for mixed traffic where the caller cannot know in advance whether a given prompt deserves a reasoning pass. Requests shows each request's thinking budget.

Budgets

Daily and monthly spend caps can apply per key group, and the monthly cap can also be set per account. Once a cap is hit the gateway returns 429 until the bucket resets: the daily bucket at midnight UTC, the monthly one at the start of the next month. You can also set a daily cap per key, and both caps apply. A key's daily cap tracks that key's own spend only when the key also has its own requests-per-minute or tokens-per-minute limit. Keys without one share a daily counter.

For a 429, read the error code and any X-RateLimit-Scope header. Scope values include rps, rpm, tpm, daily_budget, monthly_budget, key_spend_ceiling, team_daily_budget, team_monthly_budget, org_inflight_cost, free_new_org_rpm, free_new_org_daily and provider. Retry-After and X-RateLimit-Reset appear on rps, rpm, and tpm replies. The rps window is one second and the rpm and tpm windows are 60 seconds.

New Free workspaces can see free_new_org_rpm and free_new_org_daily during their first 7 days. Both carry Retry-After and X-RateLimit-Reset. If provider rate limits exhaust the fallback chain and IQ returns a 429, the scope is provider. A provider 429 may include Retry-After.

Both daily_budget and team_daily_budget carry Retry-After for the next UTC reset, with a minimum wait of 60 seconds. A key_spend_ceiling response carries X-RateLimit-Reset: 0. This ceiling does not reset on a clock, so 0 is not a time to retry. Ask your workspace admin to raise it.

Monthly budget replies (monthly_budget, team_monthly_budget) carry no Retry-After. They reset at the start of the next UTC month.

Weekly seat model limits return seat_model_limit_reached and Retry-After, without X-RateLimit-Scope or X-RateLimit-Reset. The limit resets Monday at 00:00 UTC.

A per-request spend ceiling on cap:orchestrate routes is a separate control from the budgets above: it checks a single request's worst-case cost estimate before dispatch rather than a rolling key group or per-account bucket, and a breach returns a 4xx naming the estimate and the cap rather than a 429 with an X-RateLimit-Scope value. See capability aliases for the mechanics.

Billing errors

A 429 can indicate an IQ limit or a provider rate limit. A 402 can mean exhausted provider credit or a subscription feature requirement. Read its error code and message. Add funds with your provider only when the error identifies provider credit. Check your IQ plan when it identifies a subscription requirement.

When every model in the fallback ladder fails because your own provider key has run out of credit, the gateway returns 402 with an actionable message naming the dead provider, of the form Provider credit exhausted on your BYOK key for <provider>; add credits with your provider or configure another provider. It also raises a billing alert in the dashboard's live activity feed, so an operator sees it in the surface they already watch rather than by reading logs after the fact.

Gateway API model usage is billed by your connected providers. An IQ subscription requirement is separate from provider credit.

Thinking-budget report

Thinking can add output tokens to a request. Those tokens normally use the model's output rate. The thinking-budget report groups spend by key group and complexity tier so you can see where reasoning costs accumulate.

Note that this report groups by the complexity tier the gateway assigned the request, which is a different axis from the four thinking budget settings above. A request assigned complex may still have run with a low budget if the caller pinned one, and a request assigned simple under auto mode will normally have drawn none or low. Read the report as where your spend concentrates by workload shape, and each request's thinking budget and thinking tokens in Requests as the reasoning part of what that request cost.

The report groups spend by key group and then by complexity tier.

Endpoint

GET https://gateway.iq-routing.com/admin/billing/thinking-report
    ?org_id=<uuid>
    &period_start=2026-04-01
    &period_end=2026-04-30
Authorization: Bearer <session token>

Requires owner or admin role. Cross-org probes return 404. The response carries X-Request-Id, like every gateway response, for correlating a specific pull; see API reference for the error envelope shape returned on a non-2xx status.

A sample response:

{
  "org_id": "org_5d9f...",
  "period_start": "2026-04-01",
  "period_end":   "2026-04-30",
  "total_tokens": 18470000,
  "total_cost_usd": 924.50,
  "by_team": [
    {
      "team_id": "team_a1b2...",
      "team_name": "Research",
      "total_tokens": 14820000,
      "total_cost_usd": 741.00,
      "by_tier": [
        {"tier": "simple",  "tokens":   320000, "cost_usd":   16.00},
        {"tier": "medium",  "tokens":  4500000, "cost_usd":  225.00},
        {"tier": "complex", "tokens": 10000000, "cost_usd":  500.00}
      ]
    },
    {
      "team_id": "team_c3d4...",
      "team_name": "Support",
      "total_tokens": 3650000,
      "total_cost_usd": 183.50,
      "by_tier": [
        {"tier": "simple", "tokens": 2400000, "cost_usd":  60.00},
        {"tier": "medium", "tokens": 1250000, "cost_usd": 123.50}
      ]
    }
  ]
}

Dashboard

The Billing tab carries a thinking-budget report tile rendered as a stacked bar chart.