SwiftRelay

← All sprint notes

SwiftRelay in Minutes: Claude Code API Relay Setup Guide

First lapsEN

Do you want to start your API relay without a long setup lap?

Picture the start of your week as a stopwatch rather than a hurdle. You have queries to run, notebooks to check and models to compare, but you do not want to spend the morning assembling an API stack before you can answer a single question. SwiftRelay is built for that kind of start: connect in minutes by copying three lines and running.

Ask yourself one yes-or-no question: can I get from a fresh account to a working request quickly? With SwiftRelay, the path is straightforward. Sign up, top up a balance and connect the API host with your key. There is no monthly fee, nothing to subscribe to and no plan to choose. Each call deducts only what it used, so the stopwatch starts on the first request instead of on a billing cycle.

For example, a Claude Code setup uses these three lines:

01  export ANTHROPIC_BASE_URL=https://api.fastapirelay.com
02  export ANTHROPIC_AUTH_TOKEN=<your swft_ key>

claude

That is the kind of first lap SwiftRelay aims to make clean: copy, paste, run. If you prefer Gemini CLI, the same quick rhythm applies:

01  export GOOGLE_GEMINI_BASE_URL=https://api.fastapirelay.com
02  export GEMINI_API_KEY=<your swft_ key>

gemini

For an OpenAI-compatible workflow, the base URL is https://api.fastapirelay.com/v1 and your swft_ key goes in the API key field. You can decide this later. The immediate point is that SwiftRelay removes the long middle lap between deciding to test a model and actually sending a request.

Do you want a week of analysis billed by actual token use?

Here is the second question for data analysts: would I rather pay for a whole subscription I might barely use, or pay only for the tokens my calls consume? SwiftRelay takes the second road. It is a pay-per-token API relay, so a quiet morning costs only what your quiet morning used.

That matters when your week has an uneven rhythm. Monday might be a burst of extraction, Tuesday a careful review and Wednesday a series of short experiments. Per-token billing lets the balance follow the work instead of forcing every day into the same shape.

Ask: can I see what each model costs before I commit? The SwiftRelay pricing page lists current prices per 1M tokens, including Claude Haiku 4.5 at $0.3542 input, $1.69 output and $0.0278 cache read, and Claude Sonnet 5 at $1.01 input, $5.06 output and $0.0889 cache read. GPT-6.1 Sol is listed at $0.1736 input, $0.8542 output and $0.0347 cache read, while DeepSeek V4 Flash is listed at $0.2639 input, $1.06 output and $0.006944 cache read.

You also have practical choices for topping up: $1.39, $6.94, $13.89, $27.78, $69.44 or $138.89. Start small if you want a single clean test, or move up the ladder if your analysis sprint is already scheduled. New accounts also receive $0.22 in sign-up gift credit, which is enough for a first small lap.

Ask one more yes-or-no question: is the billing model easy to explain to a colleague? With SwiftRelay, the answer is simple. Top up a balance, make calls and let each call deduct what it used. There is no separate subscription sitting beside the work.

Will your model and client pairing survive a quick check?

The third question is technical, but it protects the whole week: does the model I want answer correctly through the client I already use? SwiftRelay keeps the routing rules clear so you do not lose a lap to a mismatched endpoint.

Claude models answer only through the official Claude Code or Claude Desktop client, and Claude Desktop needs version 2.1.285 or later. Gemini models use their native protocol through Gemini CLI. For an OpenAI-compatible endpoint, use https://api.fastapirelay.com/v1 with a swft_ key as the API key, and pair it with GPT, DeepSeek and the other remaining models.

Ask: can I confirm the pairing before I start a long analysis? Yes. Check the client, check the model family, then connect. If you use Codex, its three lines are:

01  export OPENAI_BASE_URL=https://api.fastapirelay.com/v1
02  export OPENAI_API_KEY=<your swft_ key>

codex

That quick check is a pit-stop decision, not a research project. Get it right once and your working week gets smoother.

Can you see where every call and every dollar goes?

The fourth question is the one analysts ask most often: can I audit the usage? SwiftRelay shows tokens and cost per call in the usage list, so you can inspect a request instead of guessing what happened.

Ask: will I know which call consumed the balance? Yes, because usage lists both the tokens and the cost for each call. That visibility turns a vague monthly bill into a series of readable line items. If a script behaves differently than expected, you can review the calls and see what was used.

Ask: will one analyst’s work collide with another’s setup? SwiftRelay supports up to 20 live API keys per account, which gives you room to separate experiments, clients or tasks while keeping the organisation visible in one place. Support is available through Messages in the dashboard, with login required, so a question can stay attached to the account where the work happens.

Now try a worked example. Assume a day includes three calls: one Claude Haiku 4.5 call with 10,000 input tokens and 2,000 output tokens, one GPT-6.1 Sol call with 20,000 input tokens and 5,000 output tokens, and one DeepSeek V4 Flash call with 50,000 input tokens and 10,000 output tokens. Using the listed prices, the first call costs $0.006922, the second costs $0.007743 and the third costs $0.023795. Across seven days, the example total is $0.26922. This is an example, not a forecast, but it shows the point: a busy week can still produce a precise, traceable charge.

Can your balance, credits and rewards stay in one clear pit lane?

The final question is about control: can I top up, refund, invite and withdraw without leaving the dashboard? SwiftRelay keeps these actions within the same account flow.

Ask: what happens if I top up by mistake? Unused credit can be refunded within 11 days of the top-up, minus what was used and the payment fee. Ask: can a colleague earn something when I invite them? Yes. You receive 14% of each top-up by someone you invited, and 3% from the people they invite. Those rewards can be withdrawn once they reach the $4.86 minimum, or moved into the balance.

Now picture the finish line. Your week has a working connection, a balance that reflects real calls, a usage list that shows tokens and cost, and a set of prices you can check before choosing a model. SwiftRelay is ready at the API host, and the next step is one clean first run.

Sign up for SwiftRelay today, top up your balance and put your first API call on the clock.

Keep reading

Back for another lap?Log in