SwiftRelay

← All sprint notes

Codex Pricing and Usage via SwiftRelay API Relay

Protocol pit stopEN

What first-time Codex users actually need from an API relay

Starting with a new API relay should not require a long tour of settings, a sales call or a subscription you have to remember to cancel. With SwiftRelay, the setup is deliberately small: connect in minutes by copying three lines and running them. You top up a balance, and each call deducts only what it used. There is no monthly fee and nothing to subscribe to.

That matters when you are opening SwiftRelay for the first time. You may be comparing an API relay with keeping your own subscription or official account, and the question is simple: what will I pay, and will I understand the bill? SwiftRelay answers both directly. Your usage lists the tokens and the cost per call, so you can see how a request adds up instead of guessing.

SwiftRelay is built around the idea that a relay should be a straightforward route between your Codex workflow and the models you choose. You get a balance, an API key and a clear pricing page. If you are wondering whether the service is complicated to start, the honest answer is that the connection itself is short, and the billing follows the work you actually do.

Connecting Codex in three short steps

For Codex, SwiftRelay uses the OpenAI-compatible endpoint. The API host is https://api.fastapirelay.com/v1, and your SwiftRelay key begins with swft_. The three setup lines are:

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

codex

Copy those lines into your environment, replace the placeholder with your own key, and run the Codex command. The setup is designed to be repeatable: one base URL, one key and one command. You do not need to reorganise your project around a special client or learn a new billing language before your first request.

Once the key is active, the models available through this OpenAI-compatible route include GPT-6 Astra, GPT-6.1 Sol, DeepSeek V4 Flash and DeepSeek V4 Pro. The important point is that you can select the model that fits the job and then check the cost shown for each call in your usage list. SwiftRelay does not hide the meter behind a vague allowance.

What the per-token prices look like in practice

Per-token billing can feel abstract until you put a small example on the table. The following is an example, using the current SwiftRelay pricing page figures. If a single call uses 1 million input tokens and 1 million output tokens with GPT-6.1 Sol, the input cost is $0.1736 and the output cost is $0.8542, for a total of $1.0278 for that example call.

Here is another example using DeepSeek V4 Flash: 1 million input tokens cost $0.2639, and 1 million output tokens cost $1.06, making the example total $1.3239. Cache reads are listed too, at $0.006944 for DeepSeek V4 Flash and $0.0347 for GPT-6.1 Sol.

These examples are not a forecast of what you will spend. They show how the figures are applied: input, output and cache read are separate lines, and your usage list shows tokens and cost per call. For a quick comparison, DeepSeek V4 Pro is listed at $1.17 per 1 million input tokens, $3.51 per 1 million output tokens and $0.0389 for cache reads. GPT-6 Astra is listed at $0.6597 input, $3.28 output and $0.0653 cache read per 1 million tokens.

Because you top up a balance rather than buy a fixed plan, the amount you add can match the amount you expect to use. SwiftRelay offers top-up amounts of $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. If you are testing a new workflow, the smaller top-up keeps the first step modest. If the workflow becomes part of your regular routine, you can choose a larger balance without changing the billing model.

Getting help through SwiftRelay Messages

One of the first doubts about any new service is practical: if something does not look right, where do I ask? SwiftRelay handles support through Messages in the dashboard. You need to log in to use it, and the conversation stays attached to the account where you can check your balance, keys and usage.

That is the whole support route, and it is worth being frank about it. There is no support email to hunt for. Instead, you open the dashboard, start a Message and describe the question. This is useful when the issue involves your account, such as checking whether a key is live, reviewing a call cost or confirming how a top-up appears.

Messages also fit the way Codex work often happens. You can send the details of the request you were testing, note the model you selected and ask about the usage entry you are reading. The dashboard is already where your live API keys and per-call costs live, so the support thread and the account information are in the same place. Up to 20 live API keys are allowed per account, which gives you room to separate projects or rotate a key without creating a new account for every experiment.

Some questions will be answered by the setup itself. If Codex is not connecting, check that the base URL is https://api.fastapirelay.com/v1, that the API key is the swft_ key from SwiftRelay, and that the command is entered as shown. If the connection works but the cost is unclear, open the usage list first, then use Messages with the call details. This keeps the question specific and makes it easier to understand the answer.

What happens to your balance, credit and rewards

Another first-time worry is whether a small balance is easy to recover if you decide not to continue. SwiftRelay provides a refund for unused credit within 11 days of a top-up, minus what was used and the payment fee. That is a straightforward rule: the portion you have not spent is the portion considered for the refund, with the stated deductions applied.

New accounts also receive a sign-up gift credit of $0.22. It is a small start, but a small start is still a start: you can use it to try the connection and see how a call appears in the usage list before deciding how much to top up.

SwiftRelay also has referral rewards. You receive 14% of each top-up by someone you invited, and 3% from the people they invite. Rewards can be withdrawn once they reach the $4.86 minimum, or moved into your balance. The balance option is convenient if you want to put the reward toward your next call rather than handle a separate withdrawal.

None of these features requires a plan purchase. There is no monthly fee, nothing to subscribe to and no promise that a fixed feature bundle is included. You choose a top-up amount, use the balance per token and keep an eye on the usage list. If you want a clear explanation of a charge or a refund, Messages is the place to ask.

Why readers make the first SwiftRelay run

The appeal of SwiftRelay is not a complicated pitch. It is a short setup, transparent per-call costs and a support path that stays in the dashboard. You copy three lines, run Codex, and check what the call used. If the model or the spending level is not right for your workflow, you can adjust the top-up or ask for help through Messages.

For a first-time reader, that removes the main friction: there is no need to commit to a recurring arrangement before you understand the meter. The pricing page shows input, output and cache-read figures, the dashboard shows tokens and cost per call, and the refund rule covers unused credit within 11 days of a top-up.

So if you have been hesitating over the first step, the stopwatch is ready. Open SwiftRelay, add a balance, copy the three Codex lines, and make your first clean run through the API relay.

Keep reading

Back for another lap?Log in