SwiftRelay

← All sprint notes

How to Set Up Cursor with SwiftRelay API Relay

Agent quick startsEN

What changes when Cursor points at SwiftRelay

Pointing Cursor at SwiftRelay changes the billing model, not the basic shape of your workflow. You still work in Cursor, you still choose a model for the task, and you still send prompts and receive responses. What changes is where the API request goes and how the usage is charged. Instead of tying your workflow to a separate subscription or a direct provider account, SwiftRelay gives you a pay-per-token API relay with an OpenAI-compatible endpoint.

There is no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used. That makes short experiments, focused coding sessions and uneven project demand easier to manage. You are not committing to a fixed recurring package before you know how much the work will consume.

SwiftRelay is built around a simple start: connected in minutes, copy three lines and run. The setup is deliberately small, so you can go from a clean configuration to your first request without assembling a long list of services. Once the endpoint and key are in place, Cursor can use the OpenAI-compatible path with GPT, DeepSeek and the other remaining models available through SwiftRelay.

That distinction matters for model choice. Cursor is an OpenAI-compatible client, so the models you select through this setup should come from the GPT and DeepSeek range listed in the SwiftRelay pricing page. You get a clear pairing, a visible balance and per-call usage information, without changing the client you already know.

Cursor setup with the OpenAI-compatible endpoint

Begin with the SwiftRelay API host and your own key. The OpenAI-compatible base URL is:

https://api.fastapirelay.com/v1

For a Codex-style command-line configuration, the three lines are:

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

codex

For Cursor, the practical idea is the same: point the OpenAI-compatible client at the base URL above and enter your swft_ key as the API key. The key is issued through SwiftRelay, and the endpoint handles the compatible requests coming from Cursor.

Before you begin, it is worth checking that Cursor is configured to use an OpenAI-compatible provider rather than a fixed provider entry that would send requests elsewhere. The base URL and key are the two pieces that tell the client where to connect and how to authenticate. The model selection then determines which GPT or DeepSeek option handles the request.

SwiftRelay also keeps the account side straightforward. You can hold up to 20 live API keys per account, which is useful if you want separate keys for different projects or machines. Each key stays connected to the same balance and usage view, so the operational picture remains easy to follow.

Choosing between GPT and DeepSeek on the pricing page

Good current practice is to choose the model that fits the job instead of defaulting to one name for everything. The SwiftRelay pricing page lists input, output and cache-read prices per 1M tokens, so you can compare the cost profile of each option directly.

  • DeepSeek V4 Flash is listed at input $0.2639, output $1.06 and cache read $0.006944 per 1M tokens.
  • DeepSeek V4 Pro is listed at input $1.17, output $3.51 and cache read $0.0389 per 1M tokens.
  • GPT-6 Astra is listed at input $0.6597, output $3.28 and cache read $0.0653 per 1M tokens.
  • GPT-6.1 Sol is listed at input $0.1736, output $0.8542 and cache read $0.0347 per 1M tokens.

These published figures give you a useful starting point for building habits around Cursor. A model with a lower output price may suit a workflow that generates longer answers, while the input figure matters when you repeatedly send large project files or long context blocks. Cache-read pricing is another line worth watching when your prompts reuse material across calls.

Example: say you process 1M input tokens and 1M output tokens once. At the listed prices, GPT-6.1 Sol would deduct $0.1736 + $0.8542, or $1.0278. DeepSeek V4 Flash would deduct $0.2639 + $1.06, or $1.3239. This example ignores cache reads and shows only how the two listed prices combine.

Example: say you run ten calls that each use 100,000 input tokens and 100,000 output tokens. That is 1M input tokens and 1M output tokens in total, so the same arithmetic applies. Because SwiftRelay deducts only what each call used, the balance moves in visible steps rather than through a fixed recurring charge.

Top-ups, balance control and credit that stays flexible

SwiftRelay sells no plans. You choose a top-up amount, add it to your balance and spend from that balance as calls arrive. The available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. That range lets you test the service with a small amount or hold a larger balance for sustained Cursor work.

New accounts receive $0.22 in sign-up gift credit. It is a small opening balance, but it is also a practical way to complete the first call and confirm that your endpoint, key and model selection are working together before you top up.

The refund policy adds another layer of control. Unused credit can be refunded within 11 days of a top-up, minus what was used and the payment fee. In plain terms, you are not trapped by an unused balance if you decide early that the setup is not right for your workflow.

Referrals work in your favour too. You receive 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 SwiftRelay balance. Moving them into the balance is a clean option when you would rather use the credit on your next Cursor session.

For good practice, keep the top-up amount aligned with your real usage pattern. Start small, watch the usage list, then adjust. SwiftRelay shows the tokens and cost per call, which turns model selection into a practical decision rather than a guess.

Keeping Cursor sessions clear and support close at hand

A tidy setup is a fast setup. Use one swft_ key for a distinct project, keep the base URL consistent, and check the model name before starting a long session. If you maintain several projects, the limit of up to 20 live API keys per account gives you room to separate them without creating a complicated account structure.

Usage lists tokens and cost per call, so you can review what happened after a session. Look at the calls that produced the largest deductions, then compare them with the pricing-page figures for the GPT or DeepSeek model you selected. If one model is handling routine edits and another handles heavier reasoning, that pattern is visible in the numbers.

Support is available through Messages in the SwiftRelay dashboard. A login is required, and there is no support email to hunt for. Keeping your questions, key details and usage observations in one place makes it easier to describe the problem clearly when you need help.

The wider good practice is simple: connect the compatible endpoint, choose from the listed GPT and DeepSeek models, top up an amount that suits your pace, and review the per-call usage before scaling up. SwiftRelay removes the need for a monthly commitment while keeping the controls close to the work.

Copy the endpoint, grab your key, top up your balance and put Cursor to work on your next task with SwiftRelay.

Keep reading

Back for another lap?Log in