anthropic/claude-sonnet-5
Anthropic's most agentic Sonnet yet. Plans, uses tools, and runs autonomously at a level that recently required larger, pricier models โ approaching Opus 4.8 on reasoning, coding, and tool use, at a fraction of the cost. 1M-token context window with native prompt caching. The new default for most agentic and production workloads.
์ถ์ฒ: official_x0.3 ยท 2026-06-30 ํ์ธ
์บ์ ์ฝ๊ธฐ $0.09/M ยท ์บ์ ์ฐ๊ธฐ $1.125/M
API ํธ์ถ ์ ์ด๋ค ID๋ ์ฌ์ฉํ ์ ์์ต๋๋ค.
anthropic/claude-sonnet-5ONEHOP_KEY ์๋ฆฌ ํ์์๋ฅผ ๊ทํ์ API key๋ก ๊ต์ฒดํ์ธ์. ์์ฑํ๊ธฐ โ
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-5",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)์ต๊ทผ 30์ผ๊ฐ ์์ฒญ 16,173๊ฑด