Free | No tracking | Every fact with a source|German and English

Glossary / Software and setup

API – explained simply

An API is a defined interface through which one program gives another instructions, for example a chat interface to a local language model.

Also: Interface, Programming interface, OpenAI-compatible, REST API

Like an order form, an API defines what a request must look like and what comes back. Many local AI programs work this way: a server program hosts the model, and interfaces or scripts send it requests.

Ollama provides its API locally at http://localhost:11434/api, for example, plus an OpenAI-compatible variant at http://localhost:11434/v1. OpenAI-compatible means: programs that were actually built for OpenAI's cloud can often be switched to your local model with little effort. Local requests with Ollama do not need an API key.

What does that mean for you? If a program asks for an API address, you usually enter http://localhost:11434 for Ollama.

Related terms

Errors where that matters

Sources