CLAUDE 5 SONNET

Access claude-5-sonnet free through Vercel's $5 monthly credit.

Updated 8/30/20261 code examples

About the Model

为什么选择 Claude 5 Sonnet?

Claude 5 Sonnet 是 Anthropic 在 2026 年发布的第 5 代核心旗舰,在自主软件工程、架构重构与多步逻辑自验证方面处于全球领先地位。

  • 自主软件工程终结者:在全自动 Bug 修复、跨仓库依赖分析与大型代码库重构中展现出惊人的准确率。
  • 内生逻辑自验证:在生成复杂解答与代码前内置深度自博弈与逻辑审查,输出极其稳健。
  • 细腻自然的拟人表达:文字表现力与指令遵循能力极强,既是编程大师也是创意写作专家。

How to Access for Free (via Vercel AI Gateway)

限频免费试用说明

Vercel 为每个团队(包括免费的 Hobby 个人计划)每月提供了价值 $5 的系统层 AI 额度。只要您当月的调用未超出 $5 的等值 token 消耗,即可通过 Vercel AI SDK 免费试用此模型。

Try it in your browser

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Code Examples

javascript
import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';

const { text } = await generateText({
  model: anthropic('claude-5-sonnet'),
  prompt: 'Hello AI!',
});
console.log(text);

Community Feedback

Comments are tied to your GitHub account — sign in to join the discussion.