liveBook · Manning

Chat API

A chat API is an interface for exchanging conversational messages with a language model and receiving responses.

How 2 Manning books explain it

Generative AI in Action

A chat completion API is a programming interface that generates assistant responses from a sequence of conversational messages.

How it is used
Uses chat completions for conversational applications, one-off text tasks, and retrieval-augmented question answering.
How deep it goes
Explains message roles, request parameters, response handling, and conversation token management through implementation examples.
Examples
Demonstrates a pet-information conversation, English-to-Spanish translation, and question answering over retrieved blog posts.
What you can do after
Apply it via Azure OpenAI to send role-based messages and manage conversation context within a token budget.

Read how Generative AI in Action explains chat API →

AI Agents and Applications

How it is used
Uses role-based messaging to guide interactive assistants and support follow-up requests.
How deep it goes
Defines message roles and explains conversational context, without detailing API request schemas or endpoints.
Examples
Uses a Paestum document question and an interactive summarization request to illustrate chatbot exchanges.
What you can do after
Evaluate how role instructions, conversation history, and retrieved context support chatbot responses.

Read how AI Agents and Applications explains chat API →

Also covered in

What to know first

Related concepts

Questions about chat API

What is chat API?

A chat API is an interface for exchanging conversational messages with a language model and receiving responses.

Which Manning books explain chat API?

Generative AI in Action and AI Agents and Applications.

What should I know before learning chat API?

Manning books that teach chat API usually introduce language model, foundation model, prompt and generation first.

What is the difference between chat API and completions api?

A chat API is an interface for exchanging conversational messages with a language model and receiving responses. A completions API is an interface for requesting language-model-generated text from supplied prompts or inputs and configuring generation behavior.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.