市面上大量服务用 Cursor、Copilot 接口冒充官方。
我们只做一件事:把请求原封不动送达 Anthropic。
仅替换 base_url,现有代码零修改
import anthropic
client = anthropic.Anthropic(
api_key="sk-cr-your-key",
base_url="https://yuann.ai"
)
message = client.messages.create(
model="claude-opus-4-7",
max_tokens=1024,
messages=[{
"role": "user",
"content": "Hello!"
}]
)
print(message.content)
所有倍率公开,按后台配置的模型价格与分组倍率计费
| 模型 ID | 输入倍率 | 输出倍率 | 缓存读取 | 缓存写入 | 可用分组 |
|---|---|---|---|---|---|
| 正在读取后台模型定价... | |||||