SwiftRelay

← All sprint notes

Claude Sonnet 5.5 Setup on SwiftRelay: Your First Run in Minutes

Model splitsEN

Why SwiftRelay makes Claude Sonnet 5.5 easy to start

Getting a model running should not feel like a project. With SwiftRelay, it is a pit-stop job: copy three lines, paste them into your terminal, and run. That is the whole idea behind this walkthrough for Claude Sonnet 5.5, the model listed on SwiftRelay as claude-sonnet-5-5.

SwiftRelay is a pay-per-token API relay. There is no subscription to buy, no recurring fee to remember and no contract to read twice. You top up a balance, and every call deducts only what it actually used. That makes the cost of a session predictable in a way a flat-fee arrangement is not, because you are never paying for capacity you did not touch.

For a newcomer, the practical benefits are simple. You can see the tokens and the cost of each call in your usage list, so there is no mystery figure at the end of the week. You can hold up to 20 live API keys on one account, which is plenty for a personal workspace and plenty for a small team experimenting with different builds. And when something looks off, you can open Messages in the dashboard and ask, without hunting for a support inbox that does not exist.

New accounts also receive $0.22 in sign-up credit, so you can try a first call before deciding how much to add. This guide takes you from an empty account to a working Claude Sonnet 5.5 setup, then shows exactly how the billing behaves.

Setting up Claude Code in three lines

Claude models answer only through the official Claude Code or Claude Desktop client. For a terminal-first start, Claude Code is the quickest route, and the SwiftRelay setup is three lines long. Set the base URL first:

01  export ANTHROPIC_BASE_URL=https://api.fastapirelay.com

Next, point the client at your SwiftRelay key:

01  export ANTHROPIC_AUTH_TOKEN=<your swft_ key>

Then start the client:

claude

That is the entire configuration. There is no separate onboarding call to schedule, no dashboard toggle to hunt for, and no environment variable beyond the two above. Paste the three lines in order and the client is ready to talk to Claude Sonnet 5.5 through SwiftRelay.

Where do the values come from? The base URL is the SwiftRelay API host, https://api.fastapirelay.com. The swft_ key is yours: create it in your SwiftRelay dashboard, then copy it into the auth token line. Because the key is an environment variable, you can keep it out of your project files and swap it between projects without rewriting any code.

One small piece of housekeeping saves confusion later. If you run Claude Code in more than one terminal, remember that an exported variable lives only in the shell where you exported it. Open a fresh window and you will need the lines again. Put them in your shell profile if you want them waiting every time you start.

Choosing between Claude Code and Claude Desktop

Both official clients are supported for Claude models, and Claude Desktop needs version 2.1.285 or later. Claude Code suits people who live in a terminal and like their workflow close to the files. Claude Desktop suits people who prefer a graphical window and a more conversational pace. Either way, the model behind the conversation is the same: Claude Sonnet 5.5, priced per token on SwiftRelay.

The important rule is that Claude models run only in these two official clients. That is not a limitation SwiftRelay adds; it is how the models are served, and it keeps the setup honest. You will not be asked to route Claude through a third-party tool that was never designed for it, and you will not spend an afternoon on a configuration that quietly fails.

Whichever client you pick, the same three lines apply, because the client reads the same environment variables. Start with Claude Code, get a clean first run, and move to Claude Desktop if the window-based flow suits you better. You can hold several live API keys on the same account and use them across both clients, up to the limit of 20 live keys per account.

What Claude Sonnet 5.5 costs on SwiftRelay

SwiftRelay lists Claude Sonnet 5.5 at $0.9792 per 1M input tokens, $4.89 per 1M output tokens, and $0.0861 per 1M cache read tokens. Those are the figures on the SwiftRelay pricing page, and they are the figures your balance is charged against.

Here is an example of how a single call adds up. Say you send 10,000 input tokens and receive 2,000 output tokens. The input portion is 10,000 divided by 1,000,000, multiplied by $0.9792, which comes to $0.009792. The output portion is 2,000 divided by 1,000,000, multiplied by $4.89, which comes to $0.00978. The example total is $0.019572 for that call. No flat fee is layered on top and no unused capacity is billed.

Another example, this time a heavier one. A run that processes 1,000,000 input tokens and 500,000 output tokens would cost $0.9792 plus $2.445, for a total of $3.4242 in that example. The point is not the number itself; the point is that the number is derived from the pricing page and shows up in your usage list, broken down by tokens and cost per call.

Because you pay per token, an experiment costs what the experiment used. If a session goes nowhere, it does not drain a monthly allowance. If you run a long prompt, you pay for the long prompt. That is the good-value argument in plain terms: you can try things without a commitment period, and you can stop without wasting a prepaid bundle.

Topping up, tracking usage and reaching support

SwiftRelay offers top-up amounts of $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. Start small, run a few calls, read your usage list, and add more when the pattern tells you to. Each top-up simply extends your balance, and every call deducts from it.

If you change your mind, unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee. That window is worth noting on day one, because it is the one deadline attached to your balance.

There is a second way to grow the balance. Invite someone to SwiftRelay and you receive 14% of each top-up they make, plus 3% from the people they invite in turn. Those rewards can be withdrawn once they reach $4.86, or moved straight into your balance to fund the next call.

Support lives in Messages inside the dashboard, and the dashboard requires you to log in. There is no support email to write to, which means the conversation stays attached to your account and your usage history rather than floating away in a separate inbox. Questions about a specific call are easier to answer when the tokens and cost for that call are already on screen.

Your first clean run on SwiftRelay

Picture the finish line: a fresh account, a topped-up balance, three pasted lines and a working Claude Sonnet 5.5 session. That is the stopwatch run SwiftRelay is built for, and it takes minutes rather than a day of setup.

Before you start, have three things ready: your SwiftRelay account, a balance with credit in it, and your swft_ key. After the first call, check the usage list. Confirm that the tokens and the cost per call match what you expected, using the per-1M-token figures above. If the numbers surprise you, open Messages and ask before topping up again.

From there, the habit is straightforward. Keep the balance topped up, keep your keys live and tidy, and let the per-token billing carry the cost of your experiments. No subscription, no recurring charge, no plan to cancel — just a relay that connects, charges what it used and gets out of your way.

Stopwatch in hand, ready for a clean first run? Sign up for SwiftRelay, top up your balance and put Claude Sonnet 5.5 to work in three lines today.

Keep reading

Back for another lap?Log in