SwiftRelay

← All sprint notes

DeepSeek V4 Flash Setup and Troubleshooting with SwiftRelay

Model splitsEN

Your first DeepSeek V4 Flash call through SwiftRelay

Getting a model running should not feel like a relay race. With SwiftRelay, you connect in minutes: copy three lines and run. There is no monthly fee and nothing to subscribe to. Top up a balance, and each call deducts only what it used. That makes your first DeepSeek V4 Flash run easy to start and simple to understand.

SwiftRelay is a pay-per-token API relay. The API host is https://api.fastapirelay.com. Your account can hold up to 20 live API keys, and the usage view lists tokens and cost per call, so you can see what each request actually used.

For a first run, sign up, top up a balance and create your swft_ key. New accounts receive $0.22 in sign-up gift credit. The available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. Pick the amount that suits your testing rhythm, copy the configuration for your client and send one small request.

One quick example: if a single call uses 1,000 input tokens and 1,000 output tokens for DeepSeek V4 Flash, the example cost is $0.2639 plus $1.06, or $1.3239. This is an example based on the current SwiftRelay pricing page prices per 1M tokens; it is not a fixed charge per request.

“401 Unauthorized” or “Invalid API key” after the first request

This is usually a configuration mismatch, not a dead end. The most common cause is copying the wrong value into the client, or using a key that has been replaced. Check that the API key field contains your swft_ key, with no extra spaces, quotes or line breaks around it.

Next, check the base URL. For OpenAI-compatible clients, including Codex, Cursor, Cline, Roo Code, Cherry Studio, OpenCode, SDKs and cURL, the base URL is https://api.fastapirelay.com/v1 and the API key is your swft_ key. These clients pair with GPT, DeepSeek and the other remaining models.

Here is the exact Codex configuration:

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

codex

After changing a value, restart the client and try again. If you have several keys, confirm that the key you selected is still live. SwiftRelay allows up to 20 live API keys per account, which is handy for separating projects, but every key must point to the same correct host.

If the error persists, open Messages in the dashboard and describe what you copied. Support is available there after login; there is no support email. A screenshot of the client settings and the exact error message can help the team narrow the issue faster.

“404 Not Found” when the model name looks right

A 404 response often means the request reached the wrong path or the model identifier does not match the available list. For DeepSeek V4 Flash, use the identifier deepseek-v4-flash. Check for a stray space, a different capitalisation or a client that adds its own suffix.

Also confirm that you are sending the request through an OpenAI-compatible endpoint. The path must end in /v1, and the model field must contain deepseek-v4-flash exactly. If your tool builds requests automatically, inspect its model settings and replace any placeholder such as “default” or “gpt-4” with the DeepSeek identifier.

Another cause is an old configuration file left over from another service. Search your environment files and shell profile for an old base URL, then restart your terminal so the updated value is loaded. When you export a variable in one shell, it does not automatically change another already-running terminal.

For reference, DeepSeek V4 Flash is listed on the SwiftRelay pricing page at $0.2639 per 1M input tokens, $1.06 per 1M output tokens and $0.006944 per 1M cache-read tokens. Seeing the model and its price on the pricing page is a useful cross-check before you spend time debugging a request.

“Insufficient balance” before any useful response

SwiftRelay works on a topped-up balance, so an empty or too-small balance can stop a request before the model runs. Top up using one of the available amounts, then check that the dashboard balance reflects the payment. If it does not, send a message through Messages in the dashboard and include the time and amount of the top-up.

The $0.22 sign-up gift credit is a helpful starting cushion, but it is credit, not a subscription. Once it is used, your calls continue to deduct from the balance you top up. The refund rule gives you a clear option: unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee.

A practical first-run habit is to send a short prompt, inspect the tokens and cost shown for that call, and then decide whether the balance needs another top-up. Because SwiftRelay charges per token, a small test call is a low-risk way to confirm the setup before a longer session.

Example only: 100,000 input tokens and 100,000 output tokens for DeepSeek V4 Flash would cost $26.39 plus $106, or $132.39. That example shows why checking the usage list matters; it is not a package price or a promised daily total.

“Rate limit” or a request that seems to hang

A rate-limit message means the client is asking for more work than the current allowance permits. Reduce the number of simultaneous requests, wait a moment and retry. If your client retries automatically, make sure it is not sending the same request several times at once, since each accepted call consumes balance.

For a request that appears to hang, check the client’s stream setting and its timeout value. Then confirm that the base URL and model identifier are still correct. A clean restart of the client often removes a stale connection that was created before you changed the configuration.

Long prompts also produce longer waits because more tokens must be processed. Start with a brief test prompt, compare the token count in the usage list with the prompt you sent, and expand the task once the first run completes normally. SwiftRelay does not charge a monthly fee, so you can experiment in small steps without committing to a fixed plan.

You can also use the cache-read figure as a planning signal. DeepSeek V4 Flash shows $0.006944 per 1M cache-read tokens on the current pricing page. It is one of the reasons a model that fits your workflow can remain economical across repeated work.

“Connection refused” and the final first-run checklist

A refused connection usually points to a typo in the host or to a client that has not been restarted. The API host is https://api.fastapirelay.com. For an OpenAI-compatible client, use https://api.fastapirelay.com/v1. Check that the scheme is present, that there is no trailing text after the path and that your network or proxy settings have not blocked the request.

Before the second attempt, run through this checklist:

  • Your balance contains credit, including the $0.22 sign-up gift credit or a top-up you selected.
  • The API key is a live swft_ key with no surrounding spaces or quotes.
  • The base URL is https://api.fastapirelay.com/v1 for an OpenAI-compatible client.
  • The model identifier is deepseek-v4-flash.
  • The client has been restarted after the configuration changed.
  • The usage view shows tokens and cost per call after a successful request.

SwiftRelay also keeps the account flexible. Referral rewards are 14% of each top-up by someone you invited, plus 3% from the people they invite. Rewards can be withdrawn once they reach the $4.86 minimum, or moved into your balance for future calls.

Your first DeepSeek V4 Flash run is a short lap: copy the lines, send one small request and read the usage list. If something goes wrong, the error message points to the area to check, and Messages in the dashboard is where support begins. Ready, set, sign up and start your first run with SwiftRelay today.

Keep reading

Back for another lap?Log in