Chat with Claude models using the native Anthropic Messages API format
base_url2023-06-01claude-opus-4-6claude-sonnet-4-6claude-haiku-4-5user and assistant roles are allowed here — use the top-level system field for system prompts.6400032000messages)Accepts a plain string or an array of content blocks.true: tokens streamed incrementally following the Anthropic SSE event formatfalse: full response returned at once0 – 10 – 1. Avoid setting both temperature and top_p simultaneously.msg_messageassistantcontent[].type: content type, typically textcontent[].text: generated textend_turn: model finished naturallymax_tokens: max_tokens limit reachedstop_sequence: a stop sequence was triggeredusage.input_tokens: input token countusage.output_tokens: output token count