# API Inference

- **Canonical URL:** https://getaimath.com/dictionary/api-inference/
- **Topics:** [Local AI & Open-Weight Models](https://getaimath.com/dictionary/category/local-ai-and-open-weight-models/)
- **Last updated:** 2026-11-25

## What is API Inference?

**In one sentence:** API inference is using a model by sending requests to a provider's API and getting answers back.

Your app sends text and receives the model's output in a structured format, usually paying per token. No model hardware is needed on your side.

![Local AI vs. Cloud AI: Cooking at Home vs. Ordering Out — Simple two-column cartoon comparing Local AI (running an open-weight model inside your own laptop with total privacy and $0 per question) against Cloud AI (sending questions over the internet to a giant rented kitchen).](https://getaimath.com/diagrams/local-ai-and-open-weight-models.png)
*Napkin Diagram (Local AI & Open-Weight Models): Local AI runs privately on your own computer for free; Cloud AI rents a giant supercomputer over the internet.*

## What is an example of API Inference?

A website sending customer questions to a model's API and showing the replies uses API inference.

## Why does API Inference matter?

APIs let anyone build AI features quickly.

## Related Concepts

- [Offline Inference](https://getaimath.com/dictionary/offline-inference/): Offline inference can mean running a model without internet, or processing data in batches rather than live.
- [Cloud Inference](https://getaimath.com/dictionary/cloud-inference/): Cloud inference is running model predictions on servers in a data center rather than on your own device.
- [Local Inference](https://getaimath.com/dictionary/local-inference/): Local inference is running a model's predictions on your own machine.
- [Model Fine-Tuning Locally](https://getaimath.com/dictionary/model-fine-tuning-locally/): Fine-tuning locally means training a model on your own data using your own computer or GPU.
- [Model Download](https://getaimath.com/dictionary/model-download/): A model download is getting a model's files onto your computer so you can run it locally.
- [Hardware Compatibility](https://getaimath.com/dictionary/hardware-compatibility/): Hardware compatibility is whether a model or AI tool can run on a particular device, chip or GPU.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/api-inference/)
