← すべてのモデル

claude-sonnet-5

· テキスト

claude-sonnet-5

料金

入力/出力Price
入力$6.75 / 100万トークン
出力$6.75 / 100万トークン

呼び出し方法

from openai import OpenAI
client = OpenAI(base_url="https://getmodel.ai/v1", api_key="$GETMODEL_API_KEY")
resp = client.chat.completions.create(
    model="claude-sonnet-5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

詳細

プロバイダー
タイプテキスト
エンドポイントopenai / anthropic