Claude OpenAI-Compatible Chat
- non-stream
claude-sonnet-4-6requests returnobject: "chat.completion" - the current
messagereliably includesroleandcontent - streaming requests return
chat.completion.chunk - the SSE stream still ends with
data: [DONE]
Non-Streaming Request
Streaming Request
If you need Claude-native
thinking, native tool blocks, or document inputs, prefer Claude Messages.