Chat Completions API
OpenAI's older, widely copied API that takes a list of role-tagged messages and returns choices, each with a message and a finish reason.
In more detail
Many other providers and local servers imitate its shape, which is what OpenAI-compatible usually means. OpenAI still supports it but steers new projects to the Responses API.
Related terms
- Responses API — OpenAI's current API for generating model output, which takes input items and returns a list of output items with usage.
- OpenAI-compatible API — An API that accepts the same request and reply shapes as OpenAI's, so existing client code and libraries work against another model server.
Taught in
- How The Next Token Is Chosen — AI Engineering: LLM Apps, RAG & Agents
- The Request And The Response — AI Engineering: LLM Apps, RAG & Agents
References
- OpenAI: Chat Completions API reference (temperature, penalties, logprobs, stop)
- OpenAI: Migrate to the Responses API