Chat Completions API
Also written: client.chat.completions.create, Chat Completions
OpenAI's request format for chat models, which takes a list of messages, each with a role and content, and returns the model's reply. Nearly every OpenAI-compatible provider supports it, so the same code works across many services.