claude-sonnet-4-20250514

by AnthropicAnthropicclaude-sonnet-4-20250514通用对话Chat

概述Overview

价格Pricing

档位Tier输入Input输出Output缓存读取Cache read缓存写入(短时 / 通用)Cache write缓存写入(1 小时)Cache write (1h)缓存写入(12 小时)Cache write (12h)
基础档 · USD / 百万 Token$2.70$13.50$2.70$3.375$5.40$6.75

目录版本 a572617239af · Catalog version a572617239af · 美元(USD)基础报价,Token 单价按每百万计。实际计费取决于所选分组和请求条件,请在控制台核对。Base rates in USD. Token rates are per million. Check your group and request terms in the console.

缓存价格仅在上游报告相应用量时适用,不代表模型保证支持该缓存时长。

USD 基础报价;实际费用受分组和入口附加项影响,按次图片的数量、尺寸、质量等需以请求计费规则为准。

调用示例Quick start

接口与 OpenAI 兼容:把 base_url 指向 TokenFlow,model 填本页的模型 ID,现有 SDK 与客户端可以直接复用。The API is OpenAI-compatible: point base_url at TokenFlow and set model to the ID on this page. Your existing SDKs and clients keep working.

curl https://api.tokenflow365.com/v1/chat/completions \
  -H "Authorization: Bearer $TOKENFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-4-20250514",
  "messages": [
    {
      "role": "user",
      "content": "你好"
    }
  ]
}'
curl https://api.tokenflow365.com/v1/chat/completions \
  -H "Authorization: Bearer $TOKENFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-4-20250514",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'

常用参数、流式输出与响应结构见Parameters, streaming and response format: 文本与对话Chat completions

开始使用Get started

让第一个请求
流动起来
Get your first
request flowing

几分钟内完成接入。按量付费,无需订阅。Integrate in minutes. Pay as you go, no subscription.