
claude-opus-5Claude Opus 5 是Anthropic 最新的 Opus 档模型,相对 Opus 4.8 的提升是台阶式的,集中在深度推理、agent 编码和需要连续跑很久的长任务上 —— 多文件特性开发、大规模重构这类活儿是它最舒服的位置。上下文 100 万 token,自适应思考默认开着、没有思考预算需要你调,原生支持工具调用(function calling)。价格上,我们这边输入 $3 / 输出 $15 每 1M token,Anthropic 官方是 $5 / $25,便宜 40%;提示词缓存命中按 $0.391 每 1M token 计。两条调用路径都通:走原生 Anthropic Messages API(/v1/messages),Claude Code、Anthropic SDK 和 Cursor 直接可用;走 /v1/chat/completions 用 OpenAI SDK 也行,两边的工具调用都正常。有一个坑要先知道,不然你会以为自己的参数没生效:Opus 5 在上游把 temperature、top_p、top_k 这三个参数取消了,你传过去不会报错、而是被静默丢弃 —— 所以想控制输出的风格和随机性,请改用提示词去约束,别指望调这三个数。
View complete API reference with all parameters and examples.
Enable real-time streaming responses with Server-Sent Events.
{
"model": "claude-opus-5",
"stream": true,
"max_tokens": 1024,
"messages": [...]
}Enable Claude to use tools and call functions.
{
"model": "claude-opus-5",
"max_tokens": 1024,
"tools": [{
"name": "get_weather",
"description": "Get current weather for a location",
"input_schema": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "City name"}
},
"required": ["location"]
}
}],
"tool_choice": {"type": "auto"},
"messages": [{"role": "user", "content": "What's the weather in Tokyo?"}]
}Analyze PDF documents by sending them as base64 encoded content.
{
"model": "claude-opus-5",
"max_tokens": 1024,
"messages": [{
"role": "user",
"content": [{
"type": "document",
"source": {
"type": "base64",
"media_type": "application/pdf",
"data": "<base64_encoded_pdf>"
}
}, {
"type": "text",
"text": "Summarize this document."
}]
}]
}Get structured JSON responses that match your schema.
{
"model": "claude-opus-5",
"max_tokens": 1024,
"output_format": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"}
},
"required": ["name", "age"]
}
},
"messages": [{"role": "user", "content": "Extract info: John is 30 years old"}]
}Enable Claude to search the web for up-to-date information.
{
"model": "claude-opus-5",
"max_tokens": 1024,
"tools": [{
"type": "web_search_20250305",
"name": "web_search",
"max_uses": 5
}],
"messages": [{"role": "user", "content": "What's the latest news about AI?"}]
}| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model identifier (e.g., claude-opus-5) |
| messages | array | Yes | Array of message objects with role and content |
| max_tokens | integer | Yes | Maximum tokens in the response (1 - 128000) |
| system | string | No | System prompt to set context |
| stream | boolean | No | Enable streaming responses (SSE) |
| temperature | number | No | Sampling temperature (0.0 - 1.0) |
| top_p | number | No | Nucleus sampling threshold (0.0 - 1.0) |
| top_k | integer | No | Top-k sampling (0 - infinity) |
| stop_sequences | array | No | Sequences that stop generation |
| tools | array | No | Function calling tools definition |
| tool_choice | object | No | Tool selection strategy (auto/any/tool) |
| thinking | object | No | Enable extended thinking mode |
| output_format | object | No | Structured output with JSON schema |
View complete API reference with streaming, thinking, and more.
Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000
$3 / $15 每 1M token,官方是 $5 / $25
多文件特性开发和长线重构的最强一档
默认开启,没有思考预算要你调
提示词缓存命中按每 1M token $0.391 计
Claude Opus 5 是由 Anthropic 提供的大语言模型 API。Claude Opus 5 是Anthropic 最新的 Opus 档模型,相对 Opus 4.8 的提升是台阶式的,集中在深度推理、agent 编码和需要连续跑很久的长任务上 —— 多文件特性开发、大规模重构这类活儿是它最舒服的位置。上下文 100 万 token,自适应思考默认开着、没有思考预算需要你调,原生支持工具调用(function calling)。价格上,我们这边输入 $3 / 输出 $15 每 1M token,Anthropic 官方是 $5 / $25,便宜 40%;提示词缓存命中按 $0.391 每 1M token 计。两条调用路径都通:走原生 Anthropic Messages API(/v1/messages),Claude Code、Anthropic SDK 和 Cursor 直接可用;走 /v1/chat/completions 用 OpenAI SDK 也行,两边的工具调用都正常。有一个坑要先知道,不然你会以为自己的参数没生效:Opus 5 在上游把 temperature、top_p、top_k 这三个参数取消了,你传过去不会报错、而是被静默丢弃 —— 所以想控制输出的风格和随机性,请改用提示词去约束,别指望调这三个数。 通过 APIMODELS 平台,您可以使用统一的 API 接口调用该模型,按量计费、价格透明。当前定价:Input: $3, Output: $15 per 1M tokens。
构建智能对话系统,自动回答用户问题,提升客户服务效率。
自动撰写文章、邮件、广告文案等文本内容,提高内容产出效率。
辅助代码编写、调试和代码审查,加速软件开发流程。
理解和分析非结构化数据,提取关键信息并生成报告摘要。
Claude Opus 5 通过 APIMODELS 平台调用,当前定价:Input: $3, Output: $15 per 1M tokens。按量计费,用多少付多少。
在 APIMODELS 注册账号并获取 API Key,然后通过我们的统一 API 端点调用即可。我们提供详细的 API 文档和 cURL、Python、Node.js 代码示例。
APIMODELS 通过聚合平台提供与官方相同的 Claude Opus 5 模型。我们提供统一的 API 接口,无需分别注册各平台账号,一个 API Key 即可调用所有模型。
在 APIMODELS,Claude Opus 5 与 60+ 个模型共用一个 API Key、一个余额,所以选型只看合不合适,不存在锁定。它支持 1M Context、Agentic Coding、Adaptive Thinking、40% Off,你可以在价格和能力上把它和其它大语言模型模型对比,换模型只需改一个模型名字符串——无需新账号、无需重新对接。所有大语言模型模型与实时价格见 apimodels.app/models。
Claude Opus 5 支持:1M Context、Agentic Coding、Adaptive Thinking、40% Off。完整参数与调用方式见 APIMODELS 的 API 文档。
可以。APIMODELS 提供可直接访问的统一 API,一个 API Key 即可调用 Claude Opus 5,无需分别注册官方账号、也无需自行处理官方接口的网络访问。
我们支持 Stripe(Visa、Mastercard 等国际信用卡)和支付宝付款。充值后积分即时到账。
接入方式、地区可用性,以及和同类模型的横向对比。