SwiftRelay

← All sprint notes

Connect Gemini CLI with SwiftRelay API Relay in Minutes

First lapsEN

Your first SwiftRelay experiment: three lines and a running test

QA work often starts with a simple question: can this model handle the edge case your team just found? SwiftRelay is built for that kind of first experiment. It is a pay-per-token API relay, so there is no monthly fee and nothing to subscribe to. Top up a balance, connect your client, and every call deducts only what it used. New accounts also receive $0.22 in sign-up gift credit, giving you a small head start before your own balance takes over.

The setup is refreshingly short. Copy three lines, paste them into your terminal, and run. For an OpenAI-compatible client, the base URL is https://api.fastapirelay.com/v1, and your swft_ key goes in the API key field. That is enough to move from an idea on a QA ticket to a live prompt you can inspect.

For a first QA experiment, keep the scope narrow and make the output measurable. Ask for a structured response, capture the token counts, and compare the cost with the value of the finding. SwiftRelay records tokens and cost per call, so the experiment comes with a clear usage trail instead of a mystery bill.

Stopwatch ready. Connect the endpoint, run one controlled test, and check the usage list. If the result is useful, the next step is already waiting.

Choosing models by QA workload and token cost

The second lap of a QA workflow is model selection. Different checks put different pressure on a model: some need fast, inexpensive responses, while others involve long reasoning or a careful review of complex output. SwiftRelay lists current prices per 1M tokens, so you can compare options before you commit a test budget.

  • GPT-6.1 Sol is listed at input $0.1736, output $0.8542, and cache read $0.0347 per 1M tokens.
  • DeepSeek V4 Flash is listed at input $0.2639, output $1.06, and cache read $0.006944 per 1M tokens.
  • Gemini 2.5 Flash is listed at input $0.1875, output $1.50, and cache read $0.0194 per 1M tokens.
  • Claude Sonnet 5.5 is listed at input $0.9792, output $4.89, and cache read $0.0861 per 1M tokens.

Other Gemini options include Gemini 3.1 Pro at input $1.35, output $7.81, and cache read $0.1347; Gemini 3.8 Flash at input $0.9931, output $4.46, and cache read $0.0986; and Gemini 4 Argon at input $1.31, output $6.28, and cache read $0.0653.

Example only: say you run one QA test with 1M input tokens and 100K output tokens using GPT-6.1 Sol. Using the listed prices, the input cost is $0.1736 and the output cost is $0.08542, for a total of $0.25902. A second test with the same volumes using DeepSeek V4 Flash costs $0.2639 plus $0.106, for a total of $0.3699. These examples show how token visibility can guide a practical model choice.

Connecting the right client for each model family

A clean first run depends on pairing the model with the correct client. SwiftRelay supports distinct connection routes, and each configuration is short enough to complete between test cases.

Claude models answer through the official Claude Code or Claude Desktop client, version 2.1.285 or later. For Claude Code, use these lines:

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

claude

Gemini models use their native protocol through Gemini CLI. For that route, use:

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

gemini

For Codex, which uses the OpenAI-compatible endpoint, use:

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

codex

SDKs and cURL also use the OpenAI-compatible endpoint at https://api.fastapirelay.com/v1, with your swft_ key as the API key. That makes it straightforward to bring SwiftRelay into an existing QA script, a regression harness, or a small internal tool.

One important pit-stop rule saves time: model and client compatibility is not interchangeable. Match each model family to its supported route, and your first request should travel the intended path.

Moving from a successful test to production use

Once the experiment passes, the question becomes repeatability. Can the same endpoint support a scheduled test suite, a release check, or a production monitoring workflow? SwiftRelay gives each account up to 20 live API keys, which lets you separate environments, services, or test streams without creating a new account for every project.

Use a dedicated key for the production workload and another for experiments. That keeps usage easier to read and makes each call traceable to the right workflow. Because the usage list shows tokens and cost per call, you can inspect a run after it finishes and identify which check consumed the budget.

Top-ups are available at $1.39, $6.94, $13.89, $27.78, $69.44, and $138.89. Start with the amount that suits your current test cycle, then top up again when the balance needs it. There is no fixed subscription to maintain, so usage follows the work instead of leading it.

Example only: say a QA team runs 100 calls that each use 10K input tokens and 2K output tokens with GPT-6.1 Sol. The total input is 1M tokens and the total output is 200K tokens. At the listed prices, the input cost is $0.1736 and the output cost is $0.17084, giving a total of $0.34444. The dashboard then shows the token and cost details for every call in that run.

That is the production advantage in plain terms: the same simple relay can serve an early probe and a recurring test suite, while per-call visibility keeps the team informed.

Managing balance, referrals, and support from one dashboard

The final part of the workflow is administration, and SwiftRelay keeps it in one place. Support is available through Messages in the dashboard, where a login is required; there is no support email to hunt for. If a key or configuration needs attention, the conversation stays alongside the account you are already managing.

The referral programme adds another way to extend the runway. You receive 14% of each top-up made by someone you invited, and 3% from the people they invite in turn. Rewards can be moved into your balance or withdrawn once you reach the $4.86 minimum. For a QA team that keeps inviting colleagues to test with SwiftRelay, those rewards can support more experiments.

SwiftRelay also offers a refund on unused credit within 11 days of a top-up, minus what was used and the payment fee. That policy gives you room to try a new model or a new client configuration without treating the first balance as a permanent commitment.

Your route is now clear: top up, connect, test, measure, and repeat. Lap after lap, SwiftRelay keeps the relay simple and the cost visible.

Sign up for SwiftRelay now, connect in minutes, and put your next QA experiment on the road.

Keep reading

Back for another lap?Log in