For AI agents, the documentation index lists all pages. Append .md to a documentation URL for Markdown, or request text/markdown.

Skip to Content
spare inference

Pricing

How requests are billed, how to see what each one cost, and how to check prices before sending.

2 min readEdit this page

You pay per token, at one net price, with 0% markup. There are no fees on top: no platform fee, no routing fee, and none on calls made with your own key. New accounts get $5 of free tokens.

For current prices, see Pricing.

How a request is billed

  • Three token prices. Input, cached input and output are priced separately, in USD per 1M tokens. Cached input is input the provider served from its prompt cache; repeated prefixes are cached for you.
  • Five-minute windows. Live prices are set per five-minute window. A request is billed at the price of the window in which it started, even if it streams into the next one.
  • A target ceiling. We aim to keep the live price of each window below the market index minus 20%. You can also set your own max price, which is optional.

See what a request cost

Every response carries an x-bitrouter-request-id header. Look the request up with settlement to get its token counts, the prices it was billed at and the total:

curl https://api.spareinference.ai/v1/requests/$REQUEST_ID/settlement \
  -H "Authorization: Bearer $SPARE_API_KEY"

Only the key that sent the request can read it. For your remaining credit, use balance. Totals and history across requests are on the console's Activity and Billing pages.

Check prices before sending

GET /v1/models returns every model with its current prices. No key is needed.

curl https://api.spareinference.ai/v1/models
{
  "data": [
    {
      "id": "deepseek-v4.1-flash",
      "pricing": {
        "input_tokens": { "no_cache": 0.084, "cache_read": 0.0017 },
        "output_tokens": { "text": 0.336 }
      }
    }
  ]
}

Prices are USD per 1M tokens. Use them to schedule work for cheaper windows, or to show your own users a price before a run.

Invoices

Invoices are itemized by window: tokens and price for each window you used. Fallback calls made with your own key are billed by your provider and never appear on ours.

How is this guide?