Anthropic
用一个 key 调用 Claude API——无需 Anthropic 账号。
通过 JJAPI 的 OpenAI 兼容接口调用 claude-3-5-sonnet、claude-3-5-haiku、claude-3-opus。不限地区、不限 SDK,额度终身有效。
最新模型 截至 2026-05-23
查看全部模型 →claude-opus-4-7 flagship Anthropic's newest top-end model. 1M-token context, adaptive thinking, the strongest tool-use accuracy in the lineup.
claude-sonnet-4-6 balanced Best price-to-performance Claude. 1M-token window, full tool-use, extended thinking — for daily production traffic.
claude-opus-4-6 flagship Prior flagship. Still excellent for long-context agentic work if you don't need 4.7's adaptive thinking.
为什么用 JJAPI 调这家 API
不需要 Anthropic 账号
Anthropic 要求电话验证且对部分地区不开放。通过 JJAPI 注册一次,全球可用。
OpenAI 兼容的请求格式
用 OpenAI SDK 改 BaseURL 即可调 Claude,请求和响应都已规范化为 OpenAI 格式。
原生 prompt 缓存透传
我们透明转发 Claude 的 prompt cache 头,长系统提示按缓存价计费。
Anthropic 5xx 自动切区域
Anthropic 单区域故障时,请求自动路由到健康区域。
from openai import OpenAI
client = OpenAI(
base_url="https://api.jjapi.net/v1",
api_key="sk-jjapi-...",
)
r = client.chat.completions.create(
model="claude-opus-4-7", # current as of 2026-05-23
messages=[{"role": "user", "content": "Hi"}],
)
print(r.choices[0].message.content) 常见问题
在 JJAPI 上调 Claude 贵不贵?
我们透传 Anthropic 的 token 单价加一层很薄的服务费,再加上套餐的额度奖励,实际成本通常低于 Anthropic 公开价。
支持 tool use / function calling 吗?
支持。OpenAI 格式的 tool call 会被自动转译到 Claude 原生格式再转回来。Vision 和图片输入也支持。
能用 Claude Code / claude-code-sdk 吗?
可以。设置 ANTHROPIC_BASE_URL=https://api.jjapi.net 和 ANTHROPIC_API_KEY=sk-jjapi-... 后官方 SDK 原样可用。