Join the beta

What is an API? And how do I connect my AI to Freshcoat?

A plain-English guide for anyone new to AI keys. No coding needed.

The short answer

An API (application programming interface) is a way for one app to ask another service to do something and get the answer back. When you type a request into Freshcoat, Freshcoat sends it to an AI model through that model company's API. The company runs the model on its computers and sends back the reply, such as the edits to make to your site.

You never have to write code to use an API in Freshcoat. You only need to tell Freshcoat which AI service to use and prove you're allowed to use it. That proof is an API key.

An everyday comparison

Think of an API as the counter at a print shop. You don't go into the back room and run the machines yourself. You hand your order over the counter, the shop does the work, and you get the result back. The shop has a list of things it can do (the menu), and it charges the account on file.

  • The counter is the API: the agreed way to ask for work.
  • Your order is your request, such as "make the buttons bigger".
  • The account card is your API key: it tells the shop who is asking and who pays.
  • The finished prints are the reply: the AI's answer and edits.

What is an API key?

An API key is a long, secret string of letters and numbers that a provider gives you, for example one that starts with sk-. Every request Freshcoat sends includes your key, so the provider knows the request is yours and bills your account.

Treat it like a password:

  • Don't share it, post it online, or paste it into a file in your website's code.
  • Set a spending limit in your provider's dashboard, so a mistake can't run up a large bill.
  • If it leaks, delete it in the provider's dashboard and make a new one. The old key stops working straight away.

How do I pay for AI?

You pay the AI company directly, not Freshcoat. Most providers charge per use, measured in tokens (small chunks of text, often around three-quarters of an English word). A small edit uses few tokens; a big redesign of many files uses more. Many providers ask you to add prepaid credit before your key works.

Freshcoat doesn't sell credits and adds no markup: what your provider charges is what you pay. Prices change, so check your provider's pricing page.

Do I need an API key for Freshcoat?

It depends on how you use Freshcoat:

How you use FreshcoatDo you need an API key?
In the browser (web app)Yes: an Anthropic, OpenAI, OpenRouter or DeepSeek key
On a Mac with Claude Code, Codex, OpenCode, Cursor or GitHub CopilotNo: these use the sign-in and plan you already have (Cursor and Copilot are in beta)
On a Mac with DeepSeek or OpenRouterYes: a key from that provider
On a Mac with OllamaNo: the model runs on your own Mac, for free

Not sure which to pick? If you already pay for a Claude or ChatGPT plan and have a Mac, start with Claude Code or Codex. Otherwise, an Anthropic or OpenAI key in the web app is the quickest way to begin.

How do I get an API key?

The steps are similar at every provider:

  1. Create an account with the provider and sign in.
  2. Add a payment method or some prepaid credit, if the provider asks for it.
  3. Open the provider's API keys page and choose to create a new key. Give it a name you'll recognise, such as "Freshcoat".
  4. Copy the key straight away. Many providers show it only once.

Where to create a key:

ProviderAPI keys page
Anthropic (Claude)platform.claude.com/settings/keys
OpenAIplatform.openai.com/api-keys
OpenRouter (many models, one key)openrouter.ai/settings/keys
DeepSeekplatform.deepseek.com/api_keys

How do I add my key to Freshcoat?

In the web app

  1. Open the web app at freshcoat.dev/app and choose Settings.
  2. Pick your provider and model.
  3. Paste your key into the key field.
  4. Leave Remember on this device ticked to keep the key in this browser, or untick it so the browser forgets the key when you close the window. To protect a remembered key, also tick Lock the saved key with a passphrase and choose one.
  5. Save, then describe your first change.

In the Mac app

  1. Open Settings and go to Integrations.
  2. To use an agent you already have, such as Claude Code, Codex or OpenCode, sign in to it once as its setup asks. Freshcoat finds it, and no key is needed.
  3. To use DeepSeek or OpenRouter, find it under Model Providers, paste your key and save. It's stored in your macOS Keychain.
  4. Choose the model from the model menu next to where you type your request.

Where does my key go?

In the web app, your key is saved in your browser's own storage for freshcoat.dev and is sent only to the AI provider you picked. It never goes to Freshcoat's servers. Unless you lock it, the saved key isn't encrypted, so anyone who can use your browser profile, or a browser extension, could read it. To protect it, tick Lock the saved key with a passphrase: the key is then encrypted in your browser and unlocked only when you type the passphrase. Use a computer you trust, and choose Forget this key when you're done on a shared one.

In the Mac app, keys are kept in your macOS Keychain, the same secure store your Mac uses for passwords. Agents such as Claude Code keep their own sign-in, which Freshcoat never sees.

Words you might see

WordWhat it means
APIThe way one app asks another service to do work
API keyA secret code that identifies you to a provider and bills your account
ProviderThe company running the AI model, such as Anthropic or OpenAI
ModelThe AI itself, such as Claude Sonnet or GPT. Bigger models are usually smarter, slower and cost more per request
TokenA small chunk of text that providers count to work out your bill
Rate limitA cap on how many requests you can send in a minute; wait a moment and try again
CreditsMoney you've paid into your provider account in advance

Something not working?

  • "Key rejected" or "unauthorised": the key was copied with a missing character, was deleted, or belongs to a different provider than the one you picked. Copy it again or make a new one.
  • "Insufficient credit" or "billing": add credit or a payment method in your provider's dashboard.
  • "Rate limit": you sent many requests quickly. Wait a minute and try again.

Still stuck? Email contact@freshcoat.dev and tell us which provider you're using. Never send us your key.