Claude Sonnet 4

anthropic/claude-sonnet-4

输入 text, image, document · 输出 text · 上下文 200,000 · 最大输出 64,000

工具Schema视觉推理缓存不用于训练
每千次请求的实际成本

成本 = p_in·(input − cached) + p_cache_read·cached + p_out·output + p_req;缓存 Token 是粘性端点已持有的前缀(part2b §9.3),因此标价最低并不总是单次请求最便宜。

供应商区域 · 量化上下文 / 最大输出输入 / 百万输出 / 百万缓存读取 / 写入加价每千次请求30 天可用率TTFT p50 / p95吞吐量最近 24 小时保真度数据能力状态
OpenRouterglobal · unknown200,000 / 64,000$3.150$15.75$0.315 / $3.938+5.0%$11.340———无流量— 不用于训练 30 天模型默认活跃

快速开始

curl https://api.ai.ml/v1/chat/completions \
  -H "Authorization: Bearer $AIML_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"anthropic/claude-sonnet-4","messages":[{"role":"user","content":"Say hello"}]}'
在控制台获取密钥

变更记录

  • new_model model anthropic/claude-sonnet-4 added (active); endpoint ep_openrouter_claude-sonnet-4_global (anthropic/claude-sonnet-4) added as active; price input 3.150 output 15.750 USD/M 2026/10/5