文本系列
Claude 消息接口
使用 Anthropic Messages 原生格式调用 Claude 模型。
POST
Documentation Index
Fetch the complete documentation index at: https://dsnt.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Claude 消息接口
Claude Messages 接口保留 Anthropic 原生请求结构,适合已有 Claude SDK 或原生提示词结构的业务迁移。路由会进入 Claude relay 格式,并根据渠道分发到对应上游。认证
请求体
Claude 模型名称。
对话消息数组。Claude 原生格式中消息角色通常为
user 或 assistant。系统提示词。Claude 不使用
system 角色消息,而是通过该字段传递系统指令。最大输出 token 数。多数 Claude 请求都应显式传入。
是否启用 SSE 流式输出。
采样温度。
核采样参数。
Top-K 采样参数。
停止序列。
Claude 工具列表,通常包含
name、description 与 input_schema。控制工具选择策略,例如
{ "type": "tool", "name": "get_weather" }。扩展思考配置,例如
{ "type": "enabled", "budget_tokens": 10000 }。业务侧元数据,例如
user_id。