Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token context window. It is suited for highly autonomous agents, long-horizon agentic work, knowledge work, and memory-driven tasks where coherence over extended sessions matters. It is particularly strong on multi-step reasoning, complex coding, and end-to-end project orchestration - large codebases, multi-stage debugging, and long-running asynchronous agent pipelines. Beyond coding, it handles knowledge work such as drafting documents, building presentations, and analyzing data, maintaining quality across very long outputs.
1M 上下文窗口
128K 最大输出 token
发布日期: 2026-05-28
支持的协议:openaianthropic
可用供应商:Bedrock
能力:视觉函数调用推理提示缓存PDF 输入
定价
| 类型 | 价格 |
|---|---|
| 输入 Token | $5/M |
| 输出 Token | $25/M |
| 缓存读取 | $0.5/M |
| 缓存写入(5 分钟) | $6.25/M |
| 缓存写入(1 小时) | $10/M |
| 网络搜索 | $0.015/R |
代码示例
import anthropicclient = anthropic.Anthropic(base_url="https://api.ofox.ai/anthropic",api_key="YOUR_OFOX_API_KEY",)message = client.messages.create(model="anthropic/claude-opus-4.8",max_tokens=1024,messages=[{"role": "user", "content": "Hello!"}],)print(message.content[0].text)
相关模型
常见问题
Anthropic: Claude Opus 4.8 在 Ofox.ai 上的价格为输入 $5/M/百万 Token,输出 $25/M/百万 Token。按量计费,无月费。
Anthropic: Claude Opus 4.8 支持 1M Token 的上下文窗口,最大输出 128K Token,可处理大型文档并维持长对话。
只需将 base URL 设置为 https://api.ofox.ai/v1,并使用你的 Ofox API Key。API 兼容 OpenAI 格式——只需更改 base URL 和 API Key 即可。
Anthropic: Claude Opus 4.8 支持以下能力:视觉, 函数调用, 推理, 提示缓存, PDF 输入。通过 Ofox.ai 统一 API 访问所有功能。