News · November 12, 2026

Per-token billing: how to read a request's cost

Input and output rates per million tokens, exact costs in response headers, prepaid credits and packs: how a single API request is billed.

· 3 min read · Effrenus Team · RSS

billingpricingapi

An API billed per token does not have a single price: the amount depends on the model called, the number of tokens sent and the number of tokens generated. Effrenus applies a public grid expressed in euros per million tokens and debits the balance at the end of each request. Here is how to estimate a cost before the call, then verify it once the response arrives.

Two prices and one formula

Every model has two prices: input, which covers the tokens in your prompt, and output, which covers the tokens the model produces. The price grid publishes them per million tokens, and the model catalogue adds each model's context window and capabilities.

The unit makes the calculation straightforward: €1 per million tokens equals one micro-euro per token. The formula therefore fits on one line: cost (µ€) = input tokens × input price + output tokens × output price.

Consider Dolphin 3.0 (Llama 3.1 8B), charged €0.20/M input and €0.55/M output. A request with 1,000 input tokens and 500 output tokens costs 1,000 × 0.20 + 500 × 0.55 = 475 micro-euros, or €0.000475. On the current catalogue, input ranges from €0.12/M for embeddings to €2.00/M, and output goes up to €6.00/M for the 70B. Embeddings are not billed for output: BGE-M3 is €0.12/M input and €0.00/M output.

As a reference point, 1,000 identical requests to the example above cost €0.475. History and system instructions count as input: shortening a long conversation thread mechanically reduces the cost of each call.

Where to read the real cost of a request

For a non-streamed response, the gateway returns the exact cost in the headers: x-ef-cost-micro (request cost in micro-euros), x-ef-balance-micro (balance remaining after debit), x-ef-request-id (correlation identifier) and x-ratelimit-remaining-* (remaining quota). The response body also contains usage, with prompt_tokens and completion_tokens. To read them on a real call:

curl -sS -D /tmp/ef-headers.txt https://api.effrenus.com/v1/chat/completions \
  -H "Authorization: Bearer $EF_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"dolphin-3.0-llama3.1-8b","messages":[{"role":"user","content":"Hello"}]}'
grep -i '^x-ef-' /tmp/ef-headers.txt

With streaming, headers are sent before generation: the final cost is not yet known at that point. Ask for stream_options: {"include_usage": true} to receive a final chunk containing usage; the debit is applied at the end of the stream, once all tokens are counted.

The balance, the last 30 days of usage and recent requests can be checked with GET /v1/me. Do not use tiktoken to estimate an Effrenus cost: each model has its own token split, and the authoritative figure is the one returned by the backend. No fixed fee or monthly minimum is added to this amount: only the tokens consumed are debited.

Prepaid credits, packs and no subscription

Effrenus does not sell a subscription: you buy a prepaid credit pack, then consume the balance per token. Three packs are available for top-up:

  • Discovery — €5: €5 of credits, to test the API on a small volume.
  • Essentials — €50: €55 of credits, a 10% bonus.
  • Volume — €200: €230 of credits, a 15% bonus.

Every key can call every model in the catalogue; the top-up only changes the credit volume and the bonus.

Payment goes through a hosted page (Stripe Checkout for cards, BTCPay Server for Bitcoin): no card data passes through the gateway. Credit is applied only when the provider's signed webhook is received, idempotently; a replay does not double the balance. Each debit leaves a usage event (tokens, cost, latency), and top-ups are traced in the credit ledger: payment and consumption remain reconcilable to the micro-euro. Credits are denominated in euros, an invoice can be issued on request, and the balance does not expire as long as the account remains active.

A self-service account starts with zero credits: it can check its balance and buy a pack, but generations remain blocked while the balance is zero, with the insufficient_credits response (HTTP 402). The FAQ answers common questions about subscriptions, payment methods and invoices. For a first budget estimate, start from the grid, then check x-ef-cost-micro on a few real requests: the gap between estimate and billing can be read directly.

Read next

From reading to API calls

Create a key, top up from €5 and test the catalogue.

Create API key

← All news