Gemini 3.1 Pro on SwiftRelay: what you are actually signing up for
Starting with a new model usually comes with a short list of small but annoying questions. Which endpoint do I use? Is there a subscription waiting at the end? Will I be surprised by a bill I cannot explain? Can I see what each call costs? SwiftRelay is built to answer those questions in a straightforward way.
SwiftRelay is a pay-per-token API relay. You top up a balance, and each call deducts only what it used. There is no monthly fee and nothing to subscribe to. That is the whole billing idea: you are not buying a bundle of seats, and you are not committing to a recurring package before you know how much you will use.
For this guide, we are focusing on Gemini 3.1 Pro, listed on the SwiftRelay pricing page as gemini-3.1-pro. It is one of the models you can reach through SwiftRelay, and it is a sensible place to begin if you want to try a capable model without turning setup into a project.
Here is the frank version of what to expect. You will need a SwiftRelay account, a balance, and a key. You will connect Gemini through Gemini CLI using the Gemini native protocol. The setup is three lines. After that, your usage page shows tokens and the cost of each call, so you can check the numbers instead of guessing.
Three lines and a clean first run
The fastest way to get moving is the one SwiftRelay is designed around: copy three lines and run. For Gemini, use the Gemini CLI configuration below.
01 export GOOGLE_GEMINI_BASE_URL=https://api.fastapirelay.com 02 export GEMINI_API_KEY=<your swft_ key> 03 export gemini
Gemini models use only their native protocol, through Gemini CLI. They are not OpenAI-compatible, so this is the pairing to use for Gemini 3.1 Pro. Point the Gemini CLI at the SwiftRelay API host, place your SwiftRelay key in the Gemini API key variable, and launch Gemini CLI.
Your key is issued from your SwiftRelay account. Once it is in place, you can start a session and make your first request. The API host used in the configuration is https://api.fastapirelay.com.
A useful first-time habit is to make one small call, then open the dashboard and look at the usage entry. SwiftRelay lists tokens and cost per call. That single check answers two doubts at once: the configuration is live, and you can see exactly what the call consumed. It turns an abstract setup into a visible loop you can repeat.
There is also a simple sign-up gift credit of $0.22. It is not a plan, a pass, or a monthly allowance. It is credit on the account that can be used while you test the connection and get comfortable with the flow.
Gemini 3.1 Pro pricing, read without the fog
Gemini 3.1 Pro is priced on the SwiftRelay pricing page per 1M tokens. Input is $1.35, output is $7.81, and cache read is $0.1347.
Those three figures are the ones to keep in mind. Input tokens are the material you send to the model. Output tokens are the material the model sends back. Cache read is the category SwiftRelay lists for cached input usage. Because SwiftRelay charges per token, your bill reflects the work your calls actually did.
Here is a worked example, not a forecast. Say you make one call with 100,000 input tokens and 20,000 output tokens. Using the Gemini 3.1 Pro prices above, the input portion is $0.135 and the output portion is $0.1562, for a total of $0.2912. Another example: a single call with 1,000,000 cache-read tokens would cost $0.1347 at the listed cache-read rate.
Those examples show why a balance is practical. Small calls add up gradually, and you can watch each one in the usage list. If you want to compare models before committing, SwiftRelay also lists Gemini 2.5 Flash at $0.1875 input and $1.50 output per 1M tokens, plus Gemini 3.8 Flash at $0.9931 input and $4.46 output, and Gemini 4 Argon at $1.31 input and $6.28 output.
You can switch models without changing the shape of your setup. The model name and the request change; the host, key, and Gemini CLI flow stay the same. That is the convenience of a relay in plain terms: one connection, several models, one usage view.
The first-time doubts, answered without spin
Will I get hit with a monthly charge? No. SwiftRelay has no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used. If you keep your own subscription or official account for other work, you can still use SwiftRelay for pay-as-you-go API access without another recurring commitment.
How much do I need to add? The available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44, and $138.89. A small first top-up is enough to run the three-line setup and make a test call. You can add more later as your usage becomes clearer.
What if I add money and change my mind? Unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee. That makes a first top-up a low-friction way to try the service rather than a long-term promise.
Can I keep an eye on the spend? Yes. The usage list shows tokens and cost per call. That matters most in the first session, when you are learning how a particular prompt shape translates into token counts.
How many keys can I manage? Up to 20 live API keys per account. That gives you room to separate projects or environments without creating a new account for each one.
Where do I go if something looks wrong? Support is handled through Messages in the SwiftRelay dashboard, and login is required. There is no support email to hunt for. If a request fails or an entry in the usage list does not look right, open Messages and describe what you see.
Top up, track, and keep the whole thing under control
Once the first run is clean, the routine is short. Top up when the balance needs it. Run Gemini CLI against the SwiftRelay host. Check tokens and cost per call in the usage list. Adjust the model or the prompt if the numbers are not what you expected. That is a complete working loop, and it is deliberately plain.
There is another way SwiftRelay rewards you for bringing people along. You receive 14% of each top-up made by someone you invited, and 3% from the people they invite in turn. Rewards can be withdrawn, with a minimum withdrawal of $4.86, or moved into your balance to cover usage.
For most readers, the sensible first move is smaller than it sounds: sign up, claim the $0.22 gift credit, add one modest top-up, paste the three Gemini CLI lines, and make one test call. Check the usage entry, confirm the cost, and decide from there. No new subscription to cancel, no monthly bill to interpret, just a working path into Gemini 3.1 Pro with the numbers visible.
SwiftRelay gets you from sign-up to a running Gemini 3.1 Pro setup in minutes, with per-token billing that stays easy to follow — so start the clock, copy those three lines, and make your first run on SwiftRelay today.