Opus 4.7 is the next generation of Anthropic's Opus family, built for long-running, asynchronous age…
from openai import OpenAI
client = OpenAI(
base_url="https://api.orcarouter.ai/v1",
api_key="$ORCAROUTER_API_KEY",
)
response = client.chat.completions.create(
model="anthropic/claude-opus-4.7",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)| 輸入 / 1M tokens | $5.00 |
| 輸出 / 1M tokens | $25.00 |
| 快取讀取 / 1M | $0.500 |
| 快取寫入 / 1M | $6.25 |
| 貨幣 | USD |