Skip to content

API, decoded

You will see the word on every pricing page. An API is how one program talks to another. What it means for you, when you would use one, and the price trap.

By Nick

2 min read

AI Basics Beginner
On this page

Before you start

An API is the hatch between two programs. One slides a written order through; the other sends back the result. No screen, no buttons, no person. Just program to program.

When you type into ChatGPT, the app takes your words and passes them through that hatch to the model (the AI system that writes the replies), then shows you what came back. The app is a nice front on the API. Programmers can skip the front and use the hatch directly.

Why you would ever care

Three situations.

Something of yours wants to talk to the model. A script that summarises your inbox each morning, a spreadsheet that drafts replies, an agent you run on your own machine. They cannot type into an app. They use the API.

You want to pay per use instead of per month. API access bills by the token. Light use is pennies. Heavy use can cost more than a subscription, which is the trap.

A tool you are setting up asks for an API key. That is it asking for the password to your hatch. It will spend your money through it, so give it a key with a spending cap.

The one rule

Set a monthly limit on the API account before anything runs unattended. An agent in a loop is an expensive agent, and you will not find out until the invoice.

If you are deciding whether a job needs the API or the app, ask the app:

I want to [describe the job]. Can I do this inside this app, or does it need API access
and some code? One line, then the simplest way to do it.
Example reply (trimmed). Your app will word it differently.

I want a summary of my inbox every morning, plus the prompt above

It needs the API, plus a small script.

Simplest way: use a scheduled task in your chat app that reads your email, and only reach for the API if that app cannot do it.

Most jobs do not need the API. The ones that do run without you sitting there, and the Hermes guide is what that looks like end to end.

Common questions

Do I need an API to use AI?

No. The apps are the API with a nice front on it. You only need one when a program, script or agent of yours wants to talk to the model directly, with no app in the middle.

What is an API key?

A long password that identifies your account to the API. Anyone with it can spend your money. Keep it out of chats, screenshots and shared files; the what-not-to-paste page covers this.

Is it cheaper than a subscription?

For light, occasional use, often yes. For heavy daily use, often no, because you pay per token and a long day adds up. Set a spending cap before you find out.

What to do next

Related reading

Last reviewed 9 October 2026 by Nick.

Software changes fast. If something here is out of date, tell me and I'll fix it.

Get new guides by email

Occasional and practical. No spam, no hype, unsubscribe whenever.

Occasional practical guides from UncomplicateAI. You will get a confirmation email before anything else is sent. Unsubscribe any time. Privacy

You are not subscribed until you confirm the email. Unsubscribe any time.