---
title: "Claude API proxy: a relay with its own balance"
canonical: https://relayswitch.io/claude-api-proxy
generated: 2026-11-02T10:14:46.602Z
source: https://api.relayswitch.io/v1/catalog
base_url: https://api.relayswitch.io/v1
---

Models / Claude

# Claude API proxy: a relay with its own balance

A Claude API proxy is a server between your client and the Claude models. Most of the ones on GitHub translate request formats on your own machine and bill whatever Anthropic account sits behind them. RelaySwitch is the other kind: a hosted relay with its own balance, where 13 Claude ids answer Anthropic's Messages format on a prepaid key, topped up by card or in USDT, USDC, BTC, ETH, SOL.

[Get a key](https://app.relayswitch.io/console)[Claude Code setup](https://relayswitch.io/guides/claude-code)

13Claude ids, Messages format

$3.00Claude Sonnet 5.5 output / M$10.00 on Anthropic's list

305 / 339Unchanged on today's checkread 2026-11-02T10:10 UTC

$10First top-up

Two kinds

## Format translators and hosted relays

The phrase covers two different programs. Pick by what sits behind the proxy.

### A translation proxy on GitHub

-   Runs on localhost. Takes one request shape in and sends another out: OpenAI chat completions to Anthropic Messages, or the Claude Code CLI wrapped as an HTTP API.
-   Has no models and no balance. Every request is billed by the account behind it: an Anthropic API key, or a Pro or Max subscription.
-   Rate limits are the account's own, and a wrapped subscription cannot report them in response headers.

### A hosted relay with its own balance

-   An endpoint on the internet. The Claude ids answer the Messages format unchanged at `https://api.relayswitch.io/v1/messages`, and the OpenAI format on the same key.
-   One prepaid balance in USD, per-token billing at the rates below, a key per app with its own budget. No Anthropic account.
-   A signed receipt per request and a public daily check that the id answers as it did yesterday.

The endpoint

## Anthropic SDK and Claude Code

Two values change: the base URL becomes https://api.relayswitch.io/v1 and the key becomes yours. The request body is Anthropic's.

### Python, with the Anthropic SDK

python

1`import anthropic`

2

3`client = anthropic.Anthropic(base_url="https://api.relayswitch.io/v1", api_key="sk-relay-...")`

4`reply = client.messages.create(`

5 `model="claude-sonnet-5-5",`

6 `max_tokens=300,`

7 `messages=[{"role": "user", "content": "Hello"}],`

8`)`

9`print(reply.content[0].text)`

### Claude Code

bash

1`export ANTHROPIC_BASE_URL="https://api.relayswitch.io/v1"`

2`export ANTHROPIC_AUTH_TOKEN="sk-relay-..."`

3`claude`

`ANTHROPIC_BASE_URL` sets the endpoint and `ANTHROPIC_AUTH_TOKEN` sends the key as a Bearer token, per Claude Code's [environment variable reference](https://code.claude.com/docs/en/env-vars) (read 2026-10-30). The [Claude Code guide](https://relayswitch.io/guides/claude-code) has the settings.json form, the model aliases and a key with a budget for Claude Code alone.

### The same request as curl

bash

1`curl -i https://api.relayswitch.io/v1/messages \`

2 `-H "Authorization: Bearer $RELAYSWITCH_API_KEY" \`

3 `-H "anthropic-version: 2023-06-01" \`

4 `-H "content-type: application/json" \`

5 `-d '{"model": "claude-sonnet-5-5", "max_tokens": 16, "messages": [{"role": "user", "content": "Say ok."}]}'`

Live prices

## The Claude ids behind the relay

USD per million tokens, read from the catalog at render. Anthropic's list price beside ours on every row.

| Model | Input | Cached | Output | Developer list in / out | Context |
| --- | --- | --- | --- | --- | --- |
| [Claude Fable 5.1](https://relayswitch.io/models/claude-fable-5.1) | $6.00 (40% under) | $2.00 | $30.00 (40% under) | $10.00 / $50.00 | 1M tokens |
| [Claude Fable 5](https://relayswitch.io/models/claude-fable-5) | $3.00 (70% under) | $0.30 | $15.00 (70% under) | $10.00 / $50.00 | 1M tokens |
| [Claude Opus 5.5](https://relayswitch.io/models/claude-opus-5-5) | $2.80 (30% under) | $0.15 | $10.00 (50% under) | $4.00 / $20.00 | 1M tokens |
| [Claude Sonnet 4.6](https://relayswitch.io/models/claude-sonnet-4-6) | $1.80 (40% under) | $0.18 | $9.00 (40% under) | $3.00 / $15.00 | 1M tokens |
| [Claude Opus 4.6](https://relayswitch.io/models/claude-opus-4-6) | $1.80 (64% under) | $0.16 | $7.50 (70% under) | $5.00 / $25.00 | 1M tokens |
| [Claude Opus 4.7](https://relayswitch.io/models/claude-opus-4-7) | $1.80 (64% under) | $0.16 | $7.50 (70% under) | $5.00 / $25.00 | 1M tokens |
| [Claude Opus 4.8](https://relayswitch.io/models/claude-opus-4-8) | $1.80 (64% under) | $0.16 | $7.50 (70% under) | $5.00 / $25.00 | 1M tokens |
| [Claude Opus 5](https://relayswitch.io/models/claude-opus-5) | $1.80 (64% under) | $0.16 | $7.50 (70% under) | $5.00 / $25.00 | 1M tokens |
| [Claude Haiku 4.5](https://relayswitch.io/models/claude-haiku-4-5) | $0.60 (40% under) | $0.06 | $3.00 (40% under) | $1.00 / $5.00 | 200K tokens |
| [Claude Haiku 4.5](https://relayswitch.io/models/claude-haiku-4-5-20251001) | $0.60 (40% under) | $0.06 | $3.00 (40% under) | $1.00 / $5.00 | 200K tokens |
| [Claude Sonnet 5](https://relayswitch.io/models/claude-sonnet-5) | $1.20 (40% under) | $0.12 | $3.00 (70% under) | $2.00 / $10.00 | 1M tokens |
| [Claude Sonnet 5.5](https://relayswitch.io/models/claude-sonnet-5-5) | $1.20 (40% under) | $0.075 | $3.00 (70% under) | $2.00 / $10.00 | 1M tokens |
| [Claude Haiku 5.5](https://relayswitch.io/models/claude-haiku-5-5) | $0.06 (40% under) | $0.01 | $0.15 (70% under) | $0.10 / $0.50 | 1M tokens |

13 Claude ids answer the Messages format with a developer list price on record today. Cached input is priced lower where the row supports it.

The rules

## What a relay may and may not do

From Anthropic's Usage Policy, effective 2026-11-12, read 2026-10-31. Quoted, not interpreted.

### The policy prohibits

-   “Resell, proxy, or otherwise provide access to Claude through unauthorized means, including services that route requests through consumer subscriptions, or misrepresent the product or client being used.”
-   “Intentionally bypass or interfere with capabilities, restrictions, or guardrails established within our products”, including “circumvention of the account sign-up or log-in process”.
-   For consumer-facing chatbots built on any model: users must be told they are talking to an AI, at the start of each session or in the interface.

[The policy, in full](https://www.anthropic.com/legal/aup)

### What this relay does

-   Bills every request per token at the rates above, from a prepaid balance. No consumer subscription is in the path.
-   Passes the Messages format through as the client sent it; the model id you name is the model the receipt names.
-   Keeps no request or response bodies, as the [privacy page](https://relayswitch.io/privacy) states; one usage record per request with the model, the token counts and the charge.
-   Reselling the key onward needs written approval, per the [terms](https://relayswitch.io/terms); the [wholesale page](https://relayswitch.io/wholesale) says how to apply.

Evidence

## The model on the label

Two things you can check without trusting this page.

Every model in the catalog gets the same canary prompt each day and its answer is compared with the earlier runs. The verdicts are public at [/proof](https://relayswitch.io/proof) and as JSON at `https://api.relayswitch.io/v1/proof`, no key needed. Today: 305 of 339 models stable, 21 changed, 13 not reached (read 2026-11-02T10:10 UTC).

Every request has a signed receipt with the model, the billed tokens and the charge. Fetch it by the request id from the response headers and check the signature on the [Verify page](https://relayswitch.io/statements/verify).

bash

1`curl https://api.relayswitch.io/v1/requests/REQUEST_ID/receipt \`

2 `-H "Authorization: Bearer $RELAYSWITCH_API_KEY"`

Identity

The account here is an email address and a balance. No Anthropic account, no identity documents: the [anonymous Claude API page](https://relayswitch.io/anonymous-claude-api) lists what is asked for and what is never asked for.

Related

-   [Claude Code setup](https://relayswitch.io/guides/claude-code)
-   [Claude by API, no KYC](https://relayswitch.io/anonymous-claude-api)
-   [Claude pricing](https://relayswitch.io/pricing/claude)
-   [Anthropic ID verification](https://relayswitch.io/anthropic-id-verification)
-   [Verify an LLM API](https://relayswitch.io/proof/how-to-verify-an-llm-api)
-   [SDK setup](https://relayswitch.io/guides/sdks)

FAQs

## Claude API proxy: questions

Free proxies, GitHub, Claude Code and the Max wrappers.

Open the console

A key in under a minute

[Get a key](https://app.relayswitch.io/console)

Or email [hello@relayswitch.io](mailto:hello@relayswitch.io)

### 

### 

### 

### 

### 

### 

## The Messages format on a prepaid key

From $10 by card or in USDT, USDC, BTC, ETH, SOL. No Anthropic account, no subscription.

[Every Claude model](https://relayswitch.io/pricing/claude)[Get a key](https://app.relayswitch.io/console)

