How to use your own OpenAI or Claude API key for cold emails
Connect your own OpenAI, Claude, Gemini, OpenRouter or OpenAI-compatible API key, pick a model, set a token budget and add backup connections.
Video transcript
Welcome to Swift Outbox. In this video: Swift Pilot, or your own AI key. There are two ways to power the AI. Swift Pilot is built in, with nothing to set up.
Or connect your own AI key, and pay your provider directly. Swift Pilot needs no key and no model, and is paid from your credit. Paid plans add credit every month: Starter five dollars, Growth ten, Agency thirty. On the Free plan, buy credit or use your own key.
Your own key lets you choose the model, and your provider bills you, not your credit. Connect OpenAI, Anthropic Claude, Google Gemini, OpenRouter, or any OpenAI-compatible service. Open Settings, then AI connections, and click Add AI connection. Choose the provider, give it a name, and paste only the key.
A sensible model is already filled in. Click Connect, and we send a tiny test request. When it works, you see Connected, ready to write emails. If not, one plain sentence tells you what went wrong.
You can use both. Your own connections are tried first, in your order. If they all fail or reach their budget, Swift Pilot writes, but only while you have credit. Swift Pilot is always the last row.
It shows In use, Backup while your own key is on, or Out of credit. So which one? Want zero setup? Use Swift Pilot.
Want to pick the model, or already pay a provider? Connect your own key. Swift Pilot for zero setup, your own key for control, and both for a safety net. Next: cold emails that get replies.
Subscribe for more Swift Outbox tutorials.
On this page
To use your own OpenAI API key for cold emails, create a key in your OpenAI account (platform.openai.com), make sure billing is set up there, and paste the key into the AI settings of your cold email tool. The tool then calls OpenAI with your key, so you pay OpenAI directly at its token prices and choose the model yourself. The same works with Anthropic Claude, Google Gemini and other providers.
In Swift Outbox, calls on your own key are billed by your provider, not from your Swift Pilot credit. Your own connections are always tried first. Swift Pilot stays behind them as the last fallback: if every own connection fails or reaches its budget and you have credit, Swift Pilot writes the email and is charged to your credit. Without credit, nothing is charged and the email waits.
Supported providers
| Provider | What you need |
|---|---|
| OpenAI | A key from your OpenAI account (platform.openai.com). |
| Anthropic Claude | A key from your Anthropic account (console.anthropic.com). |
| Google Gemini | A key from Google AI Studio (aistudio.google.com). |
| OpenRouter | A key from your OpenRouter account (openrouter.ai). |
| Custom (OpenAI-compatible) | The server address and key from your provider, for any service that speaks the OpenAI format. |
How to connect your own API key in Swift Outbox
- Open Settings, then AI connections.
- Click Add AI connection. A panel opens on the right.
- Choose the Provider.
- Give it a Name only you see, for example OpenAI main key.
- Paste the Key: only the key, nothing around it. Where do I find my key? opens your provider’s key page.
- For Custom only: enter the Server address, for example
https://api.together.xyz/v1, and leave Supports tool calling on unless connecting fails. - Check the AI model. A sensible default is filled in for each provider (for example
gpt-4o-minifor OpenAI). You can type any model name your provider offers. - Optional: set a Monthly token budget (see below).
- Click Connect. We save the connection and send a tiny test request.

When the test works you see Connected to OpenAI using gpt-4o-mini. Ready to write emails. and the panel closes. If it fails, the panel stays open with one plain sentence about what went wrong, for example that the provider did not accept the key.
Save without testing keeps the connection without the test request. Use Test on its row later.
Note: Your plan sets how many AI connections you can add: Free 1, Starter 2, Growth 5, Agency Unlimited.
Pick a model from your provider’s list
After the first save, open Edit on the connection. Under AI model, start typing to pick from your provider’s models; Refresh list loads the latest list. Recommended models are listed first.
The connection row
Each connection shows its number in the order, its name and a health label:
| Label | Meaning |
|---|---|
| Working | The last requests worked. |
| Resting | The provider said “too many requests”. It is used again after a short rest; the next connection writes meanwhile. |
| Needs attention | Something is not quite right; open Edit for details. |
| Not working | Requests fail. The sentence under it says why, for example a wrong key. |
| Turned off | You switched it off. |
| Turned off after problems | It kept failing and was switched off for you. Fix it, then turn it on again. |
| Not checked yet | No request has been made yet. Click Test. |
Below it: This month: 1,240 requests · 2.1M tokens of 5M budget · last used 4 mins ago.
Row buttons: the on/off switch, Test, Edit, the bin (delete, after a confirmation) and the up and down arrows.
Order and automatic fallback
The first working connection is used. When it fails or is busy, the next one takes over, so emails keep being written even if one provider has a bad moment.
- Drag a connection by its handle to change the order, or use the up and down arrows. The top one is tried first.
- Turn a connection off to skip it without deleting it.
Tip: Add a second provider as a backup, for example OpenAI first and Claude second. If one provider has an outage, your campaigns keep running.
Monthly token budget
The Monthly token budget caps how many tokens this key may use per calendar month. Leave it empty for no budget.
- When the budget is used up, the next connection writes.
- About 4 characters make one token. Roughly, 2,000,000 tokens is about 2,500 emails.
- A thin bar on the row shows how much of the budget is used.
Change or remove the key
Open Edit. The saved key shows only its last four characters. Leave the field empty to keep it, paste a new one to replace it, or click Remove key. Delete a connection with the bin icon; if it was your last one turned on, Swift Pilot takes over (when you have credit).
Troubleshooting
- The provider did not accept the key. You may have pasted extra text with it (quotes, “Bearer”, spaces). Paste only the key.
- The key is correct but the test fails. Most providers need a payment method on the account before a key works. Set up billing at the provider.
- The model is not available. Your account may not have access to that model. Pick one from the list after the first save.
- The row says Resting. The provider is rate limiting you. The next connection writes meanwhile; add a second provider if it happens often.
- “Your AI provider is returning errors, so emails cannot be written.” The key is invalid, out of credit at the provider, or rate limited. Click Test on the row and read the sentence under the label.
Next step
Set house rules for every email: How to set AI rules for every cold email.
Common questions
Is it cheaper to use my own OpenAI API key?
It can be. Calls on your own key are billed by your provider at its token prices and use no Swift Pilot credit. The cost depends on the model you pick: a small model costs far less per email than a large one.
Which AI providers can I connect?
OpenAI, Anthropic Claude, Google Gemini, OpenRouter, and any server that speaks the OpenAI format (choose Custom and enter its server address).
How many API keys can I connect?
It depends on your plan: Free 1, Starter 2, Growth 5, Agency Unlimited.
Can I use my own key on the Free plan?
Yes. The Free plan has no monthly Swift Pilot credit, so your own key is the usual way to write emails on Free.
Is my API key stored safely?
The key is stored encrypted and is never shown again in full. Edit shows only its last four characters.
What happens if my key fails or my provider is down?
The next connection in your order writes the email. If every own connection fails or reaches its budget and you have Swift Pilot credit, Swift Pilot writes it. Without credit, nothing is charged and the email waits.
Still stuck? Open a ticket from Swift Support in the app, or contact us.