SwiftRelay

← All sprint notes

Separating Cursor Costs with SwiftRelay API Proxy Keys

Cost per lapEN

One Cursor setup, several side projects, and a clearer cost picture

Your side projects do not all have the same appetite for tokens. One might be a small writing tool that sends a few short prompts. Another might be a code assistant that scans more files and sends longer requests. A third might be an experiment you will close before lunch. When every project draws from one shared balance, it becomes harder to tell which idea is using what.

SwiftRelay gives you a practical way to separate that work: create a different live API key for each side project, then use the matching key in Cursor. Because each key can be tracked on its own, your usage lists let you review tokens and cost per call instead of looking at one combined trail.

There is no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used. New accounts also receive $0.22 in sign-up gift credit, which is a small starter balance while you set up your first project.

Think of this as a pit-lane routine rather than a workshop project. Label the keys, assign one to each experiment, and you will know which lane is spending. The rest of this article follows an example day with that workflow.

Preparing separate SwiftRelay keys before opening Cursor

Before the first request goes out, decide which side projects deserve their own keys. A sensible example is to create one key for a lightweight assistant, another for a larger code-review experiment, and a third for a short-lived weekend build. SwiftRelay supports up to 20 live API keys per account, so the setup can grow with your projects without turning into a pile of unrelated accounts.

Give each key a name that explains its purpose rather than its model. For example, use names such as writing-tool, code-review, and weekend-build. Clear labels make the usage list easier to scan, especially when several projects make calls in the same session.

For Cursor and other OpenAI-compatible clients, the base URL is https://api.fastapirelay.com/v1, and the API key is a swft_ key. Keep the exact configuration line in each project’s own notes. If Cursor is configured through the environment, the example configuration is:

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

Replace the placeholder with the key assigned to that project. Do not paste the same key into every project just because it is convenient. The value of separating keys comes from keeping the requests and their costs visibly distinct.

You can also choose a different model per project based on the work it needs. The examples in this article use the models and prices currently shown on the SwiftRelay pricing page. Always check that page for the current figures before you plan a larger run.

An example morning: a small assistant on its own key

Imagine your first side project is a small assistant that rewrites product descriptions. You assign it the writing-tool key and connect that key to Cursor through the OpenAI-compatible endpoint. The project uses GPT-6.1 Sol, with a current input price of $0.1736 per 1M tokens and an output price of $0.8542 per 1M tokens.

As an example, suppose this project uses 100,000 input tokens and 20,000 output tokens during the day. The input portion is 0.1 of $0.1736, or $0.01736. The output portion is 0.02 of $0.8542, or $0.017084. The example cost for that project is therefore $0.034444.

That number belongs to the writing tool only, because the key belongs only to the writing tool. You can open the usage list, see the tokens and cost per call, and confirm that the day’s spending came from this project rather than a larger experiment running in another window.

Keep the project’s model choice recorded beside its key name. If the assistant later needs a different balance of input and output performance, you can review the available models and switch deliberately. Separate keys do not force separate products; they simply give each project its own clean lane.

An example afternoon: a code review on a second key

Later, you open a second side project: a code-review helper that reads larger chunks of a repository and explains possible improvements. You assign the code-review key and point Cursor at the same SwiftRelay host, but with this project’s own swft_ key.

This project uses DeepSeek V4 Flash, priced at $0.2639 per 1M input tokens, $1.06 per 1M output tokens, and $0.006944 per 1M cache-read tokens. The lower cache-read figure is especially relevant to a workflow that repeatedly reads similar project material, although your actual result depends on how the client and model use caching.

As a second example, say the code-review project records 200,000 input tokens, 50,000 output tokens, and 100,000 cache-read tokens. The input cost is 0.2 of $0.2639, or $0.05278. The output cost is 0.05 of $1.06, or $0.053. The cache-read cost is 0.1 of $0.006944, or $0.0006944. The example total is $0.1064744.

Add the two example projects together and the day’s tracked spending is $0.1409184: $0.034444 for the writing assistant and $0.1064744 for the code-review project. These are examples, not a forecast. Your own totals will depend on the requests you send.

Still, the workflow is useful. A heavier project can stand out without hiding behind the smaller one. If the code-review experiment starts consuming more than expected, you can review its calls, change its model, or pause it without untangling a shared balance.

Choosing models without mixing up the workflow

Separate keys are only half the routine. The other half is choosing the right listed model for each job and keeping the configuration consistent. Cursor uses the OpenAI-compatible endpoint, so pair it with the models available through that route, such as GPT, DeepSeek, and the other remaining models.

For quick, frequent experiments, DeepSeek V4 Flash has a current input price of $0.2639 and output price of $1.06 per 1M tokens. DeepSeek V4 Pro is listed at $1.17 for input and $3.51 for output per 1M tokens, with cache reads at $0.0389. On the GPT side, GPT-6 Astra is listed at $0.6597 for input, $3.28 for output, and $0.0653 for cache reads per 1M tokens. GPT-6.1 Sol is listed at $0.1736 for input, $0.8542 for output, and $0.0347 for cache reads.

Use those figures as a starting point for comparison, not as a promise about a particular result. A project that produces long responses will have a different cost shape from one that mainly reads context. A project that benefits from cache reads will use a different part of the pricing table. Checking the pricing page before a run keeps the decision grounded.

You do not need a new subscription for every experiment. SwiftRelay charges per token against your topped-up balance. That makes it straightforward to keep a small project small, try another model for a defined period, and stop when the experiment is over.

Reviewing the day, topping up, and keeping control

At the end of the example day, open the SwiftRelay dashboard and review the usage lists. Each list shows tokens and cost per call, so you can compare projects rather than guessing. The writing-tool key shows its own calls; the code-review key shows another set. That separation is the payoff of taking a few minutes to prepare keys before opening Cursor.

If you need more balance, the available top-up amounts are $1.39, $6.94, $13.89, $27.78, $69.44, and $138.89. Choose the amount that suits the run you are planning. Remember that each call deducts only what it used from the balance.

There is also a refund option for unused credit within 11 days of a top-up, minus what was used and the payment fee. If you invited someone, you can receive 14% of each top-up by someone you invited, plus 3% from the people they invite. Those rewards can be withdrawn once they reach the $4.86 minimum, or moved into your balance.

If something is unclear, support is available through Messages in the dashboard after you log in. There is no support email to hunt for. Keep your questions, project names, and key labels together, and support can work from the same place you use to review usage.

One final clean-up completes the routine: retire keys for experiments that are finished. Your account can hold up to 20 live API keys, but a tidy list is easier to manage than a crowded one. Keep active projects labelled, check their usage, and let the next idea start with a fresh key.

Stopwatch ready, project lane clear: sign up for SwiftRelay, create a separate key for your next side project, and put Cursor to work with simple pay-as-you-go billing.

Keep reading

Back for another lap?Log in