Skip to content
Sign in

Account and features

API keys and billing

Send your key, cap what each key spends, and choose what pays for it.

On this page

Keys

Every request sends an Impact API key as a bearer token:

Authorization: Bearer sk-imp-…

Anthropic API clients send the same key in x-api-key, and Gemini clients send it in x-goog-api-key (Gemini API).

Create keys on API keys. Use a separate key per app or environment (prod-backend, laptop) so Logs show where traffic comes from and a leaked key is easy to replace. Keys created by impact login appear as Impact CLI (<hostname>).

Open any key to edit its name, monthly limit, billing order, or tools, then click Save changes. Revoking a key disables it immediately.

Store keys in environment variables, not in source code:

export IMPACT_API_KEY="sk-imp-…"

setx applies to terminals opened afterwards.

Never ship a key to a browser or an app bundle

Anyone can extract it from client-side code. Call the gateway from your server instead.

Monthly limits

Set an optional Monthly limit, USD when creating a key or later in its settings. The limit counts only what the key spends from your balance each calendar month (UTC), including web search and image descriptions. Usage covered by your own accounts or plan credits does not count.

Once the limit is reached, requests that need your balance return 402 until the next month. Because each request is billed at its full actual cost, the last request before the limit can push the month slightly past it.

Credits and prices

Top up your balance on Billing, and check Models for prices per 1M tokens (input, output, cache read, and cache write), per image, and per second of video. Embeddings are free, while web search and image descriptions have separate prices on Web search and images. Each request's cost appears in Logs and in usage.cost on Chat Completions. When your funds or a key's monthly limit run out, requests return 402.

How holds, estimates, and interrupted streams are billed
  • Pre-authorization hold. Before starting a balance-paid request, Impact checks that both your available balance (credits minus holds from running requests) and the key's monthly limit cover the estimated cost; otherwise it returns 402. For plan credits, the remaining plan credits must cover the estimate instead.
  • Cost estimation. Language model estimates combine the prompt's input tokens with the model's typical output length, capped at your max_tokens. Image and video requests hold the exact price of the requested media.
  • Final settlement. When the request finishes, you are charged the full actual cost. If actual output exceeds the estimate, your balance can dip slightly below zero.
  • Interrupted streams. Cancelled or dropped streams are billed only for tokens generated before the stream ended. Requests that return nothing cost nothing.

Billing order

Each key tries its enabled funding sources in order until one can serve the request. Configure this under Pays with, in order when creating a key, or later in its settings on API keys.

SourcePays with
BYOK accountsYour own accounts, for models in their plans
Plan creditsCredits included with your plan until its period ends
BalancePrepaid credits, at the prices on Models

By default, your own accounts go first, followed by plan credits, then your balance. Reorder or uncheck sources as needed for each key, and see Plans for how plan credits work.

Web search and image descriptions use plan credits or your balance even when a BYOK account serves the model. MCP tools always use your balance.