今回の記事ではAnthropicのAPIキーの取得方法を解説します。
Anthropic APIキーを取得することで、Claude 3.5などAnthropicが提供する高度なAIモデルを自身のアプリケーションに統合し、さまざまなAI機能を活用できます。
目次
Anthropic APIとは?
AnthropicのAPIは、Anthropicが提供する高度なAIモデル(Claudeファミリー)へのプログラム的なアクセスを提供するサービスです。
このAPIを使用することで、開発者や企業はAnthropicの技術を自分のアプリケーションに統合し、テキスト生成やデータ分析、自然言語処理などのさまざまなAI機能を活用できます。
Anthropic APIの種類
- テキストとコードの生成:
テキストの要約、質問への回答、データの抽出、テキストの翻訳、コードの説明と生成を行います。
- ビジョン:
視覚的な入力を処理・分析し、画像からテキストとコードを生成します。
APIキーの費用
Anthropic APIは、使用するモデルに応じて異なる価格設定がされています。
以下に代表的なモデルとその価格です。
モデル | 説明 | コンテキストウィンドウ | 入力コスト | プロンプトキャッシング書き込み | プロンプトキャッシング読み込み | 出力コスト |
---|---|---|---|---|---|---|
Claude 3.5 Sonnet | これまでで最も知能の高いモデル | 200K | $3 / MTok | $3.75 / MTok | $0.30 / MTok | $15 / MTok |
Claude 3.5 Haiku | 最速かつ最もコスト効率の高いモデル | 200K | $0.25 / MTok | $0.30 / MTok | $0.03 / MTok | $1.25 / MTok |
Claude 3 Opus | 複雑なタスク向けの強力なモデル | 200K | $15 / MTok | $18.75 / MTok | $1.50 / MTok | $75 / MTok |
あわせて読みたい


Pricing
Anthropic is an AI safety and research company that's working to build reliable, interpretable, and steerable AI systems.
APIキーの発行方法
最初に次のURLにアクセスします。
あわせて読みたい
Anthropic Console
Build with the Anthropic API, an AI assistant from Anthropic
メールアドレスまたはGoogleアカウントを利用することができます。

ログイン後、事前に残高に入金する必要があります。
「Setting」から「Billing」を選択して、クレジットカード情報を入力して残高に入金してください。

次にAPIキーを発行します。
「Setting」から「API Keys」を選択して、「+ Create Key」をクリックして、Key名とWorkspaceを選択してください。


APIキーが発行されます。
厳重に保管してください。

以上でAPIキーの発行手順になります。