SwiftRelay

← All sprint notes

Fix a Refused GPT-6.1 Sol Key with SwiftRelay API Proxy

First lapsEN

Check the SwiftRelay key format before you run

A refused key is often a setup detail rather than a dead end. Start with the key itself: confirm that you copied the complete SwiftRelay key, that the key begins with the expected swft_ prefix, and that no quotation marks, spaces or line breaks came along with it. A key can look correct on screen and still fail when a client reads it as part of a longer string.

Next, make sure you are using the key issued by SwiftRelay rather than a placeholder, an old key or text copied from the wrong dashboard field. If your account has several keys, compare the configured value with the key you intend to use. You can keep up to 20 live API keys per account, so having more than one key is normal; it is simply important to know which one the current shell or client is sending.

When you paste the key into a configuration line, replace the angle-bracket placeholder with the actual value. For example, an OpenAI-compatible setup uses a base URL of https://api.fastapirelay.com/v1 with a swft_ key as the API key. If the placeholder text is still there, the request will not carry a usable credential.

One quick habit saves time: check the configuration in the same terminal or application session that will make the request. An environment variable set in one window does not automatically appear in another. If a key was refused once, refresh the session, paste the key again and try the smallest possible request before changing anything else.

Match the client to the model family

SwiftRelay is a pay-per-token API relay, so the client and the model must speak the same protocol. This is the most important pairing check when a key is refused. A valid SwiftRelay key does not make every client compatible with every model.

Claude models answer only through the official Claude Code or Claude Desktop client, and Claude Desktop must be version 2.1.285 or later. Codex, Cursor, Cline, Roo Code, Cherry Studio, OpenCode, SDKs and cURL use the OpenAI-compatible endpoint, and they pair only with GPT, DeepSeek and the other remaining models, never with Claude or Gemini. If you are using Claude Code or Claude Desktop, the relevant configuration is:

01  export ANTHROPIC_BASE_URL=https://api.fastapirelay.com
02  export ANTHROPIC_AUTH_TOKEN=<your swft_ key>

claude

Gemini models use their native protocol through Gemini CLI and are not OpenAI-compatible. For Gemini CLI, check these lines:

01  export GOOGLE_GEMINI_BASE_URL=https://api.fastapirelay.com
02  export GEMINI_API_KEY=<your swft_ key>

gemini

For Codex, the endpoint and variable names are different again:

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

codex

That is the whole point of the pre-flight check: identify the client first, then select a model that belongs in that client’s supported family. Do not switch a Claude model into an OpenAI-compatible client merely because the key is valid.

Confirm the endpoint and the request path

After the key and pairing are right, check the address. The SwiftRelay API host is https://api.fastapirelay.com. OpenAI-compatible clients use the /v1 path, giving https://api.fastapirelay.com/v1 as the base URL. Claude Code and Gemini CLI use the host without that OpenAI-compatible path in their listed configuration lines.

A common refused-key symptom is a base URL that points somewhere else, ends with a slash that changes the request path, or omits the required path segment. Copy the base URL exactly as shown for the client you are running. Also check that the API key field receives the SwiftRelay key itself, not a string such as “Bearer” plus the key unless the client specifically asks for that format.

Keep the first test narrow. Run one short request with one model and inspect the result before testing a longer prompt or a workflow with many calls. SwiftRelay usage lists tokens and cost per call, so a small test gives you a clean place to confirm that the request reached the relay and that usage is being recorded.

Do not confuse a model-name error with a key error. If the client is correctly configured but the selected model does not belong to that protocol, the fix is to choose a compatible model, not to generate another key.

Check the balance and the billing path

SwiftRelay has no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used. That makes the balance a straightforward item to check when a request will not start, especially if the key was created long before the first payment.

Top-up options are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. New accounts receive $0.22 in sign-up gift credit. A small balance can be enough to begin, but it is worth confirming that the top-up completed and that the available balance is visible in the account before troubleshooting further.

For a worked example, suppose you choose the $1.39 top-up and your first call uses 1,000 input tokens with 1,000 output tokens of GPT-6.1 Sol. At the listed prices of $0.1736 per 1M input tokens and $0.8542 per 1M output tokens, the example input cost is $0.0001736 and the example output cost is $0.0008542, for an example total of $0.0010278. The point is not the arithmetic; it is that SwiftRelay deducts according to actual token usage rather than a fixed subscription charge.

Other listed examples help you compare the same kind of usage. For 1,000 input and 1,000 output tokens of DeepSeek V4 Flash, the example cost is $0.0002639 plus $0.00106, or $0.0013239. For GPT-5.6 Sol, it is $0.0003056 plus $0.00172, or $0.0020256. These are examples based on the current SwiftRelay pricing page, not quotes for every request.

Referral rewards can also add value: 14% of each top-up by someone you invited, and 3% from the people they invite. Rewards can be withdrawn with a minimum of $4.86 or moved into the balance. Unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee.

Verify the client version, then use dashboard Messages

If the key format, pairing, endpoint and balance all look right, check the client itself. For Claude Desktop, the required version is 2.1.285 or later. An older client can refuse a request even when the SwiftRelay key and base URL are correct. For command-line clients, confirm that the command on the final configuration line is the one your environment actually runs.

Restart the client after changing environment variables, then try the request again. This simple reset clears many stale settings. If the refusal continues, capture the exact client, model, base URL and error message before asking for help. That short summary makes the conversation much easier to diagnose.

SwiftRelay support is available through Messages in the dashboard, and login is required. There is no support email. Send the details there, including the client name and version, the model you selected, whether the key begins with swft_, and the base URL in use. Do not post the full key in a public place.

You can also use the dashboard’s usage view to confirm the tokens and cost per call. If a test call appears there, the relay side is active and the remaining work is likely in the client configuration. If it does not appear, the request may not have reached SwiftRelay at all, so revisit the endpoint and environment variables.

Run one clean first call and sign up

Work through the checklist in order: key, client-model pairing, base URL, balance, client version, then a short test request. SwiftRelay is designed to get you connected in minutes: copy three lines and run. With no monthly fee, per-token billing and a $0.22 sign-up gift credit, your first lap is ready when you are—sign up for SwiftRelay and start your clean first run today.

Keep reading

Back for another lap?Log in