AI engineering glossary · Prompt context engineering

What is Chat completions API?

Chat completions API (also called Chat completions): A common style of language model API where you send a list of role-tagged messages and receive the model's next message. Many providers and open-source servers copy this shape, which makes code easier to switch between them.

Level: beginnerTopic: Prompt context engineering

Chat completions API: an example

A POST request with model name, a messages list and max_tokens returns a JSON object whose choices hold the reply text.

Related terms

More Prompt context engineering terms

Where you learn it

Chat completions API is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.