Messages
Anthropic 原生 Messages 协议 — 支持 Claude 的 extended thinking、prompt caching、server-side tool 等原生能力。鉴权使用 Authorization: Bearer。
Create a message using the Anthropic Messages API.
创建一次 Anthropic Messages 协议调用。支持 streaming / extended thinking / tool use / vision / prompt caching 等 Claude 原生能力。通过图灵平台代理时, 鉴权使用 `Authorization: Bearer`(**不是** Anthropic 官方的 `x-api-key`)。 概念与差异对比见 [Anthropic Messages 接口](/api-guides/core-apis/messages)。
Count tokens for a prospective Anthropic Messages request without calling the model.
在真正发起模型调用之前估算请求输入的 token 数量,用于 context 窗口控制或费用预估。 不计费、不触发 fallback。字段语义与 `POST /messages` 的请求基本一致但少 `max_tokens` 等生成相关参数。