Basics

AI API

An AI API is a web interface that lets a program send input, such as a prompt, to a hosted AI model and get the model's output back, usually as JSON over HTTPS, paid for per token.

Also called LLM API, AI model API

Checked November 29, 2026

At a glance

Protocol
HTTPS, with JSON request and response bodies
Common formats
OpenAI Chat Completions, OpenAI Responses, Anthropic Messages
Authentication
An API key in a request header
Billing
Usually per token, input and output priced apart
Answers
One JSON response, or a stream of server-sent events

You don't run the model yourself. Your code sends an HTTP request with a key, the model's id and the input; the maker's servers run the model and send back its answer, all at once or streamed as it is written. Anthropic's, for example, is a REST API at https://api.anthropic.com (Anthropic).

The main formats

Most AI APIs use one of three request shapes: OpenAI's Chat Completions, OpenAI's newer Responses API, and Anthropic's Messages API. Many makers accept OpenAI's shape for their own models, which is what OpenAI-compatible means. DeepSeek says its API format is compatible with both OpenAI's and Anthropic's (DeepSeek).

What a call needs

AI APIs on /model

/model speaks the OpenAI and Anthropic APIs on one base URL, https://api.slashmodel.com, with one key for every model on the pricing page. Each model answers on one or more of the three formats: Models on each API shows which, and Which API your app uses shows what each coding tool and library calls.

Where it applies on /model

Questions

Is an AI API the same as a chat app?

No. A chat app is a product with its own interface and plan. An API is for programs, and it is billed per token. Some coding tools, such as Claude Code, can run on either a plan or an API key.

Do I need a separate key for each model maker?

At the makers, yes: each has its own account, key and balance. A gateway gives you one key for many makers' models; on /model, one key works with every model. See AI gateway.

Sources

The makers' own pages, each opened on November 29, 2026.

One key for every model here.

Top up from $10, change one URL, and pay only for the tokens you use.