Skip to content

API (Application Programming Interface)

A software interface: a set of rules by which one program communicates with another. In AI, it's a way to 'reach out' to a model over the network.

How It Works

An application sends an HTTP request to a server, which returns a response. For LLM, this is typically:

POST /v1/chat/completions
{"model": "deepseek-chat", "messages": [{"role": "user", "content": "Hello"}]}

Role in AI Stack

Side Example
Provider OpenAI, DeepSeek, Anthropic
Local Server Ollama, vLLM, LM Studio
Client Cherry Studio, your application

OpenAI-Compatible API

De facto standard: most inference servers mimic the OpenAI format. This allows the same code to work with different providers — only the address and key change.

See Also

← All Terms