What changes when Gemini CLI points at SwiftRelay
Gemini CLI keeps its own native protocol, and SwiftRelay simply gives it a clean place to send requests. The model family stays Gemini, the terminal stays your terminal, and the way you prompt stays exactly as you like it. What changes is the billing path. Instead of tracking an official account and its billing settings, you point Gemini CLI at the SwiftRelay API host, hand it a swft_ key, and let every call draw down a topped-up balance by what it actually used.
That is the whole change worth celebrating. Gemini models speak their native protocol through Gemini CLI, and SwiftRelay is the relay sitting behind that connection. This is not about forcing a Gemini model into a client that expects a different protocol; it is about using the right client and giving it a straightforward route to the SwiftRelay endpoint. Three lines and you are running. No monthly fee, nothing to subscribe to, no ceremony.
What stays the same matters just as much. You still type prompts, you still read responses, you still decide how long a session runs. SwiftRelay does not ask you to learn a new command set or a new dashboard language. The dashboard is where your balance, your keys, and your per-call usage live, while the work itself happens in the terminal you already use.
In short: Gemini CLI stays Gemini CLI, and the meter on your SwiftRelay balance becomes the thing you watch.
Three lines and one clean first run
The SwiftRelay setup is deliberately short. Copy these three lines into your shell, one after the other:
01 export GOOGLE_GEMINI_BASE_URL=https://api.fastapirelay.com 02 export GEMINI_API_KEY=<your swft_ key>
gemini
The first line tells Gemini CLI where to send its native-protocol traffic: the SwiftRelay API host. The second line supplies your swft_ key as the credential, and the third line starts the client. That is the entire pit stop. There is no account pool to sort out, no extra tool to install, and no configuration file to hand-edit.
Before you paste those lines, top up your SwiftRelay balance. Available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89, so you can start small, run a session, and see the real cost in the usage list before you commit to a larger balance. Your sign-up gift credit is $0.22, which is enough to put a handful of calls on the meter and watch the deductions tick down.
Once the key is in place, you are live. If a line ever needs a second look, the API host is the only address involved, and the key format is the same swft_ key you use elsewhere with SwiftRelay.
A worked day on Gemini 2.5 Flash, line by line
Here is an example, not a promise: say you spend a day working with Gemini CLI and Gemini 2.5 Flash, whose SwiftRelay prices per 1M tokens are $0.1875 input, $1.50 output and $0.0194 cache read. Two calls make the arithmetic easy to follow.
Example call A: 100,000 input tokens, 10,000 output tokens, 50,000 cache read tokens.
- Input: 100,000 tokens is 0.1 of 1M, so 0.1 × $0.1875 = $0.01875
- Output: 10,000 tokens is 0.01 of 1M, so 0.01 × $1.50 = $0.015
- Cache read: 50,000 tokens is 0.05 of 1M, so 0.05 × $0.0194 = $0.00097
- Call A total: $0.01875 + $0.015 + $0.00097 = $0.03472
Example call B: 200,000 input tokens, 20,000 output tokens, no cache read.
- Input: 200,000 tokens is 0.2 of 1M, so 0.2 × $0.1875 = $0.0375
- Output: 20,000 tokens is 0.01 of 1M, so 0.01 × $1.50 = $0.03
- Call B total: $0.0375 + $0.03 = $0.0675
Example day total: $0.03472 + $0.0675 = $0.10222.
Now put the sign-up gift credit next to it: $0.22 − $0.10222 = $0.11778 remaining. That is the shape of the whole offer in one line. You are not paying for a seat you might not use; you are paying for the tokens your prompts actually consumed, and the difference between your credit and your spend stays on the SwiftRelay balance.
Because Gemini models run through their native protocol via Gemini CLI, the model choice is the only real decision on the track. Everything else — the endpoint, the key, the deduction — is already handled.
What stays the same: balance, keys and per-call receipts
SwiftRelay is a pay-per-token API relay. There is no monthly fee and nothing to subscribe to: you top up a balance, and each call deducts only what it used. That is a different rhythm from keeping your own subscription or official account open and paying for capacity you may never touch, and it keeps the cost of a quiet day genuinely quiet.
Your account can hold up to 20 live API keys, which is handy when you want a separate key for a project, a client, or a teammate. The usage list shows tokens and cost per call, so when you want to know where a cent went, the answer is a row in the dashboard rather than a guess.
Top-ups are refundable in a straightforward way: unused credit within 11 days of a top-up can be refunded, minus what was used and the payment fee. So testing a larger model on a bigger balance for a few days is a decision you can revisit.
Support runs through Messages in the dashboard and requires a login; there is no support email to hunt for. Everything you need — balance, keys, receipts, refunds, questions — sits behind the same sign-in.
Reading the Gemini price sheet before you pick a model
Gemini models on SwiftRelay are priced per 1M tokens, and the differences between them are worth a minute of arithmetic. Gemini 2.5 Flash is $0.1875 input, $1.50 output and $0.0194 cache read. Gemini 3.1 Pro is $1.35 input, $7.81 output and $0.1347 cache read. Gemini 3.8 Flash is $0.9931 input, $4.46 output and $0.0986 cache read. Gemini 4 Argon is $1.31 input, $6.28 output and $0.0653 cache read.
Another example, using the same 100,000 input tokens and 10,000 output tokens for each model:
- Gemini 3.1 Pro: 0.1 × $1.35 = $0.135, plus 0.01 × $7.81 = $0.0781, total $0.2131
- Gemini 3.8 Flash: 0.1 × $0.9931 = $0.09931, plus 0.01 × $4.46 = $0.0446, total $0.14391
- Gemini 4 Argon: 0.1 × $1.31 = $0.131, plus 0.01 × $6.28 = $0.0628, total $0.1938
Those are examples, not quotes, but they show the pattern clearly: you can compare models on real numbers, run the one that fits the job, and check the exact deduction in the usage list afterwards. No plan guessing, no surprise line item.
Your first lap on SwiftRelay starts at sign-up
There is one more reason to bring a friend along the pit lane. When someone you invited tops up, you receive 14% of each top-up, and 3% from the people they invite in turn. Those rewards can be withdrawn once they reach the $4.86 minimum, or moved straight into your SwiftRelay balance to cover the next set of calls.
So the full loop is short: sign up, claim the $0.22 gift credit, top up from $1.39, copy three lines, and start a Gemini CLI session against the SwiftRelay API host. Every call shows its tokens and its cost, and the balance follows you call by call.
Stopwatch ready, key in hand, three lines on the board — sign up for SwiftRelay, top up your balance, and take the first lap with Gemini CLI today.