Claude Opus 4.7
claude-opus-4-7
| Context window | 1 m |
|---|---|
| Input (CNY / Million Tokens) | ¥18 |
| Output (CNY / million tokens) | ¥75 |
| Cache read (CNY / million tokens) | ¥0 |
| Cache write (1h, yuan / million tokens) | ¥22 |
Prices by channel
| Channel | Input | Output | Read Cache | Cache hit | Cache Write (1h) | Cache write (5m) | Multiplier |
|---|---|---|---|---|---|---|---|
| claude.Kiro | ¥18 | ¥75 | ¥0 | ¥1.2 | ¥22 | ¥15 | 1.00x |
| AWS 接入 | ¥30 | ¥150 | ¥0 | ¥2.1 | ¥38 | ¥28 | 1.00x |
| default-1 | ¥30 | ¥150 | ¥0 | ¥2.1 | ¥38 | ¥28 | 1.00x |
Call example
Compatible with the Anthropic Messages native protocol; just fill in your API Key to get started.
curl https://<你的中转接口域名>/v1/messages \
-H "x-api-key: sk-你的Key" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-opus-4-7",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "你好,请简单介绍一下自己" }
]
}'{
"id": "msg_01abcDEF...",
"type": "message",
"role": "assistant",
"model": "claude-opus-4-7",
"content": [
{ "type": "text", "text": "你好!我是 Claude Opus 4.7,很高兴为你服务。\n\n有什么可以帮你?" }
],
"stop_reason": "end_turn",
"usage": {
"input_tokens": 303,
"output_tokens": 73
}
}Tool Integration Tutorial
Use this model with your usual AI coding tool, billed per token.
A guide to integrating Anthropic's official terminal coding agent, Claude Code: installation, setting up ANTHROPIC_BASE_URL and API keys, model switching, and troubleshooting common issues.
Use local reverse proxies like cc-switch or claude-code-proxy to forward Claude Code (Anthropic) and Codex (OpenAI) through this gateway, enabling unified billing with a single API key.
A tutorial on integrating the VS Code open-source coding agent Cline: how to create an sk- key, configure the API Provider and Base URL, and connect to Claude, GPT, or Gemini models.
Configure custom API Keys and Base URLs in Cursor's Settings → Models to use your own keys for accessing Claude, GPT, and Gemini models.
