SwiftRelay

← All sprint notes

DeepSeek Refunds via SwiftRelay API Proxy: A Quick Guide

First lapsEN

From first API call to a working SwiftRelay balance

Getting an API relay should not feel like a long setup project. SwiftRelay is a pay-per-token API relay that connects in minutes: copy three lines and run. There is no monthly fee and nothing to subscribe to. Instead, you top up a balance, and each call deducts only what it used. That makes the first experiment simple, the next experiment easy to budget, and the move into production a gradual step rather than a dramatic switch.

Your starting point is fastapirelay.com. Sign up, collect the $0.22 sign-up gift credit, and create your first API key. The balance-based model lets you try a real request before committing to a larger top-up. When you are ready, the available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. Pick the amount that fits the stage of your test, then watch the usage list to see tokens and cost per call.

For a quick first run, use the SwiftRelay API host https://api.fastapirelay.com with the client that matches your model. The setup is deliberately short, so you can go from an empty project to a live response without building a billing system around the experiment.

Choosing the right client for a clean first experiment

The easiest first experiment is one with a clean client-to-model pairing. Claude models answer only through the official Claude Code or Claude Desktop client, version 2.1.285 or later. Codex, Cursor, Cline, Roo Code, Cherry Studio, OpenCode, SDKs and cURL use the OpenAI-compatible endpoint and pair only with GPT, DeepSeek and the other remaining models, never with Claude or Gemini. Gemini models use only their native protocol through Gemini CLI and are not OpenAI-compatible.

For an OpenAI-compatible client, set the base URL to https://api.fastapirelay.com/v1 and use your swft_ key as the API key. That is enough to point a familiar client at SwiftRelay. You can also copy the Codex configuration lines:

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

If your workflow starts with Claude Code, use these SwiftRelay lines instead:

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

For Gemini CLI, the path is native and separate:

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

Copy the relevant lines, run the command, and check the first response. SwiftRelay is designed to get you moving quickly, while the client rules keep each model in the environment that supports it properly.

Reading token costs before the balance moves

The usage list in the SwiftRelay dashboard shows tokens and cost per call. That visibility turns a trial into a controlled experiment. You can see what a request consumed, compare models, and decide whether the next test deserves another top-up. With pay-per-token billing, there is no need to keep a separate subscription or official account open just to cover occasional development calls.

Current prices per 1M tokens on the SwiftRelay pricing page include GPT-6.1 Sol at $0.1736 for input, $0.8542 for output and $0.0347 for cache read. DeepSeek V4 Flash is $0.2639 for input, $1.06 for output and $0.006944 for cache read. These figures make it possible to estimate a test budget directly from the token counts you expect.

Example: a single request using 1M input tokens and 100,000 output tokens on GPT-6.1 Sol would cost $0.1736 plus $0.08542, for a total of $0.25902. Another example with 200,000 input tokens and 50,000 output tokens on DeepSeek V4 Flash would cost $0.05278 plus $0.053, for a total of $0.10578. These are examples, not quotes for your workload, but they show how the deduction follows actual usage.

For a broader comparison, Claude Sonnet 5.5 is listed at $0.9792 input, $4.89 output and $0.0861 cache read per 1M tokens. DeepSeek V4 Pro is $1.17 input, $3.51 output and $0.0389 cache read. Gemini 3.1 Pro is $1.35 input, $7.81 output and $0.1347 cache read. Run a small representative test, inspect the dashboard, and let the recorded costs guide your choice.

How a SwiftRelay refund works on unused top-up credit

The refund path is straightforward: request a refund for unused credit within 11 days of a top-up. The refunded amount is the unused credit, minus what was used and minus the payment fee. In other words, SwiftRelay does not refund the whole original top-up if part of the balance has already paid for calls. The eligible window is 11 days from the top-up, so check the request soon after you decide a test is finished.

Example: if you top up $6.94 and then use part of that balance, the refund equals $6.94 minus the amount used minus the applicable payment fee. The usage list helps you identify what was used, while the original top-up amount and payment fee determine the final refund. Keep the top-up date, review the usage entries, and submit the request inside the 11-day window.

That rule is useful during experimentation because it gives each top-up a clear review point. If a model or client pairing does not suit your project, you have a defined window to ask about unused credit instead of letting a small trial become an indefinite leftover balance.

Moving from a small experiment to production usage

Once the first test looks right, scale the balance rather than changing the billing model. SwiftRelay supports up to 20 live API keys per account, which gives you room to separate environments, services or components while keeping the setup manageable. Each live key can follow the same short configuration path, and the dashboard continues to show tokens and cost per call for every request.

A sensible production path begins with a small top-up, a single representative workflow and a review of the usage list. If the workload grows, add balance with one of the larger top-up amounts, such as $69.44 or $138.89. If a top-up is unused and falls within 11 days, the refund process remains available. If it is active, per-token deductions continue to reflect what your application actually consumes.

Support is available through Messages in the dashboard and requires login. There is no support email, so keep questions, key questions and refund requests inside the SwiftRelay dashboard where the account and usage context are already available.

SwiftRelay keeps the loop tight: top up, connect with a few lines, run a real request, inspect the cost, and repeat. The $0.22 sign-up gift credit gives you a small head start, and referral rewards add another option: 14% of each top-up by someone you invited, plus 3% from the people they invite. Rewards can be withdrawn with a $4.86 minimum or moved into the balance.

The stopwatch is ready, the pit lane is short, and the first run can be clean. Sign up for SwiftRelay today, top up your balance, and put your first API call on the track.

Keep reading

Back for another lap?Log in