Anthropic: Claude Sonnet 5
Chatanthropic/claude-sonnet-5Anthropic Claude Sonnet 5 — 2026-07-01 发布的 Sonnet 系旗舰, 1M 上下文, 支持 adaptive thinking / vision / prompt caching / tools。走标准 Bedrock Converse。
コンテキストウィンドウ
1M
最大出力トークン
128K
リリース日
2026-07-01
機能
VisionFunction Calling推論プロンプトキャッシュPDF入力
利用可能なプロバイダー
Bedrock
対応プロトコル
openaianthropic
Providers
Bedrock
入力トークン
$2/M
出力トークン
$10/M
キャッシュ読込
$0.2/M
キャッシュ書込(5分)
$2.5/M
キャッシュ書込(1時間)
$4/M
Web検索
$0.015/R
Protocols
openai
/v1/chat/completions/v1/responsesanthropic
コード例
import anthropicclient = anthropic.Anthropic(base_url="https://api.ofox.ai/anthropic",api_key="YOUR_OFOX_API_KEY",)message = client.messages.create(model="anthropic/claude-sonnet-5",max_tokens=1024,messages=[{"role": "user", "content": "Hello!"}],)print(message.content[0].text)
関連モデル
よくある質問
Ofox.aiでのAnthropic: Claude Sonnet 5の料金は、入力100万トークンあたり$2/M、出力100万トークンあたり$10/Mです。従量課金制、月額料金なし。
Anthropic: Claude Sonnet 5は1Mトークンのコンテキストウィンドウと最大128Kトークンの出力に対応。大規模ドキュメントの処理や長い会話の維持が可能です。
ベースURLをhttps://api.ofox.ai/v1に設定し、Ofox APIキーを使用するだけ。OpenAI互換APIなので、既存コードのベースURLとAPIキーを変更するだけです。
Anthropic: Claude Sonnet 5は以下の機能に対応:Vision, Function Calling, 推論, プロンプトキャッシュ, PDF入力。Ofox.ai統合APIですべての機能にアクセスできます。