What HTTP 402 Signals on a SwiftRelay API Relay
HTTP 402 is the payment-required status. On SwiftRelay, a pay-per-token API relay, it shows up when a request cannot be billed against the balance attached to your key. SwiftRelay works the way a fuel pump works: you top up first, every call takes exactly what it uses from that balance, and if there is not enough credit to cover the call, the request stops with HTTP 402 instead of quietly creating a bill you did not agree to.
That is the useful thing about this status. It is not a vague failure. It is a clear statement that the balance behind the request needs attention. Because SwiftRelay has no monthly fee and nothing to subscribe to, there is no plan to renew and no minimum spend to maintain. The only moving part is the balance you chose to put there, and the only deduction is what each call actually consumed.
Think of the first hour with SwiftRelay as a first lap. You connect in minutes: copy three lines and run. The API host is https://api.fastapirelay.com, and once your key is live, the calls start deducting from your top-up. If you later see HTTP 402, the fix is part of the same simple loop: check the balance, top up if it is low, and run again.
Why a 402 Appears: Balance, Keys and Usage Checks
In practice, HTTP 402 on SwiftRelay points at one of a small number of concrete conditions, and each one has a quick habit that catches it.
- The balance ran out. SwiftRelay deducts only what each call used, and a balance can reach zero between two requests. Top up and the next call proceeds normally.
- The top-up did not land yet. A fresh balance may take a moment to settle. Check the balance in the dashboard before changing anything else.
- The key is wrong or retired. A key that is mistyped, deleted, or no longer live cannot draw on your balance. Up to 20 live API keys per account are supported, so you can keep one key per project and remove the ones you no longer use.
- The call is larger than the remaining balance. A single expensive request can exceed what is left. Because SwiftRelay charges per token, a longer prompt or a heavier output can tip a nearly empty balance over the line on its own.
Two habits make this almost boring. First, glance at the balance before a busy stretch of work rather than after a failed call. Second, use the usage list in the dashboard, which shows tokens and cost per call, so you can see which request shape is eating the balance fastest. If a 402 ever needs a human, support is through Messages in the dashboard where you are logged in; there is no support email to hunt for.
Trim Spend by Matching the Model to the Job
The fastest way to keep HTTP 402 away is to make each call cheaper. SwiftRelay prices per 1M tokens, with separate input, output and cache read figures on the pricing page, so the levers are visible. You are not buying a seat. You are buying tokens, and you can choose which tokens.
Compare the current prices per 1M tokens for a straight 1M input plus 1M output workload. Claude Fable 5.1 comes to $3.44 input plus $17.18 output. Claude Opus 5.5 comes to $1.53 input plus $7.27 output. Claude Sonnet 5 comes to $1.01 input plus $5.06 output, and Claude Sonnet 5.5 comes to $0.9792 input plus $4.89 output. Claude Haiku 4.5 comes to $0.3542 input plus $1.69 output.
On the other side of the board, GPT-6.1 Sol comes to $0.1736 input plus $0.8542 output, and DeepSeek V4 Flash comes to $0.2639 input plus $1.06 output. Gemini 3.1 Pro comes to $1.35 input plus $7.81 output. Those numbers are what you steer with, and the choice is per call, not per plan.
Here is an example of the habit. Say you spend a day on 200 calls of Claude Sonnet 5.5, each with 2,000 input tokens and 1,000 output tokens. At $0.9792 per 1M input tokens and $4.89 per 1M output tokens, each call costs $0.0019584 input plus $0.00489 output, or $0.0068484. Across 200 calls, the example total is $1.36968. Run the same 200 calls on DeepSeek V4 Flash with 4,000 input and 2,000 output tokens each, and the example total is $1.5878 at $0.2639 input and $1.06 output per 1M tokens. Neither number is a quote for your work; they are examples built from the published prices, and they show how switching the model for a routine task changes the daily line item.
Cache Reads and Token Counts as Cost Habits
Cache read pricing is the quiet lever most people ignore. On SwiftRelay, cache reads are listed at their own rate per 1M tokens, and they are far below the input rate on every model shown. Claude Fable 5.1 lists cache read at $0.2222 against $3.44 for input. Claude Haiku 4.5 lists $0.0278 against $0.3542. Claude Opus 5.5 lists $0.0694 against $1.53, Claude Sonnet 5 lists $0.0889 against $1.01, and Claude Sonnet 5.5 lists $0.0861 against $0.9792. DeepSeek V4 Flash lists $0.006944 against $0.2639, Gemini 3.1 Pro lists $0.1347 against $1.35, and GPT-6.1 Sol lists $0.0347 against $0.1736.
The habit is simple: when a task repeats the same material, let the cache do the reading instead of paying the full input rate again. The savings show up directly in the usage list, where tokens and cost per call are recorded.
A second habit is to watch the shape of each call. Output tokens carry the higher rate on every model listed, so trimming a rambling answer and tightening a prompt both pull the balance down. A third habit is to check the usage list once a day and ask one question: which of my calls is the most expensive, and could a lighter model handle it? On SwiftRelay, that change takes effect on the next request, with no plan change and no subscription to cancel.
Top Up, Refund and Referral Habits That Keep Costs Clear
Because SwiftRelay sells no plans, the balance is the budget. The available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. New sign-ups receive $0.22 in gift credit, so the very first call does not have to be funded from scratch.
Top up in a size that matches your rhythm. If you are testing a workflow, a small amount covers the early laps. If you run long sessions, a larger top-up means fewer balance checks and fewer chances of meeting HTTP 402 mid-task. And if your balance is sitting unused, unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee.
Inviting others can also feed the balance. You receive 14% of each top-up by someone you invited, and 3% from the people they invite. Those rewards can be withdrawn once they reach the $4.86 minimum, or moved straight into your balance, which is often the smoother option when you would rather spend than wait.
The end-of-week routine takes one minute: read the usage list, compare the total against what you expected, top up if the runway is short, and move any referral rewards into the balance so they are working for you.
Sign Up and Make Your First Call in Minutes
SwiftRelay is built for a clean first run. No monthly fee, nothing to subscribe to, no plan to pick. Top up a balance, connect in minutes by copying three lines and running, and watch every call deduct exactly what it used. When a 402 appears, you already know the answer: check the balance, top up, and go again.
Sign up for SwiftRelay today, claim your $0.22 in gift credit, and put your first call on the track.