SwiftRelay

← All sprint notes

A Week with Claude Sonnet 5.5 and SwiftRelay API Proxy

First lapsEN

Pre-flight check one: top up a balance and know what every call will cost

Before you touch a single line of code, treat your first SwiftRelay session like a pre-flight inspection for a race car. You want the fuel gauge settled, the route chosen, and no surprises waiting at the first corner. SwiftRelay is a pay-per-token API relay, and the billing model is refreshingly direct: there is no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used.

That makes the starting decision simple. Pick a top-up amount that fits the week ahead rather than committing to a long commitment. The available amounts are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. If you are running a small open-source project and want to try the workflow first, $1.39 is enough to get the tyres rolling. If your maintainers are already testing a new release across several tools, the larger amounts give you room to breathe without topping up every hour.

  • Choose a top-up that matches your expected usage for the week.
  • Remember that SwiftRelay charges by token, so a quiet week genuinely costs less than a busy one.
  • Keep the sign-up gift credit of $0.22 in mind as a small head start for your very first calls.

One useful habit for maintainers is to write the balance you want to work from at the top of your notes, then check it whenever something feels unusual. Because there is no fixed recurring charge, the ceiling stays in your hands. A sprint week where you are shipping a patch, reviewing pull requests and triaging issues will look very different from a maintenance week where you are mostly reading documentation, and the bill follows that rhythm instead of a calendar.

Pre-flight check two: pick your model and read the price per million tokens

The second step on the checklist is to decide which model will do the job, then look at what SwiftRelay lists on its pricing page. Prices are shown per 1M tokens, with separate figures for input, output and cache read, so you can compare options before you commit a single call. Here is a snapshot of the current figures:

  • Claude Sonnet 5.5: input $0.9792, output $4.89, cache read $0.0861.
  • Claude Opus 5.5: input $1.53, output $7.27, cache read $0.0694.
  • Claude Haiku 4.5: input $0.3542, output $1.69, cache read $0.0278.
  • Claude Fable 5.1: input $3.44, output $17.18, cache read $0.2222.
  • GPT-6.1 Sol: input $0.1736, output $0.8542, cache read $0.0347.
  • DeepSeek V4 Flash: input $0.2639, output $1.06, cache read $0.006944.
  • Gemini 3.1 Pro: input $1.35, output $7.81, cache read $0.1347.

Worked example: say you spend a day on Claude Sonnet 5.5 and send 100,000 input tokens with 10,000 output tokens. At the listed prices, the input cost is $0.09792 and the output cost is $0.0489, so the example total for that day is $0.14682. Another worked example: a day of 1,000,000 input tokens and 100,000 output tokens on GPT-6.1 Sol comes to $0.1736 plus $0.08542, an example total of $0.25902. These are examples only, but they show the point clearly. Long prompts are not free, and neither are long answers, so trimming context is one of the most effective ways to keep the week inexpensive.

For a maintainer, the practical routine is to test the model that fits the task, watch the usage panel, and adjust. A quick classification pass on incoming issues may need a lighter, cheaper model, while a careful refactor review is worth spending more output tokens on. SwiftRelay lets you make that choice per call rather than locking it in advance, which is a genuinely useful advantage when your workload changes from hour to hour.

Pre-flight check three: connect in minutes with three lines

Here is where the checklist turns into action. SwiftRelay is built around a short setup: copy three lines and run. The API host is https://api.fastapirelay.com, and your credential is the swft_ key generated for your account. There is no lengthy onboarding call, no sales conversation and no contract to read before you can make a request.

For an open-source maintainer, that short distance between signing up and working is what matters. You can go from an empty terminal to a live response while the issue tracker is still open, and you can drop the same relay into a local script, a CI job or a contributor's setup notes. The three-line pattern is the same shape every time, so the knowledge transfers across projects instead of having to be relearned.

  • Create your account and generate your swft_ key.
  • Point your tooling at the SwiftRelay API host.
  • Run your first call and confirm the response comes back.

Keep the key out of public repositories. A swft_ key belongs in your environment, your secret store or your CI configuration, and the same applies to any credential you manage for your project. If you are preparing onboarding instructions for your contributors, write the three-line pattern once, clearly, and let everyone paste it rather than improvising their own version.

Pre-flight check four: watch usage and keep every project in view

The fourth checkpoint is visibility. SwiftRelay lists tokens and cost per call, so you are not left guessing where the balance went. That matters in an open-source setting, where a shared team budget can disappear into a busy afternoon of automated runs. You can look at the usage list, see which calls consumed what, and adjust before a runaway loop eats the week.

SwiftRelay also allows up to 20 live API keys per account. For maintainers, that gives you a clean way to separate concerns: one key for local development, one for continuous integration, and separate ones for individual contributors or services that should be easy to rotate or retire. When a key is no longer needed, you have a clear handle on it rather than an anonymous string buried in a config file.

If something does not look right, support is available through Messages in the dashboard, which requires you to be logged in. Questions, odd responses and billing checks all live in the same place as your account, so you do not have to hunt for a separate support channel while a release is waiting.

Pre-flight check five: use referrals, refunds and the week-by-week rhythm

The final part of the pre-flight is the plan for the rest of the week. SwiftRelay rewards referrals: you receive 14% of each top-up by someone you invited, and 3% from the people they invite in turn. Those rewards can be withdrawn once they reach the minimum of $4.86, or they can be moved into your balance, which is often the smoother option when you would rather spend them on the next round of calls.

Refunds are straightforward too. 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 in your own notes, especially if you are testing a larger top-up and want a defined point at which you can still change your mind.

Put it together and the weekly rhythm looks like this: on day one, top up, copy three lines and run a real task from your repository. On day two, read the usage list and see what each call cost. Midway through the week, check the balance and top up again only if the workload demands it. Before the weekend, review referral rewards, confirm your key list is tidy and check that anything you want refunded is still inside the 11-day window.

SwiftRelay removes the heavy lifting between an idea and a live API call, and the per-token pricing keeps the cost proportionate to the work you actually do. Stopwatch ready, pit lane clear, first lap mapped — sign up for SwiftRelay and put your project on the track today!

Keep reading

Back for another lap?Log in