Start a Codex experiment through SwiftRelay in minutes
Codex is a practical way to try a model from the command line, and SwiftRelay is designed to make that first step short. The service is a pay-per-token API proxy: you top up a balance, and each API call deducts only the amount used by that call. There is no monthly fee and nothing to subscribe to, so a small experiment can remain small.
SwiftRelay connects in minutes with three lines. Copy the configuration, add your swft_ key, and run Codex. The API host is the same for the models you can use with the OpenAI-compatible endpoint. That makes it easy to begin with one request, inspect the usage shown for the call, and decide whether the result fits the work you have in mind.
Here is the exact Codex setup:
01 export OPENAI_BASE_URL=https://api.fastapirelay.com/v1 02 export OPENAI_API_KEY=<your swft_ key>
codex
When you sign up, SwiftRelay includes $0.22 in sign-up gift credit. That is enough to make an initial test without committing to a larger top-up. If the first experiment looks useful, you can add more balance from the available top-up amounts: $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89.
Read each SwiftRelay model price as three separate figures
The SwiftRelay pricing page lists prices per 1M tokens, so the clearest way to compare models is to read three figures for each one: input, output and cache read. These are different kinds of usage, and adding them together before you understand the split can give you a misleading picture of a project’s cost.
DeepSeek V4 Flash, listed as deepseek-v4-flash, has an input price of $0.2639 per 1M tokens, an output price of $1.06 per 1M tokens and a cache read price of $0.006944 per 1M tokens.
DeepSeek V4 Pro, listed as deepseek-v4-pro, has an input price of $1.17 per 1M tokens, an output price of $3.51 per 1M tokens and a cache read price of $0.0389 per 1M tokens.
GPT-6 Astra, listed as gpt-6-astra, has an input price of $0.6597 per 1M tokens, an output price of $3.28 per 1M tokens and a cache read price of $0.0653 per 1M tokens.
GPT-6.1 Sol, listed as gpt-6.1-sol, has an input price of $0.1736 per 1M tokens, an output price of $0.8542 per 1M tokens and a cache read price of $0.0347 per 1M tokens.
For a first comparison, treat these numbers as a map rather than a promise about a final bill. Input tokens are the material sent to the model. Output tokens are the material returned. Cache read tokens are a separate category shown in the pricing. SwiftRelay usage lists tokens and cost per call, so you can check the actual split after your first requests instead of estimating everything in advance.
Compare a simple Codex workload with the listed prices
Here is an example, not a quotation or a fixed package. Suppose one experiment processes 1M input tokens and receives 1M output tokens, with no cache read tokens. Using the listed prices, the example totals are:
- DeepSeek V4 Flash: $0.2639 input plus $1.06 output, for a total of $1.3239.
- DeepSeek V4 Pro: $1.17 input plus $3.51 output, for a total of $4.68.
- GPT-6 Astra: $0.6597 input plus $3.28 output, for a total of $3.9397.
- GPT-6.1 Sol: $0.1736 input plus $0.8542 output, for a total of $1.0278.
This example shows why the output figure deserves attention. In each case, output is higher than input. If your workload returns long answers, the output column will matter more than the input column. If it sends a large amount of context and returns short responses, the balance can be different. Cache reads add their own line, at $0.006944 for DeepSeek V4 Flash, $0.0389 for DeepSeek V4 Pro, $0.0653 for GPT-6 Astra and $0.0347 for GPT-6.1 Sol, per 1M tokens.
Because SwiftRelay charges per token, a test does not need to be designed around a fixed subscription. You can try one model, review the usage list, and try another with the same Codex setup. The goal of the first experiment is to learn the shape of your own usage.
Move from experimentation to a repeatable Codex workflow
A sensible path to production use begins with a small, observable test. Start with the Codex configuration above and run a task that resembles your real work. After the call, open the SwiftRelay dashboard and look at the usage entry. It lists tokens and cost per call, which gives you a concrete record to compare with the pricing page.
Next, choose one of the four listed models as your working baseline. For a quick test, you might begin with GPT-6.1 Sol and record its input, output and cache read usage. If the task needs a different balance, test DeepSeek V4 Flash, DeepSeek V4 Pro or GPT-6 Astra in the same way. Keep the prompt and the output length similar so that the comparison is easier to read.
Then repeat the test with a larger sample. This is an example of a workflow: run a representative batch, review the tokens and cost for each call, and note the pattern. You can use the same swft_ key and the same OpenAI-compatible base URL throughout. SwiftRelay supports up to 20 live API keys per account, which gives you room to separate experiments or keep a key for a distinct workflow without creating a new billing arrangement.
Balance is the control point. Top up only the amount you are ready to use, and remember that each call deducts what it used. The available top-up amounts are designed as choices rather than a required commitment: $1.39 for a very small trial, $6.94 or $13.89 for extended testing, and $27.78, $69.44 or $138.89 when a workflow is becoming regular. There is no monthly fee and nothing to subscribe to.
Keep the balance, rewards and support details in view
SwiftRelay also makes the account side of the service explicit. If someone you invited tops up, you receive 14% of that top-up. If the person they invited tops up, you receive 3%. Rewards can be withdrawn once the minimum is $4.86, or they can be moved into your balance. That gives you two ways to handle them, depending on whether you want available funds or balance ready for API calls.
The refund rule is straightforward: unused credit within 11 days of a top-up can be refunded, minus what was used and the payment fee. It is worth checking the balance before a larger top-up, especially while you are still learning how your prompts translate into input and output tokens.
Support is available through Messages in the dashboard, where login is required. There is no support email. Keeping questions in Messages also keeps the conversation beside the account activity and usage records you are already using to evaluate a model.
For a production-minded setup, the practical checklist is short: use the Codex configuration, select a listed model, top up a balance, run a representative test, and check the tokens and cost per call before you increase the volume. SwiftRelay keeps the pricing visible and the billing tied to actual use, so you can build the workflow one measured call at a time.
Choose your model, top up and keep your Codex loop moving
The first experiment does not need a large commitment. Sign up for SwiftRelay, use the $0.22 sign-up gift credit, copy the three Codex lines, and compare the four listed models against the way you actually work. When you are ready for more, top up the balance that matches your pace and let per-token billing keep the decision in your hands. Start your SwiftRelay account now, run your first Codex request, and turn one measured experiment into a workflow you can keep using.