Anthropic

Claude Opus 4.5 API

Anthropicclaude-opus-4.5コンテキスト 200KAnthropic Messages APIOpenAI Chat Completions
あなたのアプリClaude CodeCodex CLISDKlovely1 keyClaude/v1/messagesclaude-opus-4.5claude-opus-5.5claude-sonnet-5.5GPT/v1/responsesgpt-6.1-solgpt-6-astragpt-5.6-terraGemini/v1betagemini-3.1-progemini-3.8-flashgemini-3-flash
入力
$5.00
USD / 100万トークン
出力
$25.00
USD / 100万トークン
キャッシュ読み取り
$0.50
USD / 100万トークン
キャッシュ書き込み
$6.25
USD / 100万トークン

AI エージェントに任せる

このプロンプトを Claude Code、Cursor、Codex などのコーディングエージェントに貼り付けてください。ドキュメントの場所と API キーの使い方をエージェントに伝えます。

Integrate the model `claude-opus-4.5` from Lovely Router into this project through the native Anthropic Messages API.

- Docs (read first): https://lovelyrouter.com/docs/models/anthropic.md
- Use the official Anthropic SDK and only change the base URL to https://lovelyrouter.com (or set ANTHROPIC_BASE_URL=https://lovelyrouter.com). Endpoints: POST https://lovelyrouter.com/v1/messages and /v1/messages/count_tokens, unchanged from Anthropic, so Anthropic's docs are the reference for every parameter. `Authorization: Bearer` works too.
- Model id: `claude-opus-4.5`. GET https://lovelyrouter.com/v1/models lists every model with its price.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `x-api-key: $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.

My task: <describe what you want to build or get>

1 リクエストの料金

入力 10,000 + 出力 1,000 トークン:$0.075
うち入力 9,000 トークンがキャッシュの場合:$0.035

プロンプトキャッシュの仕組み

可用性(直近 24 時間)

● 正常

リアルタイムのステータス

チャネルグループ別の料金

チャネルグループ入力出力キャッシュ読み取り
Claude · Value
Pooled capacity
$5.00$25.00$0.50

チャネルグループとは

Anthropic Messages API

curl https://lovelyrouter.com/v1/messages \
  -H "x-api-key: $LOVELY_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model": "claude-opus-4.5", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'

よくある質問

Claude Opus 4.5 の 100 万トークンあたりの料金は?

最も安いチャネルグループで、入力 100 万トークンあたり $5.00、出力 100 万トークンあたり $25.00 です。入力 10,000・出力 1,000 トークンのリクエストは約 $0.075 です。

Claude Opus 4.5 はプロンプトキャッシュに対応していますか?

はい。キャッシュ読み取りは 100 万トークンあたり $0.50 なので、同じリクエストで入力 9,000 トークンをキャッシュから読むと約 $0.035 です。Lovely Router は同じ会話を同じチャネルに保ち、キャッシュを有効に保ちます。

Claude Opus 4.5 のコンテキストウィンドウは?

200K トークンです。

Claude Opus 4.5 はどの API 形式を使いますか?

Anthropic Messages API, OpenAI Chat Completions。お使いの公式 SDK のベース URL を Lovely Router に変え、Lovely Router の API キーを使ってください。

サブスクリプションやレート制限はありますか?

サブスクリプションはありません。プリペイド残高をチャージしてトークン単位で支払います。API キーごとに毎分リクエスト数と同時実行数の上限を設定できます。

そのほかの Anthropic モデル