anthropic/claude-sonnet-4.6
The balanced default of the Claude lineup. Strong reasoning, coding, and tool use at a fraction of Opus cost, with a 1M-token context window at standard pricing. The go-to for most production workloads.
المصدر: official_x0.3 · تم التحقق في 2026-06-01
قراءة الكاش $0.09/M · كتابة الكاش $1.125/M
يمكنك استخدام أي من المعرّفَين لاستدعاء هذا النموذج.
anthropic/claude-sonnet-4.6claude-sonnet-4-6You can use these names directly in the request model field.
استبدل placeholder الـ ONEHOP_KEY بمفتاح API الخاص بك. إنشاء مفتاح →
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.onehop.ai/anthropic",
api_key="<ONEHOP_KEY>",
)
message = client.messages.create(
model="anthropic/claude-sonnet-4.6",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)٥٬٠٣٣ طلب · آخر 30 يوماً