You've used ChatGPT in the browser. Maybe you've got a Zap or two running. Now you want AI inside your own stuff: your website form, your CRM, the spreadsheet you update every Monday. Every guide you find says "just use the API."
An API (application programming interface) is a way for one piece of software to send a request to another and get an answer back. An AI API lets your tools send text, an image or a file to a model like OpenAI's GPT, Google's Gemini or Microsoft's Azure services, and get the result back without anyone opening a chat window. It's powerful. It's also billed by usage and protected by a secret key, and those two things are where small businesses get hurt.
The quick answer
- Start with one boring, repeatable job: tag incoming emails, summarize form submissions, draft a reply for a human to check.
- Try it without code first. Zapier and Make both have AI steps that call the API for you.
- Set a monthly spending limit on the API account before you build anything.
- Keep the API key on a server or in the automation tool's connection settings. Never in website code, a shared doc or a chat message.
- Keep a human between the AI and your customers until you trust the output.
Do you actually need an API?
Often you don't. Here's how the three options compare.
Option | Good for | What you manage |
|---|---|---|
A chat app (ChatGPT, Gemini, Copilot) | One person doing one-off tasks by hand | The account and its data settings |
A no-code automation (Zapier, Make, Power Automate) | The same AI step running on every new email, form or row | A connection that holds your API key, plus usage costs |
Your own code calling the API | Custom features on your website or app | Keys, a server, error handling, costs and updates |
If a person is going to paste something in and read the answer anyway, a business chat plan is simpler and safer. An API earns its keep when the same task happens dozens of times a day without anyone pressing a button.
One thing that trips people up: the API is billed separately from a ChatGPT subscription. A paid ChatGPT plan doesn't cover API usage, and you need prepaid credit on an OpenAI developer account to use it in tools like Zapier (Zapier Help: ChatGPT integration).
Your first experiment, step by step
1. Pick the job and write down what "good" looks like
One sentence. "Every contact form submission gets a one-line summary and a tag (quote, support, spam) in our CRM." If you can't describe the output, the AI can't produce it consistently either.
2. Create a business account on the AI platform
Sign up with a company email you control, not a personal one. When the person who set it up leaves, the account and its billing shouldn't leave with them. Turn on multifactor authentication.
3. Set the spending limit first
Do this before you create a key. Details are in the next section.
4. Create one key for this one job
Name it after the job ("website-form-summary"). One key per job means you can shut one off without breaking everything else. OpenAI recommends setting an expiration date when you create a project API key (OpenAI: production best practices).
5. Connect it in your automation tool
In Zapier or Make, add the AI step, paste the key into the connection settings, and test with fake data first. "Jane Sample, 555-0100" is fine. A real client's email thread is not.
6. Run it for two weeks with a human checking every result
Count how many results you had to fix. If it's more than one in ten, change the instructions or the job, not the reviewer.
Keep the API key secret
An API key works like a credit card number that also opens your account. Anyone who has it can run requests on your bill.
OpenAI's API reference puts it plainly: your API key is a secret, so don't share it or expose it in any client-side code such as browsers or apps, and load it from an environment variable or key management service on the server (OpenAI API reference: Authentication). "Client-side" means anything that runs on the visitor's device, like the JavaScript on your website. Anyone can open the browser's developer tools and read it.
Where keys belong:
- In the connection settings of Zapier, Make or Power Automate, which store it for you.
- In a secret store on the server that runs your code: an environment variable, or a service such as Azure Key Vault or your hosting provider's secrets setting.
- In your company password manager, in a vault only the people who manage the integration can open, for the copy you keep on file.
Where they don't:
- Website code, a WordPress plugin's public settings, or a mobile app.
- Email, Teams or Slack messages, shared docs, or a spreadsheet.
- A code repository, even a private one. OpenAI warns against exposing keys in your code or in public repositories (OpenAI: production best practices).
Control the cost (as of October 2026)
AI APIs charge per use, not per month. OpenAI, for example, prices its models per million tokens, with separate rates for what you send (input) and what comes back (output), and the rates differ a lot between models (OpenAI API pricing). A token is a chunk of text, roughly part of a word. A long prompt, a big pasted document or a loop that runs by mistake all add up.
Set a cap, and know whether it's really a cap:
- OpenAI: you can set a monthly spend limit and turn on Enforce a hard limit, for the whole organization or per project (Project settings > Limits > Spend > Edit spend limit). When the limit is hit, requests fail until you raise it or the month resets. OpenAI notes that spend tracking isn't instant, so you can go slightly over, and that spend alerts only notify you; they don't stop anything (OpenAI: spend limits).
- Google Cloud (Gemini API on a paid project): a standard budget sends alerts but, in Google's words, "doesn't automatically cap" usage or spending. Spend cap budgets that pause services exist only for some services (Google Cloud: create, edit or delete budgets).
- Microsoft Azure: Microsoft's API catalog is now called Foundry Tools, formerly Azure Cognitive Services (Microsoft Learn: What are Foundry Tools?). Costs land on your Azure subscription, so check what your subscription's budgets do before you rely on them.
Check the pricing page of whichever model you pick on the day you set it up. Prices and model names change often.
Read the data terms for the tier you're on
Free and paid tiers can follow different rules, even from the same company.
- OpenAI API: as of March 1, 2023, data sent to the API isn't used to train OpenAI's models unless you opt in. Abuse monitoring logs are kept for up to 30 days by default, unless the law requires longer (OpenAI: your data).
- Gemini API: Google's additional terms say that on unpaid services, such as Google AI Studio or free API quota, Google may use your prompts and responses to improve its products, human reviewers may read them, and you shouldn't submit sensitive, confidential or personal information (Gemini API Additional Terms of Service). Use a paid project for anything about clients.
For the full vendor check, use the AI vendor red flag checklist.
Why this goes wrong
The tutorials are written for developers who already know where keys go. A small business copies the sample, pastes the key into the website so the demo works, and moves on. Or the trial runs on someone's personal account and personal card, and nobody knows it exists until the bill or the resignation letter shows up.
If a key leaked or the bill spiked
- Revoke the key on the platform's API keys page now. Don't wait to work out how it leaked.
- Create a new key and put it only where it belongs (see above).
- Check usage on the platform's usage dashboard for the dates and projects you don't recognize.
- Find where it was exposed: website code, a shared doc, an email, a repository. Remove it from there too.
- Contact the vendor's support about charges you didn't make, with dates and the key name.
Running AI APIs in a business
- Company-owned accounts only, on a company card, with at least two admins.
- One key per job, named for the job, with an expiration date where the platform supports it.
- A spend limit on every project, plus an alert at half of it.
- A short list of what's connected to what: which tool, which key, who owns it, what data it sees.
- One rule for staff: API keys never go in email, chat or documents.
When to get help
- You want AI on your website or in a customer-facing tool, not just inside an internal automation.
- The data involved is client financial, health or legal information.
- Nobody can say where your existing keys are stored or who created them.
If that's where you are, talk to us.
Related reading
- Who owns the data I feed into AI?
- Your AI toolchain is a security hole: the connected apps problem nobody inventoried
- Should you let AI actually do things in your business, or just draft them?
Originally published April 2025. Updated November 2026.





No comments yet