Free Claude 3.5 Sonnet API
更新于 2026/7/2
Industry leader for coding tasks and nuanced reasoning.
关于该模型
Why choose Claude 3.5 Sonnet?
Claude 3.5 Sonnet stands out as the industry leader for coding tasks. It natively supports computer use capabilities, excels at understanding large codebases, and provides incredibly nuanced reasoning in its outputs.
如何调用 Claude 3.5 Sonnet
curl
curl https://ai-gateway.vercel.sh/v1/chat/completions \
-H "Authorization: Bearer $AI_GATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"anthropic/claude-3.5-sonnet","messages":[{"role":"user","content":"Refactor this function into smaller pure functions."}]}'python
from openai import OpenAI
client = OpenAI(base_url="https://ai-gateway.vercel.sh/v1", api_key="AI_GATEWAY_API_KEY")
response = client.chat.completions.create(
model="anthropic/claude-3.5-sonnet",
messages=[{"role": "user", "content": "Refactor this function into smaller pure functions."}],
)
print(response.choices[0].message.content)javascript
import { generateText } from "ai";
const { text } = await generateText({
model: "anthropic/claude-3.5-sonnet",
prompt: "Refactor this function into smaller pure functions.",
});
console.log(text);提供方详情
以下平台通过免费层、试用额度或每日配额提供 Claude 3.5 Sonnet 的免费访问。
| 供应商 | 上下文窗口 | 免费配额 | 需绑卡 | 评分 | 操作 |
|---|---|---|---|---|---|
| Vercel AI Gateway | 200K | $5/月 | 否 | Details |
常见问题
Claude 3.5 Sonnet 可以免费使用吗?
可以。Claude 3.5 Sonnet 目前可通过下方列出的 1 个提供方免费使用,无需付费。
有哪些速率限制和额度?
免费额度因提供方而异 —— Vercel AI Gateway: 每月额度。
如何获取 Claude 3.5 Sonnet 的免费 API key?
在 Vercel AI Gateway 注册后,从控制台创建 API key;具体步骤见上方提供方详情。
哪些提供方免费提供 Claude 3.5 Sonnet?
Claude 3.5 Sonnet 目前可通过以下提供方免费使用:Vercel AI Gateway。
知道 Claude 3.5 Sonnet 的其他免费渠道?
分享您知道的免费访问方式,帮助整个社区。
社区反馈
评论与你的 GitHub 账号绑定,登录后即可参与讨论。