Create chat completions using Claude models with OpenAI-compatible format
Official documentation: https://docs.anthropic.com/en/api/messagesCreate model responses for chat conversations using Anthropic Claude models with OpenAI-compatible API format. This endpoint provides compatibility with OpenAI’s chat completions API while using Claude models.
claude-haiku-4-5-20251001claude-sonnet-4-20250514claude-opus-4-5-20251101role: Either “system”, “user”, or “assistant”content: The message content (string or array for multimodal)content array:
chat.completion.