Claude Opus 4.6 现已可在 AI Gateway 上使用

1 分钟阅读
2026 年 2 月 5 日
Anthropic 最新旗舰模型 Claude Opus 4.6 现已在 AI Gateway 上可用。Opus 4.6 面向处理真实世界工作的 Agent 构建,在整个开发生命周期中表现出色。它也是首个支持扩展至 1M token 上下文窗口的 Opus 模型。
该模型引入了 adaptive thinking 这一新参数,让模型自行决定何时进行推理以及推理深度。这种方式在编程、分析和创意任务中,在保证质量的同时带来更高效率,性能可与 extended thinking 持平或更优。Opus 4.6 还可以在单次响应中交错进行 thinking 与工具调用。
要使用该模型,请将 model 设为 anthropic/claude-opus-4.6。以下示例也演示了 adaptive thinking 与 effort 参数的用法。
import { streamText } from 'ai';const result = streamText({ model: 'anthropic/claude-opus-4.6', prompt: `Trace this race condition through the event loop, identify all affected code paths, and implement a fix with proper test coverage.`, providerOptions: { anthropic: { thinking: { type: 'adaptive' }, effort: 'max', }, },});
AI Gateway 提供统一 API,用于调用模型、追踪用量与成本,并可配置重试、故障切换和性能优化,从而实现高于单一提供商的可用性。它还内置了 observability、Bring Your Own Key support 以及带自动重试的智能 provider routing。
进一步了解 AI Gateway,查看 AI Gateway 模型排行榜,或在我们的 model playground 中体验。
[
AI Gateway:按使用量追踪热门 AI 模型
AI Gateway 模型排行榜会基于通过 Gateway 的全部流量总 token 量,对一段时间内使用最多的模型进行排名,并定期更新。
查看排行榜
原文链接:https://vercel.com/changelog/claude-opus-4.6-on-ai-gateway

