新我们如何抓出挂错模型的卖家,并在发生时为你退款。
UberLLM
Anthropic 标志

如何在OpenCode中使用Claude Opus 5.5?

anthropic/claude-opus-5.5

OpenCode 通过 UberLLM 的 OpenAI 兼容聊天地址访问Claude Opus 5.5。在~/.config/opencode/opencode.json中,添加一个名为uberllm的提供商,该提供商使用@ai-sdk/openai-compatible包并将baseURL设置为https://api.uberllm.dev/v1,在其模型下添加anthropic/claude-opus-5.5,将您的 UberLLM 密钥放入UBERLLM_API_KEY环境变量中,然后使用/models选择uberllm/anthropic/claude-opus-5.5。 limit这些数字是Claude Opus 5.5的上下文大小和最大回复;OpenCode 使用它们来判断何时压缩长时间会话。

json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "uberllm": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "UberLLM",
      "options": {
        "baseURL": "https://api.uberllm.dev/v1",
        "apiKey": "{env:UBERLLM_API_KEY}"
      },
      "models": {
        "anthropic/claude-opus-5.5": {
          "name": "Claude Opus 5.5",
          "limit": {
            "context": 1000000,
            "output": 128000
          }
        }
      }
    }
  },
  "model": "uberllm/anthropic/claude-opus-5.5"
}

OpenCode 调用:OpenAI 聊天补全 https://api.uberllm.dev/v1/chat/completions · 完整的OpenCode指南

把 ull_your_key 换成你的 UberLLM API 密钥。一个密钥可用于所有工具和所有模型。

通过 API,Claude Opus 5.5 在三个地址上响应,使用相同的 UberLLM 密钥和模型 ID anthropic/claude-opus-5.5:位于https://api.uberllm.dev/v1/chat/completions的 OpenAI 聊天补全、位于https://api.uberllm.dev/v1/responses的 OpenAI Responses API 以及位于https://api.uberllm.dev/v1/messages的 Anthropic Messages API。

Claude Opus 5.5 API 的费用是多少?

截至2026年11月19日,通过 UberLLM,Claude Opus 5.5 每百万输入 token 成本为 $0.5988,每百万输出 token 成本为 $2.994,比其标价 $4.00 和 $20.00 低 85%。市场上只有 61 家供应商能够提供此服务。在过去的 7 天里,其 3,407 次流式请求中有一半在 3.7 秒内获得了第一个 token,典型 prompt 为 81,273 个 token。它支持高达 1,000,000 个 token 的上下文。UberLLM 不对这些价格收取额外费用,失败的请求不予计费。

价格更新于 UTC 09:00。

在其他工具中使用 Claude Opus 5.5

OpenCode 中的其他模型