Advanced
Bring your own AI key
FairThen’s AI features can run through an AI account of your own. The request goes straight from your phone to the provider you picked, so unless the app says otherwise where you use it, nothing about that request passes through our servers.
Two features use AI today. Receipt scan reads a photo of a bill into an itemized split. Assign with AI, on the split bill screen, suggests who had which item from what you tell it. Anything we add later will use the same key, and the key screen says what gets sent, and to whom, before you agree.
Checked 22 August 2026. The limits and data policies below are other companies’ and they change them whenever they like, so treat everything here as a starting point and follow the links to confirm.
Before you start
- It’s your account and your bill. You sign up with the provider directly. The two named providers below both have a free tier that doesn’t ask for a credit card up front, but that’s their decision to change, not ours, and anything you spend there is between the two of you.
- We’re not in the middle of the AI part. The request goes device to provider, so the reading happens there. The flip side is that we can’t see what went wrong when something does. Outages, rate limits and billing are all on their side.
- You agree when you save a key. The key screen says what the AI tools send (like a receipt photo, or a bill’s items and the names on it) and to which provider, and nothing is saved until you tap Agree and save. To stop, remove the key or switch off Use my own AI key in Settings → Advanced.
- It changes the AI step, not the app. Your key swaps out who does the reading. The items and amounts you keep are saved like any other bill, under the usual Privacy Policy. The receipt photo and your Assign with AI chats aren’t saved or sent to our server.
- Look at what you’re sending. A receipt carries more than groceries sometimes, so crop or skip anything you’d rather not send. Along with the photo, Receipt scan sends the bill’s currency and how many people are on it. Assign with AI sends the bill’s currency, its item names, prices and quantities, any charges or discounts, the current split, the names of the people on that bill, and what you type or pick in the chat, so leave out anything you’d rather the provider didn’t read. Neither sends anything else from your groups. What each provider then does with what it receives differs, which is the main thing the comparison below is for.
- Your key stays on the phone. It’s held in the iOS Keychain or the Android Keystore, only ever sent to the provider it belongs to, only over an encrypted connection, and erased when you log out. It never touches our servers. Treat it like a password: most providers let you cap spending, and you can revoke a key from their dashboard at any time.
- Keep the screen open while it runs. There’s no job on our server to pick it up if you leave, so a request that outlives the screen is lost.
- Some scans get a second read. If a scan doesn’t add up, or the photo is hard to read, a stronger model reads it again, which uses a second request on your key. You can also tap Read again after any scan to have the stronger model read it, which uses another request on your key.
- Some Assign with AI replies get asked for again. If a reply doesn’t add up, the app quietly asks again, which uses another request on your key.
- Check what comes back. AI output is good rather than perfect. That means glancing over the items and the total before you split, and over a suggested split before you apply it.
- Phones only. Your key lives in the phone’s secure storage, which a browser has no equivalent of, and some of these providers refuse browser requests outright. So this needs the iOS or Android app.
Why these ones
A provider had to clear three bars: a free tier you can use without a credit card, the same OpenAI-compatible API FairThen already speaks, and a model that can read an image, which is what Receipt scan needs. Two providers cleared it. The third option, Custom, is the escape hatch for everything else.
Google AI Studio
Easiest to set up- Free tier
- Free, no card. Your limits are shown in AI Studio rather than published.
- What they do with it
- Free tier may be used to improve Google’s products, and reviewed by people.
- You’ll need
- A Google account.
Cloudflare Workers AI
Flat daily allowance- Free tier
- 10,000 Neurons a day on the free Workers plan, reset at midnight UTC.
- What they do with it
- Says it doesn’t use what you send to train models or improve services.
- You’ll need
- A Cloudflare account, an API token, and your Account ID.
Custom
Anything else- Free tier
- Whatever your endpoint costs, possibly nothing if you run it yourself.
- What they do with it
- Whatever their policy says. On your own machine, nothing leaves your network.
- You’ll need
- An https OpenAI-compatible endpoint, the model id, and a key.
Google AI Studio
The shortest route if you already have a Google account, because Google sets up the project and the first key for you.
- Open aistudio.google.com/apikey and sign in.
- Accept the terms if you’re asked. A Google Cloud project and a first API key are created for you, so there’s nothing to configure on that side.
- Select Create API key (the section is called Get API key), then copy the key.
- In FairThen, go to Settings → Advanced, tap Google AI Studio, paste the key and tap Agree and save. When it asks to use Google AI Studio for AI features, tap Turn on.
Worth knowing
- Make a fresh key rather than reusing an old one. Google has been retiring its older Standard keys through 2026, unrestricted ones first, and issues a different kind now. FairThen doesn’t care what a key looks like, but an old one may already be refused by Google.
- The free tier is the one that learns from you. Google may use what you send on it to improve its products, and reviewers can see it. It doesn’t apply if you’re in the UK, the EEA or Switzerland, and moving to a paid tier stops it. Their API terms spell out both.
-
It has to be a key you can copy out of AI Studio. A service-account
JSON file or a
gcloudcredential isn’t something you can paste into the key field.
Official pages
Cloudflare Workers AI
Two values to copy instead of one, because a Workers AI token can’t tell the app which account it belongs to. Both are on the same screen.
- Sign in at dash.cloudflare.com. The free Workers plan is enough and no card is needed.
- Open Workers AI, then select Use REST API.
- Select Create a Workers AI API Token, then Create API Token, then Copy API Token. It’s shown once.
-
On the same screen, copy your Account ID. It’s 32 hex characters, so
0to9andatof. - In FairThen, go to Settings → Advanced, tap Cloudflare Workers AI, paste the token and the Account ID and tap Agree and save. When it asks to use Cloudflare Workers AI for AI features, tap Turn on.
Worth knowing
- Tapping Open Cloudflare in the app opens Cloudflare’s general API Tokens page rather than the Workers AI screen above, so those three buttons won’t be there. That page works too: Create Token, give the token both Workers AI · Read and Workers AI · Edit, and pick the Account ID up separately.
- To find the Account ID on its own, press Ctrl+K in the dashboard (Cmd+K on a Mac) and search for “Copy account ID”, or look under Workers & Pages → Account Details.
- The Account ID is not the Zone ID sitting next to it on a domain’s page, and it isn’t the token’s own id either. Those are the two things people paste by mistake.
Official pages
Custom: anything else
Custom points FairThen at any endpoint that speaks the OpenAI chat/completions API. That covers OpenAI itself, a gateway like OpenRouter, a proxy your workplace runs, or a model you host yourself.
Adding one
- Open Settings → Advanced and, under Custom endpoints, tap Add a custom endpoint.
- Fill in a name, the endpoint URL, the model and the API key.
- Tap Agree and save. A tiny text prompt checks it, and it’s saved only if it works.
You can add as many as you like, say one called Work and one for OpenRouter, and each AI tool can run on a different one.
What you fill in
- Name. How this key shows up in the app, like Work or OpenRouter. Each name can only be used once.
- Endpoint URL. The base, usually ending in
/v1/. FairThen addschat/completionsitself, and adds the trailing slash if you forget. - Model. The exact model id your endpoint expects. One per endpoint: to use another model too, add another endpoint with the same URL and key.
- API key. Whatever that endpoint authenticates with.
One model per endpoint
Every tool that runs on a custom endpoint uses that endpoint’s model. To switch models, edit the endpoint and change its model. To keep both, add a second endpoint with its own name and the same URL and key, then point a tool at it under AI tools.
Where to find the URL and model
Each provider lists its OpenAI-compatible URL and current model ids in its own docs. We don’t copy them here, because they change more often than this page does.
- OpenAI: Chat API reference for the URL, and Models for the model ids.
- OpenRouter: Quickstart for the URL, and Models for the model ids.
- DeepSeek: Your First API Call for the URL, and Models & Pricing for the model ids.
- Anthropic: OpenAI SDK compatibility for the URL, and Models overview for the model ids.
What FairThen sends
One POST to {your endpoint}chat/completions with your key as
a bearer token, carrying a system message with the instructions and a user message with
the text plus, where the feature needs one, an image as an inline base64
data: URI. Assign with AI is a chat, so each message you send is a request
carrying the whole chat so far, and a reply that doesn’t add up is quietly asked for
again, which uses another request. It asks for a JSON schema first, and if the endpoint answers 400
to say it doesn’t understand that, it retries in plain JSON mode.
What the endpoint has to do
- https, no exceptions. An
http://endpoint is refused outright, because your key would cross the network in the clear. - No query string, no fragment, and no username or password in the URL. Any of the three is rejected before a request goes out.
- Answer on that exact URL. Redirects aren’t followed, on purpose, so your key can’t be bounced somewhere you didn’t agree to. An endpoint that 301s or 302s elsewhere will never work.
- For Receipt scan, accept an image inline as base64. Some endpoints only take a public image URL, and those won’t work here.
- Answer inside the budget. Receipt scan allows about a minute and a half in total, including up to three quick tries. Assign with AI allows two minutes for each request and four minutes per reply in total, retries included. Very slow local hardware may not make it.
We can’t test or support an endpoint we’ve never seen, so this option really is at your own risk. Agree and save checks three things one after the other: that the model answers, that it can reply in a structured format (JSON), and that it can read a picture. Each one it passes shows as a small icon on the key, and a tool only offers keys that can do what it needs. Choose lets you skip checks you know won’t pass. If only the JSON or picture check fails, the key is still saved with that icon off, and Check again on the key runs the checks again.
Switching it on in the app
Three lists: Providers holds your Google AI Studio and Cloudflare Workers AI keys, Custom endpoints holds as many custom ones as you add, and AI tools is where each tool (Receipt scan, Assign with AI) picks which key to run on. Setting up a key takes care of the AI tools it can run.
- Open Settings → Advanced and tap a provider, or Add a custom endpoint.
- Tap the button at the top (Open Google AI Studio, Open Cloudflare, or Open the guide for Custom) to get a key, then paste it. Cloudflare also wants your Account ID; Custom wants a name, an endpoint URL and a model.
- Tap Agree and save. A small test request checks the key (Custom endpoints get up to three), and it’s saved only if it answers. Custom endpoints also show which checks passed.
- Tap Turn on when it asks “Use … for AI features?”. The tools that key can run now use it, and Use my own AI key is on.
To change it later, open the tool under AI tools, pick another key and tap Done. Nothing is tested, so it switches straight away; keys that can’t do what the tool needs are greyed out with the reason. Use my own AI key is the master switch.
If you already had a Google AI Studio or Cloudflare Workers AI key set up when Assign with AI arrived, it’s set up on that key for you. To use it, split a bill by item, tap Assign with AI under the items and tell it who had what. It asks about anything it’s unsure of in one go, then suggests a split. Nothing on the bill changes until you apply a suggestion, and you can undo it straight after.
A provider row reads Not set, Working or Failed. A key saved but never checked reads Untested, with Tap to check the key underneath. A tool row shows its key and model, or Not set up.
If something goes wrong
Errors from a provider name it and quote what it said. Read that first: most fixes are on the provider’s side, which we can’t see or support.
- Agree and save fails and mentions 401 or 403. The key is wrong, expired, or restricted to something else. Make a new one and paste it again. Google AI Studio is the odd one out and answers a bad key with a 400, which the app spells out for you.
- A brand new Google key is refused straight away. Google changed the kind of key AI Studio issues during 2026, and the changeover has been bumpy. Check Google’s AI Developer Forum before assuming you did something wrong, and try one of the other providers meanwhile.
- 429, 503, or anything about rate limits or slow replies. A 429 means you’ve reached the free allowance. Wait it out, or tap Choose another key on the error in Receipt scan or Assign with AI and pick another key you’ve set up (or add one), and it tries again on that key. You can also do it from Settings → Advanced, under AI tools. Nothing switches key on its own. In Assign with AI, the error card can also switch just that chat to the next model on the same provider, when there is one.
- Cloudflare says the Account ID looks wrong. It’s 32 hex characters,
0to9andatof. The Zone ID and the token’s own id are different values. - A custom endpoint keeps returning 400. If the endpoint says the problem is the response format, FairThen retries in plain JSON mode by itself. Any other 400 is final, so the model most likely can’t return structured JSON, or, on Receipt scan, can’t read images at all. The icons on the key show what its checks found, and Check again on the key runs them again.
- It worked yesterday and doesn’t today. Providers retire models. When that happens the provider is marked Failed and stops being used, rather than quietly falling back to something that can’t work. Worth knowing: if the provider that broke is the one behind Receipt scan, then Use my own AI key switches itself off. Sort the key out or point Receipt scan at another key, then switch it back on. We can point the app at a replacement model without an app update, though it only looks for one about once a week. On a custom endpoint, the model is yours: edit the endpoint and put in a model your provider still offers, or add another endpoint with a model id you choose yourself.
- Still stuck. Email support@fairthen.com. We can’t see anything that happened on the provider’s side, but we can usually tell you whether the app is doing its part.
Your key, your provider, your call
What happens to something that runs through us is in the Privacy Policy. The terms for bringing your own are in the Terms. Anything this page didn’t answer, just ask.
Provider details on this page were last checked on 22 August 2026.