Claude

Anthropic: Claude Opus 4.8

Chat
anthropic/claude-opus-4.8

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
支持的协议:OpenAIopenaiAnthropicanthropic
可用供应商:BedrockBedrock
能力:视觉函数调用推理提示缓存PDF 输入

定价

类型价格
输入 Token$5/M
输出 Token$25/M
缓存读取$0.5/M
缓存写入(5 分钟)$6.25/M
缓存写入(1 小时)$10/M
网络搜索$0.015/R

代码示例

import anthropic
client = 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。按量计费,无月费。