You may know AI models mainly through a chat window. But AI features also turn up where there is no chat window at all: a “summarize” button in a note-taking app, suggested replies in an email tool, an AI step inside a no-code automation. One common way such features reach a model is a route built for software rather than people, and once you can picture it, confusing settings such as “paste your API key here” start to make sense.
That route is an API, short for application programming interface: a published set of rules that lets one program ask another program for something and get an answer back. NIST, a US federal body that publishes technical standards, describes it as an access point with a well-defined syntax that programs can use to get well-defined functionality [1]. An AI API applies the idea to AI models: an app sends input, such as a question or a document to summarize, to a provider’s model and receives the model’s output as data it can use [2, 3]. The app never opens a chat page. It sends a structured message over the internet and gets a structured message back.
This guide is for readers who use AI chat tools, may have tried a no-code tool, and have never sent an API request themselves. It explains the idea in plain words, shows where an API sits inside a small hypothetical app, separates the API from the products that sit near it, outlines what you’d need before starting, and maps the 13 guides in this series that go deeper. There is no code here; the first coded request has a guide of its own.
TL;DR
- An AI API is a door for software. An app sends input to a provider’s model and gets the output back as data, without a person typing into a chat window [1, 2].
- The app’s server builds each request. It names an address, carries a key that identifies the account, and packs the model name and the input into a structured message [4, 5, 3].
- The key is a secret tied to your account and your bill. OpenAI and Google both tell developers to keep keys out of browser and mobile-app code [4, 5].
- The API is not the chat app, and billing arrangements vary. OpenAI and Anthropic bill API use separately from their chat plans, with plan-linked exceptions, while Mistral applies one plan across its chat product and its API [6, 7, 8].
- Using an API directly means new responsibilities: paying per use, staying under rate limits and keeping up with models that change and retire [6, 9, 10].
What an API Is, in Plain Terms
Web pages and apps have screens for people. An API is the entrance a program uses instead. MDN, Mozilla’s widely used reference for web developers, describes an API as the features and rules a program exposes so that other software, rather than a person at a screen, can work with it, and compares it to a contract between the program offering it and whatever uses it [11]. The program on the other side can ask only for what the contract offers, in the form the contract specifies.
A few words come up constantly, so here they are once:
- Request: the message an app sends to the API.
- Response: the message it gets back.
- Endpoint: the specific web address of one API function, such as “send a message to the model.”
- Provider: the company that runs the model and the API, such as OpenAI, Google, Anthropic or Mistral. These are examples, not endorsements.
- Model: the AI system that generates the output. Providers offer several, and their names change over time.
What makes an API an AI API is what sits behind the endpoint: a model rather than, say, a weather database or a payment system. Anthropic describes its API as giving programs access to its models [2]. OpenAI’s reference points developers to its Responses API for direct model requests [4]. Google’s Gemini API getting-started guide walks through a first request to a Gemini model [3]. Mistral groups its API with keys, a playground and SDKs in Studio, its developer console [12]. Each has its own names and formats, but the shape of the exchange is the same.
APIs also work in the other direction. An AI agent can use other companies’ APIs to check a calendar or look up an order, and that side of the story is told in how AI agents connect to other apps. This series is about the first direction: your app calling a model.
How an App Reaches an AI Model
AI APIs travel over the web’s own plumbing. The request goes over HTTPS, the encrypted version of HTTP, the protocol in which a client program starts each exchange with a server [13, 14]. In the provider examples cited here it is a POST request, the kind that asks the server to process the data it encloses [15, 2, 3], and that data is written in JSON, a lightweight, plain-text format for named fields and their values [16].
In outline, the app’s server sends a request that names the model and carries the input, with the API key in a header (a labeled line of information sent with the request); the provider checks the key and runs the model; and a response comes back with the output and usage information. Google’s getting-started example, as published on Nov 22, 2026, includes those parts: a POST request, the key in a header, a JSON body with a model field and an input field, and a response with usage statistics [3]. The same exchange is followed step by step, status codes included, in what happens during an AI API request, and every part involved is mapped in what happens between an app and an AI model. When a request fails, the guide to when an AI API stops working explains what the errors mean.
A Hypothetical Example: A Weekly Meal-Plan Helper
Imagine a small hobby app, invented for this guide, that suggests a week of dinners. You type what’s in your fridge and any foods you avoid, then tap “Plan my week.”
Behind that tap, the phone sends your list to the builder’s own server. The server adds standing instructions written by the builder, along the lines of “suggest seven dinners using these ingredients, one line each, and skip anything on the avoid list,” attaches the API key and sends the request to a provider’s model. The model drafts a plan and the response comes back to the server, which checks that the reply has the expected shape before passing it to your screen.
The API is one step in that chain: the hop between the builder’s server and the provider. Everything else, the screen, the list, the check on the reply, is ordinary software the builder designs. The standing instructions are the subject of the guide to system prompts, and getting a reply in a predictable shape is the subject of the guide to structured output. The model could also suggest a dish with an ingredient you said to avoid, which is why output deserves the same scrutiny as any draft; checking whether an AI answer is correct covers how.
The key travels with each of those requests, and OpenAI and Google both tell developers to keep it on a server, out of browser and mobile-app code [4, 5]. That’s why the phone talks to the builder’s server rather than straight to the provider; storing, rotating and revoking keys is covered in what an API key is and why you should protect it.
How an API Differs From an SDK, a Chat App, a Subscription and a Connector
Several things that sit near an API get called by the same name. This table separates them; the paragraphs after it give the evidence.
| Term | What it is | Who uses it | How it’s paid for |
|---|---|---|---|
| AI API | Rules and addresses that let a program send input to a model and get output back | Apps, scripts, no-code tools | A developer account billed for usage; separate from chat plans at OpenAI and Anthropic apart from plan-linked credits, while Mistral’s plans cover both [6, 7, 8] |
| SDK or library | Ready-made code for one programming language that sends API requests for you | People writing code | Through the same API account as the requests it sends |
| Consumer chat app | A finished product people use directly, such as ChatGPT, Claude or Mistral’s Vibe | Anyone with an account | Free or paid plans; ChatGPT, for example, has Free, Go, Plus and Pro accounts [6] |
| Consumer subscription | The monthly plan for a chat app | Individuals and teams | At OpenAI and Anthropic it covers the chat product and API use is billed separately, apart from plan-linked credits; Mistral applies one plan across its chat product and API [6, 7, 8] |
| Integration or connector | A ready-made link between two products, such as a no-code tool’s AI step | No-code builders | The tool’s own plan, and sometimes your own API account as well [17, 18] |
SDKs are ready-made code that sends the same API requests for you; OpenAI, for example, says developers can install an official library or call its HTTP API directly [4, 19]. Where an SDK sits among the other parts is shown in the guide to the parts behind an AI feature.
Chat subscriptions and API billing don’t follow a single pattern. OpenAI’s help center, read on Nov 22, 2026, says billing for ChatGPT and billing for OpenAI’s API platform run on separate systems and API usage is billed separately from a ChatGPT subscription, though eligible subscriptions may offer promotional credits for a linked API organization [6]. Anthropic’s help center, checked the same day, says its paid Claude plans and its developer Console are separate products and API use is billed separately, with one exception: its Max, Ultra and Team plans include monthly Claude API credits [7]. Those credits are claimed by linking one Claude Console organization to the plan, and they don’t apply to Claude used through the cloud services Anthropic’s page lists as Amazon Bedrock, Google Cloud Vertex AI and Microsoft Foundry [20]. Mistral handles it differently: its documentation lists Vibe, its chat and coding agent, apart from Studio, its developer console and API [12], but its subscription page, checked Nov 22, 2026, says one Mistral plan applies across Vibe, Studio and API usage, with included monthly usage shared across Studio, the API and Vibe Code [8]. Check each provider’s own billing page rather than assuming either pattern.
Integrations and connectors may call an API on your behalf without being the API. Zapier’s help page for its ChatGPT (OpenAI) integration, updated Oct 1, 2026, says you need an OpenAI account with prepaid billing, separate from ChatGPT’s plans, and you paste an OpenAI API key into Zapier to connect [17]. Zapier’s built-in AI by Zapier step works differently: it can run on a built-in connection or on your own AI provider account, and its help page, updated Oct 28, 2026, says a Free plan can’t publish a Zap that includes the step [18]. The step-by-step version of hooking an API to a no-code tool is in how to connect an AI API to a no-code tool, and automating work across apps more generally is in how to connect two apps and automate a task. BuildAIQ’s existing guide on building with AI without learning to code covers the wider no-code route.
Cloud platforms such as Amazon Bedrock and Microsoft Foundry also offer models from several companies through their own APIs [21, 22], so one model can be reachable in more than one place; Anthropic, for instance, says feature availability for its models varies by platform [2]. Weighing those routes is part of choosing a model for a simple application.
What You Take On When You Use an API Directly
A chat app hides a lot of decisions. Calling a model through an API hands some of them to you.
You pay for what you use. OpenAI says its API charges depend on the models and features you use, including token usage and any tool or storage charges [6]. Tokens are the units providers use to measure the text going into and coming out of a model, and each provider counts and prices them in its own way. How much an AI API costs explains the arithmetic, and how to avoid unexpected AI API charges covers budgets, alerts and other controls.
You work within limits. OpenAI defines rate limits as caps on how many times a user or client can access its API within a set period [9]. How those limits are measured and how to stay under them is in what rate limits are.
Models change and retire. OpenAI says it retires older models on a regular basis, that software relying on them may need updates to keep working, and that each model is active, deprecated or shut down [10]. It also says model outputs are variable by nature and can change between versions, and recommends pinning a specific model version and testing your app’s results [4]. Product names move too: in April 2026 Google folded Vertex AI into Gemini Enterprise Agent Platform [23]. When a request that used to work starts failing, the troubleshooting guide is the place to start.
Data terms come with the account, and they differ by provider, product and tier. OpenAI, for example, says data sent to its API isn’t used to train its models unless you opt in, a policy in place since March 1, 2023, yet by default it keeps abuse-monitoring logs for up to 30 days (longer where the law or harm prevention requires) and stores Responses API output for at least 30 days unless the app turns that storage off [24]. Read the terms for the account you’ll actually use before sending anything personal or confidential; the model-choice guide treats data terms as a selection criterion, and BuildAIQ’s Building AI Applications guides cover protecting user information in an AI app.
What You Need Before You Start
This outline is BuildAIQ editorial guidance assembled from the provider pages cited; each item has its own guide later in the series.
- A developer account with a provider. It may be separate from your chat login. Anthropic lists a Console account and an API key as the prerequisites for its API [2]. Google AI Studio creates a project and a key for new users automatically, and every Gemini API key belongs to a Google Cloud project that manages billing and permissions [3, 5].
- An API key, stored where only your server or your tool’s credential store can read it [4, 5]. See the API key guide.
- Billing, or a free allowance as the provider describes it. Google says new Gemini API accounts begin on a Free Tier with access to certain models, up to free-tier rate limits, and that moving to a paid tier means linking a billing account, with new users defaulting to prepaid credits [25]. OpenAI says paid API use starts once you add a payment method in your API account’s billing settings [6]. Prices and free allowances belong to the pricing guide.
- The provider’s documentation and quickstart. Some providers also offer a browser playground; Anthropic’s Console, for instance, lets you try its API in the browser before generating keys [2].
- The data terms for your account and tier, read before you send real information [24, 26].
- A way to send requests. That can be a little code or a no-code tool’s API connection; whether you need to code helps you choose, and the first coded request and no-code connection guides walk through each.
A Route Through the Series
The 13 supporting guides fall into four stages. They’re listed in the suggested order, but you can start wherever your question is.
Understand APIs and access
- Do You Need to Know How to Code to Use an AI API? The routes open to non-programmers and people who write a little code, and the skills every route needs.
- What Happens Between an App and an AI Model? A map of the parts behind an AI feature and why the key belongs on the server.
- What Happens During an AI API Request? One request followed from the moment it’s assembled to the moment the answer arrives.
- What Is an API Key, and Why Should You Protect It? Where keys must never go, how to store them and what to do if one leaks.
Make the connection
- How to Make Your First AI API Request The prerequisites, one minimal request and how to read the response and the first errors.
- How to Connect an AI API to a No-Code Tool Built-in AI steps versus generic request steps, storing the key and testing with sample data.
Control models and outputs
- How to Choose an AI Model for a Simple Application Criteria and a process for comparing models from more than one provider on your own examples.
- What Is a System Prompt, and What Does It Control? What standing instructions can shape, what they can’t guarantee and how to test them.
- How Can an AI API Return Reliable, Usable Data? Getting output your app can read, and why a valid format still isn’t a correct answer.
Manage cost and reliability
- How Much Does an AI API Cost? How token-based pricing works and how to estimate a bill from dated list prices.
- How to Avoid Unexpected AI API Charges The spending controls providers offer, which ones actually stop usage, and habits that keep bills small.
- What Are Rate Limits in AI APIs? What the limits measure, how they differ from spending caps and how to stay under them.
- What to Do When an AI API Stops Working A triage order for failures, safe retries and what to tell your users.
Three suggested starting points, depending on what you want to do:
- You want AI inside a no-code tool. Read the coding guide, then the API key guide, then the no-code connection guide.
- You’re ready to write a little code. Read the parts and request guides, then the key guide, then make your first coded request.
- You’re already sending requests and worried about the bill or about failures. Go to the four cost and reliability guides.
What We Know and What We Don’t
The mechanics are settled. HTTP and JSON are published standards [15, 16]. Google’s getting-started example shows the basic exchange end to end, a request carrying a key and a model name and a response carrying output and usage information [3], and OpenAI’s and Anthropic’s references document the same pattern of a key sent in a header [4, 2]. Billing is less uniform: OpenAI and Anthropic bill API use separately from chat plans, each with its own exceptions, while Mistral applies one plan across its chat product and API [6, 7, 8].
The details are the moving part. Within the sources read for this guide, Google moved Vertex AI into a newly named platform in April 2026 [23], OpenAI lists models scheduled for shutdown [10], and billing terms carry plan-by-plan conditions [6, 7, 20]. This guide draws on documentation and specifications, not on studies of how beginners fare with AI APIs, and none of the sources disputes how the mechanism works; providers differ in naming, features and terms. Treat any provider detail as true on the date it was checked, and confirm it on the provider’s own page before you rely on it.
Practical Takeaways
These are BuildAIQ editorial suggestions based on the documentation cited above.
- Check each provider’s billing page before assuming your chat plan does or doesn’t cover API use. OpenAI and Anthropic bill them separately, apart from plan-linked credits, while Mistral uses one plan for both [6, 7, 8].
- Keep the key on a server or in a tool’s credential store, never in a web page or app that users download [4, 5].
- Write the date next to any model name, price or limit you rely on, and look at the provider’s deprecation page before building on a model [10].
- Read the data terms for the tier you’re on before sending anything personal or confidential [24, 26].
- Check the model’s output the way you’d check a draft. An API delivers an answer, not a guarantee that it’s right; checking whether an AI answer is correct shows how.
- Pick your next guide by goal. If you’re unsure, start with whether you need to code.
Sources
- application programming interface (API) — Glossary. NIST Computer Security Resource Center, accessed 2026-11-22.
- API overview – Claude Platform Docs. Anthropic, accessed 2026-11-22.
- Getting started | Gemini API. Google (Google AI Studio / Gemini API docs), accessed 2026-11-22.
- API Overview | OpenAI API Reference. OpenAI, accessed 2026-11-22.
- Using Gemini API keys. Google (Google AI Studio / Gemini API docs), accessed 2026-11-22.
- Managing billing for ChatGPT and the API platform. OpenAI Help Center, accessed 2026-11-22.
- Why is Claude API usage billed separately from my paid Claude plan?. Anthropic (Claude Help Center), accessed 2026-11-22.
- Subscription | Mistral Docs. Mistral AI, accessed 2026-11-22.
- Rate limits. OpenAI, accessed 2026-11-22.
- Deprecations. OpenAI, accessed 2026-11-22.
- API — Glossary. MDN Web Docs (Mozilla), accessed 2026-11-22.
- Mistral AI Documentation. Mistral AI, accessed 2026-11-22.
- Overview of HTTP. MDN Web Docs (Mozilla), accessed 2026-11-22.
- HTTPS — Glossary. MDN Web Docs (Mozilla), accessed 2026-11-22.
- RFC 9110: HTTP Semantics. IETF / RFC Editor, 2022-06, accessed 2026-11-22.
- RFC 8259: The JavaScript Object Notation (JSON) Data Interchange Format. IETF / RFC Editor, 2017-12, accessed 2026-11-22.
- How to get started with ChatGPT (OpenAI) on Zapier. Zapier Help Center, 2026-10-01, accessed 2026-11-22.
- Use AI by Zapier to analyze and return data. Zapier Help Center, 2026-10-28, accessed 2026-11-22.
- SDKs and CLI. OpenAI, accessed 2026-11-22.
- Monthly API credits for Max, Ultra, and Team plans. Anthropic (Claude Help Center), accessed 2026-11-22.
- Overview – Amazon Bedrock. Amazon Web Services, accessed 2026-11-22.
- Microsoft Foundry Models overview. Microsoft Learn, 2026-07-28, accessed 2026-11-22.
- Introducing Gemini Enterprise Agent Platform. Google Cloud Blog, 2026-04-22, accessed 2026-11-22.
- Data controls in the OpenAI platform (Your data). OpenAI, accessed 2026-11-22.
- Billing | Gemini API. Google (Google AI Studio / Gemini API docs), accessed 2026-11-22.
- Gemini API Additional Terms of Service. Google (Google AI Studio / Gemini API docs), accessed 2026-11-22.
