What changes when OpenCode moves to SwiftRelay
OpenCode gives you a flexible place to work with models from different providers. SwiftRelay changes the route those requests take: instead of managing a separate provider setup for each model family, you connect OpenCode to one OpenAI-compatible endpoint and choose from the models available through it.
The practical change is simple. OpenCode keeps its familiar client workflow, while SwiftRelay handles the relay layer and bills each call according to the tokens it actually uses. There is no monthly fee and nothing to subscribe to. You top up a balance, and every call deducts only what it used, with the usage list showing tokens and cost per call.
What stays reassuringly straightforward is the shape of the connection. The base URL is https://api.fastapirelay.com/v1, and your API key is a swft_ key from SwiftRelay. In other words, OpenCode connects through the OpenAI-compatible endpoint, and you can pair it with GPT, DeepSeek and the other remaining models available through SwiftRelay.
That makes SwiftRelay a practical fit for an OpenCode user who wants a single route into several models without juggling a stack of separate accounts. It is a pay-per-token service, so you stay in control of the balance you put behind your coding sessions.
The three-line start that gets OpenCode moving
SwiftRelay’s main promise is quick: connected in minutes by copying three lines and running. For OpenCode, the connection relies on the same OpenAI-compatible setup used by compatible clients. You need your base URL, your swft_ key, and the usual OpenCode configuration step that points the client at that endpoint.
Think of the setup as three small moves rather than a migration project:
- Create your SwiftRelay account and top up the balance you want to use.
- Copy your swft_ API key and use https://api.fastapirelay.com/v1 as the base URL in OpenCode.
- Select a supported model, send your first request, and check the usage list for tokens and cost per call.
You can start with the smallest available top-up of $1.39, which is useful if you want to test the connection before committing a larger balance. Other top-up amounts are $6.94, $13.89, $27.78, $69.44 and $138.89.
New accounts also receive $0.22 in sign-up gift credit. That is a small runway for a first test, and it lets you confirm that OpenCode is talking to the endpoint before you build a larger routine around it.
Four model choices for everyday OpenCode work
Once the connection is live, the useful decision is which model to select for the job. SwiftRelay’s current pricing page lists four concrete options that work with OpenCode through the OpenAI-compatible endpoint. Each has its own balance between input price, output price and cache read price.
- DeepSeek V4 Flash, with the identifier deepseek-v4-flash: input $0.2639, output $1.06, and cache read $0.006944 per 1M tokens.
- DeepSeek V4 Pro, with the identifier deepseek-v4-pro: input $1.17, output $3.51, and cache read $0.0389 per 1M tokens.
- GPT-6 Astra, with the identifier gpt-6-astra: input $0.6597, output $3.28, and cache read $0.0653 per 1M tokens.
- GPT-6.1 Sol, with the identifier gpt-6.1-sol: input $0.1736, output $0.8542, and cache read $0.0347 per 1M tokens.
For a quick OpenCode choice, look at the kind of work you are doing and how much output it tends to produce. A chatty task that returns long explanations can lean on output cost. A short-answer task may make input cost the more visible line. Repeated work that benefits from cached context also deserves attention to the cache read figure.
The four-model menu gives you room to compare without adding a subscription. You can try one model for a quick edit, another for a larger reasoning task, and check the per-call cost in the usage list before deciding what belongs in your regular OpenCode flow.
A clear cost example for one million tokens
Here is a worked example, not a forecast of what you will spend. The calculation assumes exactly 1M input tokens and 1M output tokens, with no cache read and no other charges.
- With GPT-6.1 Sol, the example total is $0.1736 + $0.8542 = $1.0278.
- With DeepSeek V4 Flash, the example total is $0.2639 + $1.06 = $1.3239.
- With GPT-6 Astra, the example total is $0.6597 + $3.28 = $3.9397.
- With DeepSeek V4 Pro, the example total is $1.17 + $3.51 = $4.68.
Another worked example: if a day of OpenCode use produces 100,000 input tokens and 50,000 output tokens with GPT-6.1 Sol, the token charge is $0.01736 + $0.04271 = $0.06007. This is an example only, but it shows why the usage list matters: actual cost follows the traffic your work creates.
That visibility is a central part of the model. SwiftRelay lists tokens and cost per call, so you can see what a request consumed instead of guessing from a fixed package. If you are used to keeping your own subscription or official account, per-token billing offers a different rhythm: you fund the balance and watch it move.
Balance controls, keys and referral rewards
Because SwiftRelay is pay per token, the balance is the control centre. Top up when you want more runway, and each call deducts only what it used. There are no plans to compare and no recurring charge to remember.
The refund policy adds another layer of flexibility: unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee. That is useful when you are testing a new OpenCode setup and are not yet sure how quickly you will use the balance.
SwiftRelay supports up to 20 live API keys per account. That gives you room to keep separate keys for separate OpenCode projects or environments, while keeping each one under your control. The dashboard usage list remains the place to review tokens and cost per call.
There is also a referral programme. You receive 14% of each top-up made by someone you invited, plus 3% from the people they invite. Rewards can be withdrawn with a minimum of $4.86, or moved into your SwiftRelay balance and used for calls.
If you need help, support is available through Messages in the dashboard after you log in. Keeping the conversation in the same place as your balance and usage makes it easier to include the relevant call details when you ask a question.
Why OpenCode and SwiftRelay are a clean pairing
OpenCode stays at the centre of the experience. SwiftRelay supplies one OpenAI-compatible endpoint, a selection of GPT and DeepSeek models, transparent per-token pricing, and a balance model that avoids another recurring commitment.
The setup is compact: connect the base URL, add a swft_ key, pick a model, and run. The economics are equally direct: top up, make calls, and see the tokens and cost for each one. With a $0.22 sign-up gift credit and a $1.39 starting top-up, you can put it through a lap and decide from real usage.
Stopwatch ready, pit stop done, and OpenCode is pointed at SwiftRelay: sign up now, top up your balance, and start your first call.