处理中…正在保护此关键操作,请稍候
模型短名单

适合 Agent 与代码审查的编码模型 API

按上下文、工具、JSON、延迟、价格和在生产中的角色比较编码模型 API。

这份候选名单适合什么用途: 编码模型

补全 20 行函数的模型和读半个 monorepo 再调工具的模型,根本不是同一类产品。输出贵,工具调用会以无聊的方式失败,长上下文也烧钱。用这页先定主编码模型和更便宜的兜底,再定预算,别让 Agent 无人看管时跑飞。

来源依据: NextModel 用例分类以及可用时的 OpenRouter 支持参数元数据。 · 更新日期 2026-07-01

步骤

如何使用这份名单(编码模型)

  1. 对照任务选模型 先看「编码模型」短名单是否覆盖你的真实任务,不要只比标价。
  2. 用同一批提示词试跑 挑 2–3 个候选,用业务提示词对比质量与输出长度。
  3. 估算月费 用价格页或成本计算器,按预计 token 量估算月度花费。
  4. 定兜底与预算 定主模型、兜底模型,设项目预算后再接生产流量。

匹配分

推荐候选 编码模型

先从候选名单开始,再用真实提示词测试,并在接入生产路由前比较月度成本。

AnthropicCatalog

Claude Haiku 4.5 is Anthropic’s fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of larger Claude models. Matching Claude Sonnet 4’s performance...

$1 / 1M tokensInput$5 / 1M tokensOutput200kContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingJSON modeVisionLong context
Platform curatedNextModel gateway catalog (Go origin)
View details
AnthropicCatalog

Claude Opus 4.5 is Anthropic’s frontier reasoning model optimized for complex software engineering, agentic workflows, and long-horizon computer use. It offers strong multimodal capabilities, competitive performance across real-world coding and...

$5 / 1M tokensInput$25 / 1M tokensOutput200kContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingJSON modeVisionLong context
Platform curatedNextModel gateway catalog (Go origin)
View details
AnthropicCatalog

Opus 4.6 is Anthropic’s strongest model for coding and long-running professional tasks. It is built for agents that operate across entire workflows rather than single prompts, making it especially effective...

$5 / 1M tokensInput$25 / 1M tokensOutput1MContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingJSON modeVisionLong context
Platform curatedNextModel gateway catalog (Go origin)
View details
AnthropicCatalog

Claude Sonnet 4.5 is Anthropic’s most advanced Sonnet model to date, optimized for real-world agents and coding workflows. It delivers state-of-the-art performance on coding benchmarks such as SWE-bench Verified, with...

$3 / 1M tokensInput$15 / 1M tokensOutput1MContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingJSON modeVisionLong context
Platform curatedNextModel gateway catalog (Go origin)
View details

比较表

按价格、提供方、上下文、能力和来源比较这份候选名单。

缩小生产候选、建立兜底策略或比较模型经济性时用。

ModelProviderInputOutputContextCapabilitiesBest forLatencyStatusSource
Anthropic: Claude Haiku 4.5anthropic/claude-haiku-4.5Anthropic$1 / 1M tokens$5 / 1M tokens200k
StreamingTool callingJSON modeVision
image understanding, multimodal chat1000-3000msCatalogPlatform curated
Anthropic: Claude Opus 4.5anthropic/claude-opus-4.5Anthropic$5 / 1M tokens$25 / 1M tokens200k
StreamingTool callingJSON modeVision
image understanding, multimodal chat1000-3000msCatalogPlatform curated
Anthropic: Claude Opus 4.6anthropic/claude-opus-4.6Anthropic$5 / 1M tokens$25 / 1M tokens1M
StreamingTool callingJSON modeVision
image understanding, multimodal chat1000-3000msCatalogPlatform curated
Anthropic: Claude Sonnet 4.5anthropic/claude-sonnet-4.5Anthropic$3 / 1M tokens$15 / 1M tokens1M
StreamingTool callingJSON modeVision
image understanding, multimodal chat1000-3000msCatalogPlatform curated
Anthropic: Claude Sonnet 4.6anthropic/claude-sonnet-4.6Anthropic$3 / 1M tokens$15 / 1M tokens1M
StreamingTool callingJSON modeVision
image understanding, multimodal chat1000-3000msCatalogPlatform curated
FLUX.2 Flexblack-forest-labs/FLUX.2-flexBlack Forest Labs$0.2 / image
StreamingVision
image understanding, multimodal chat1000-3000msCatalogPlatform curated
FLUX.2 PROblack-forest-labs/FLUX.2-proBlack Forest Labs$0.075 / image
StreamingVision
image understanding, multimodal chat1000-3000msCatalogPlatform curated
Deepseek V3.2 CNdeepseek/deepseek-v3.2-cnDeepSeek$0.29 / 1M tokens$0.44 / 1M tokens
Streaming
Chinese Q&A, general chat1000-3000msCatalogPlatform curated

常见问题

编码模型 常见问题

什么样的模型适合编码 Agent?

工具调用稳、结构化输出靠谱、上下文够你塞的那截仓库、指令跟得住。单看 token 价没有意义。

团队应该如何控制编码 Agent 的成本?

按项目设预算,盯输出 token,简单任务走便宜模型,质量不过再升级。