Anthropic: Claude Sonnet 4

由 Anthropic 提供

Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%), Sonnet 4 balances capability and computational efficiency, making it suitable for a broad range of applications from routine coding tasks to complex software development projects. Key enhancements include improved autonomous codebase navigation, reduced error rates in agent-driven workflows, and increased reliability in following intricate instructions. Sonnet 4 is optimized for practical everyday use, providing advanced reasoning capabilities while maintaining efficiency and responsiveness in diverse internal and external scenarios. Read more at the [blog post here](https://www.anthropic.com/news/claude-4)

支持流式输出最大 64K tokens

模型特性

支持的功能

  • Ultra-long Context

输入模态

  • image
  • text

模型参数

最大 Tokens:64K
默认温度:0.7
流式输出:支持

定价信息

积分定价

文本输入:115 积分
图片输入:115 积分
消息输出:911 积分

API 定价

输入价格:$3.000/1K tokens
输出价格:$15.000/1K tokens

使用示例

API 调用示例
curl -X POST "https://chatsking.com/api/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "claude-sonnet-4",
    "messages": [
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    "max_tokens": 1000,
    "temperature": 0.7
  }'