Skip to main content
Content updated: 2026-06-23

Claude OpenAI Compatible Format

As of March 23, 2026, the following have been validated in the Crazyrouter production environment:
  • claude-opus-4-8 Non-streaming requests return object: "chat.completion"
  • message Current stable includes role and content
  • Streaming requests return chat.completion.chunk
  • SSE still ends with data: [DONE]
This page describes the standard dialog path for Claude using the OpenAI Chat Completions compatible format. For Claude native tool_use, Claude Code, or Agent programming scenarios that rely on tool invocation, please give priority to the POST /v1/messages from Claude Native Format. The OpenAI compatible format does not guarantee equivalent support for Claude native tool blocks.

Non-Streaming Requests

Key response formats:

Streaming Requests

In the production streaming probe as of 2026-03-23, the opening segments are as follows:
If you need Claude native thinking, native tool blocks, or document input, prioritize Claude Messages.