DocsChoosing a relay

How to choose a Claude API relay: four checks you can run yourself

A relay forwards your requests to a model provider. Before you pick one, four things can be checked by hand: which model answers, how tokens are counted, whether every charge can be looked up, and what the price and terms say. Take no relay’s word for it, ours included.

1. Model identity: is the model you asked for the one that answers?

Start with the model field in the response: does it match what you requested? That field can be rewritten, so it rules out only the crudest substitution and proves nothing by itself.

  • Send a streaming request and read the raw events. An Anthropic Messages stream goes message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop, with ping events in between; message_start carries the model and input usage, message_delta the output usage. A missing event, a missing field or a wrong order is a clue.
  • Run the same set of hard prompts several times on a channel you trust and on the one you are testing, and compare quality and speed.
  • Asking the model who it is tells you nothing: the answer depends on the system prompt, and a genuine model can get it wrong.

2. Token counts: are you charged for more than you sent?

Every response carries usage, with input_tokens and output_tokens. Send a request of one or two words and read input_tokens; send the same request a few more times and the number should hold steady.

  • The Anthropic Messages protocol has a count_tokens endpoint: count a message first, then send it for real and compare with usage.input_tokens.
  • The same surplus on every request usually means a system prompt is added on the path. That is not necessarily malicious, but it is billed as input: ask how large it is and count it in your costs.
  • A surplus that jumps around, or output tokens far beyond the text you received, needs an explanation from the relay.

3. Per-call billing: can you look up every call?

A relay that shows only a balance gives you nothing to check. A usable record has at least: time, model, input and output tokens, cache tokens, the charge for that call and a request ID.

  • Log the usage and request ID (the x-request-id response header) of each response on your side, then compare a few calls line by line with the relay’s bill.
  • Recompute rate × tokens yourself. The record counts only if it matches the charge.

4. Price and terms: what sits beside the headline rate

  • Whether rates are per 1M tokens, and whether input, output, cache reads and cache writes are priced separately.
  • Whether a multiplier or group setting changes the real rate, and whether one model costs the same in every group.
  • How long context, tool calls and web search are billed.
  • The minimum top-up, what the refund terms say, and who operates the service and how to reach them.

Run the open-source api-relay-audit tool

api-relay-audit is an independent open-source audit tool (AGPL-3.0), not affiliated with any relay, ours included. It runs on your own computer, sends a set of probe requests to the address you give it, looks for anomalies in model identity, token usage and the response stream, and writes a local report.

  • The audit makes real calls to the API under test and spends credit. Start with its lower-cost --connectivity check before deciding on the full audit.
  • Use a temporary, low-limit key and read it from an environment variable with --key-env, as its README shows. Putting it in the command with --key leaves it in your shell history.
  • It looks for anomalies, not proof: finding none does not confirm the model, and it is not a certification by Anthropic.
  • Checks that did not finish, failed or came back inconclusive are not a pass.

Based on the tool’s v2.5.0 source and README, checked 2026-11-12. The tool changes; its own documentation is the reference.

What MYUSAPI does on each point

Model and usageModels are never swapped or downgraded, and you are billed by the usage the upstream reports; every response carries model and usage.
Token countingPOST https://myusapi.com/v1/messages/count_tokens is supported, so you can compare it with the real usage.
Per-call recordsUsage in your workspace lists the model, tokens and charge call by call; every response has an x-request-id header.
RatesUSD per 1M tokens. Input, output and cache-read rates are on the price list; cache-write rates are on each model’s page. Platform rates are the same for everyone; a key from a reseller is charged at the price that reseller set.
Top-ups and refundsPrepaid, with no monthly fee; the amounts and payment methods are the ones the checkout lists. Top-ups are non-refundable once credited, apart from mandatory consumer rights.
OperatorKevv AI Inc., support@myusapi.com.