Why a Grok 4.7 bill on SwiftRelay stays easy to read
SwiftRelay is a pay-per-token API relay, and that single idea makes the bill for Grok 4.7 straightforward to understand. There is no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used. The usage view lists tokens and cost per call, so you can trace a charge back to the request that produced it instead of guessing from an opaque invoice.
The current SwiftRelay pricing page lists Grok 4.7 (grok-4.7) at $0.5556 per 1M input tokens, $1.66 per 1M output tokens and $0.1375 per 1M cache read tokens. Those three figures are the whole formula. Multiply your token volume in each category by the matching rate, add the results, and you have the cost of the request.
That approach is a good fit if you would rather keep spending tied to actual usage than commit to a fixed recurring payment for a service you use unevenly. SwiftRelay also keeps the setup short: connected in minutes, copy three lines and run. Sign up, top up a balance, and the $0.22 sign-up gift credit is there to help you make the first call.
- Input tokens are priced at $0.5556 per 1M tokens for grok-4.7.
- Output tokens are priced at $1.66 per 1M tokens.
- Cache read tokens are priced at $0.1375 per 1M tokens.
- Every call deducts only what it used from your topped-up balance.
A worked 30-day Grok 4.7 bill, step by step
The following is an example, not a quotation for a real account. Assume you run a light daily workload for 30 days: 100,000 input tokens, 20,000 output tokens and 50,000 cache read tokens per day. Using the Grok 4.7 prices above, the daily cost works out like this.
- Input: 100,000 tokens at $0.5556 per 1M tokens equals $0.05556.
- Output: 20,000 tokens at $1.66 per 1M tokens equals $0.0332.
- Cache read: 50,000 tokens at $0.1375 per 1M tokens equals $0.006875.
- Total for one day: $0.095635.
- Total for 30 days: $2.86905.
Now try a heavier example month. Assume 500,000 input tokens, 100,000 output tokens and 200,000 cache read tokens per day, again for 30 days.
- Input: 500,000 tokens at $0.5556 per 1M tokens equals $0.2778 per day.
- Output: 100,000 tokens at $1.66 per 1M tokens equals $0.166 per day.
- Cache read: 200,000 tokens at $0.1375 per 1M tokens equals $0.0275 per day.
- Total for one day: $0.4713.
- Total for 30 days: $14.139.
Two different habits, two different bills, and both are calculated from the same published rates. That is the practical value of per-token billing on SwiftRelay: the figure on the usage screen is not a guess, it is tokens times rate. Because you top up a balance rather than buy a fixed recurring package, a quiet week simply means a small deduction, and a busy week means a larger one.
For a starting balance, the available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. Pick the one that suits the workload in the example above, then check the usage list after your first calls to see whether the real pattern matches your assumption.
Troubleshooting a 401 Unauthorized response
A 401 Unauthorized response usually points at the credential or the address you sent it to, so check those first. On SwiftRelay, Grok 4.7 is reached through the OpenAI-compatible endpoint. The base URL is https://api.fastapirelay.com/v1 and the API key is your swft_ key. A missing key, a stale key or a base URL that stops at the host without the /v1 path will all send you in the wrong direction.
For Codex, the three lines are:
01 export OPENAI_BASE_URL=https://api.fastapirelay.com/v1 02 export OPENAI_API_KEY=<your swft_ key>
codex
If you use another OpenAI-compatible client, set the same base URL and paste the same swft_ key into the API key field. Then run the client again and watch the usage list: a successful call should appear there with its token counts and cost.
Two more checks help. First, make sure you are using a live key from your SwiftRelay account rather than a placeholder such as your swft_ key, which is only a template. Second, confirm that the key you copied is complete, with no stray space at either end. SwiftRelay supports up to 20 live API keys per account, so if you have several projects running, give each one its own key and you can tell which project generated which call.
If the response still comes back as 401 Unauthorized after those checks, open Messages in the dashboard and describe what you see there. Support runs through Messages in the dashboard and requires a login, and there is no support email to write to, so the in-dashboard thread is the route to use.
Troubleshooting a 404 Not Found response on the model name
A 404 Not Found response often comes down to a path or a model identifier that does not match what the endpoint expects. For Grok 4.7, the model id is grok-4.7, spelled exactly that way in the pricing table and in usage entries. A capitalised variant or a shortened label will not resolve to the same model.
The second half of the fix is the endpoint path. Requests to the OpenAI-compatible clients use https://api.fastapirelay.com/v1, so the model request must be built on top of that path rather than on the bare host. Copy the base URL exactly as shown and let the client append the request route.
Client choice matters here too, because the protocols are not interchangeable. Grok 4.7 belongs to the remaining models that pair with the OpenAI-compatible endpoint, so it is the right pick for Codex, Cursor, Cline, Roo Code, Cherry Studio, OpenCode, SDKs and cURL. Claude models answer only through the official Claude Code or Claude Desktop client, version 2.1.285 or later, and Gemini models use only their native protocol through Gemini CLI. If you copied a Claude Code or Gemini CLI setup while intending to run Grok 4.7, switch to the OpenAI-compatible configuration instead.
Once the model id and the path agree, make one small test call, open the usage list and confirm that the entry is labelled grok-4.7. That single check confirms both the routing and the price being applied, and it gives you a baseline to compare against your worked example.
Reading usage, topping up and getting help when the numbers look off
When a bill feels off, start in the usage list, because SwiftRelay shows tokens and cost per call there. Recalculate one call with the Grok 4.7 rates of $0.5556 per 1M input tokens, $1.66 per 1M output tokens and $0.1375 per 1M cache read tokens. If your arithmetic matches the listed cost, the balance deduction should match as well, since each call deducts only what it used.
If the deduction and the usage entry disagree, note the call id and the time, then send the details through Messages in the dashboard. Support works there and needs a login; there is no support email address to use. Keep the conversation attached to the same account, and include the model name and the exact figures you see, because that is what lets a conversation start in the right place.
Top-ups are simple by design. The choices are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89, and there is no recurring charge to manage afterwards. If you top up and change your mind, unused credit can be refunded within 11 days of the top-up, minus what was used and the payment fee.
There is also a referral route that pays back into the same system: 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 to fund the next batch of calls.
Put the pieces together and the running order is short: sign up, claim the $0.22 gift credit, top up the balance that fits your workload, paste three configuration lines, and check the usage list after your first call. Stopwatch ready, first lap clean, and Grok 4.7 is running on SwiftRelay in minutes.