Start with the Cursor connection basics
If SwiftRelay refuses a key in Cursor, the fastest route is to check the connection in the same order every time: the base URL, the key, the model, and the account balance. That sounds simple because it is. SwiftRelay is a pay-per-token API relay, and the setup is designed to be connected in minutes: copy three lines and run. There is no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used.
Before changing anything in Cursor, confirm that the app is pointed at the SwiftRelay API host. The host is https://api.fastapirelay.com. The OpenAI-compatible endpoint for clients such as Cursor is https://api.fastapirelay.com/v1. A missing /v1 suffix, an extra path, or a copied URL that points somewhere else can make a valid key look unusable.
Next, check the key itself. SwiftRelay keys use the swft_ prefix. In Cursor, the value you enter as the API key should be the complete SwiftRelay key, without quotation marks, spaces, or a trailing comma. The key and the base URL belong to the same service: a SwiftRelay key should be used with the SwiftRelay endpoint, not with an unrelated address left over from another configuration.
Finally, make sure the key is live and the account can pay for the request. SwiftRelay allows up to 20 live API keys per account, so the limit should not be reached in a normal setup. More importantly, a top-up creates a balance from which usage is deducted. If the balance is empty, a refused request is a billing state rather than a broken key. The usage list shows tokens and cost per call, which gives you a clear way to confirm whether requests are reaching SwiftRelay and what they consume.
Check the exact Cursor configuration
Cursor is one of the clients that uses the OpenAI-compatible endpoint. The configuration pattern is short, which is useful when you are checking a refused key. Confirm that the base URL is set to the versioned SwiftRelay address and that the API key field contains your swft_ key.
For a quick reference, the SwiftRelay Codex lines are:
01 export OPENAI_BASE_URL=https://api.fastapirelay.com/v1 02 export OPENAI_API_KEY=<your swft_ key>
codex
Those lines are shown as a configuration example, not as a Cursor-specific command. In Cursor, use the same base URL and key in the app’s OpenAI-compatible connection settings. Do not paste the placeholder angle brackets around the key; replace them with the key issued by SwiftRelay.
A useful hand-on check is to compare the values character by character. Start with the base URL, copy it directly from your SwiftRelay setup, and paste it into Cursor. Do the same with the key. Check that the endpoint ends in /v1, and that the key begins with swft_. Then save the settings and try one small request. This is less disruptive than repeatedly editing several fields and gives you a clean first run.
Keep the configuration minimal. If Cursor has fields for an organisation, a project, or a separate provider, make sure the selected provider is the one using the OpenAI-compatible base URL. A key can be entered correctly and still be sent to the wrong service when the active provider points at another endpoint.
Confirm the model and client pairing
A refused key is not always a key problem. Cursor uses the OpenAI-compatible endpoint, so the model selected in the app must be one that can be used through that route. SwiftRelay lists DeepSeek V4 Flash, DeepSeek V4 Pro, GPT-6 Astra, and GPT-6.1 Sol among its current models. Select one of those names in Cursor, or use the corresponding model identifier if Cursor lets you type it.
The identifiers are worth checking because a near-match can be easy to overlook:
- DeepSeek V4 Flash: deepseek-v4-flash
- DeepSeek V4 Pro: deepseek-v4-pro
- GPT-6 Astra: gpt-6-astra
- GPT-6.1 Sol: gpt-6.1-sol
Check for extra spaces, a missing hyphen, or a copied identifier from a different model list. If you change the model, make one change at a time and run a small test. That makes it easier to tell whether the original refusal came from the model selection or from the connection details.
The same principle applies to the key: it should be paired with the SwiftRelay endpoint and a model that the OpenAI-compatible route supports. You do not need to replace the key every time you test a model. First verify the endpoint and key, then test the model identifier. This short sequence is a practical way to narrow down a refusal without guessing.
Read the balance and the per-call usage
After the configuration looks right, check the SwiftRelay dashboard. The usage list shows tokens and cost per call, so it gives you two useful signals: whether the request was accepted, and how much of your balance it used. If the list stays empty while Cursor reports a refusal, focus on the endpoint, key, and model pairing. If a call appears, the request reached SwiftRelay and the refusal may be connected to the remaining balance or the request itself.
SwiftRelay billing is straightforward: top up a balance, and each call deducts what it used. There is no monthly fee and nothing to subscribe to, so you can keep the account focused on actual usage. The available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44, and $138.89. Choose the amount that suits your testing rhythm, then check the balance before you continue.
For a concrete pricing example, say you spend a day making one call with 1M input tokens and 1M output tokens. With GPT-6.1 Sol, the example total is $0.1736 + $0.8542 = $1.0278. The same example with DeepSeek V4 Flash totals $0.2639 + $1.06 = $1.3239. These are examples, not fixed daily charges. Actual deductions depend on the tokens each call uses.
Cache reads are shown separately on the SwiftRelay pricing page. For example, GPT-6.1 Sol shows input at $0.1736, output at $0.8542, and cache read at $0.0347 per 1M tokens. Use the usage list as the practical check rather than estimating from a subscription you may already have elsewhere.
Know the credit, referral, and refund details
SwiftRelay includes a $0.22 sign-up gift credit. That is enough to make an initial test simple, but it is also worth recording in your notes so you can distinguish gift credit from a top-up when reviewing usage.
If you invite other people, the referral reward is 14% of each top-up by someone you invited, and 3% from the people they invite. Rewards can be withdrawn when the minimum is $4.86, or they can be moved into your balance. The balance option can be useful when you want the reward available for the next call without another step.
There is also a clear refund route for unused credit. Within 11 days of a top-up, you can request a refund of the unused credit, minus what was used and the payment fee. Keep the top-up date and the usage record together if you need to review the calculation. This structure makes it easier to decide when to top up and when to leave your balance in place.
When the quick checks are finished
If the base URL, key prefix, model identifier, and balance all look correct, use the support route provided by SwiftRelay: Messages in the dashboard. Support is available there after you log in. There is no support email to search for, so Messages is the place to include the relevant details: the model you selected, the endpoint you configured, the time of the refused call, and what the usage list shows.
Before sending a message, run one final short check in Cursor. Make a small request with the selected SwiftRelay model, then look at the usage list. If the request appears, you can see the tokens and cost per call. If it does not appear, include the exact configuration values in your dashboard message. This gives the next person reviewing your request a clean starting point.
SwiftRelay keeps the moving parts small: a direct API host, a swft_ key, a compatible model, a topped-up balance, and usage you can inspect. Copy the settings, check the four items in order, and you should be ready for a clean first run. Sign up for SwiftRelay, top up your balance, and get your first Cursor call moving.