anthropic/claude-opus-4.8
Anthropic's current flagship. Best-in-class complex coding (Claude Code), long-form analysis, and multi-step agents, now with a 1M-token context window. Native prompt caching cuts cost on repeated context. Pick it when output quality matters most.
Fonte: official_x0.3 · Verificado em 2026-06-01
Leitura de cache $0.15/M · Gravação de cache $1.875/M
Você pode usar qualquer ID em chamadas de API.
anthropic/claude-opus-4.8claude-opus-4-8You can use these names directly in the request model field.
Substitua o placeholder ONEHOP_KEY pela sua API key. Criar →
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.onehop.ai/anthropic",
api_key="<ONEHOP_KEY>",
)
message = client.messages.create(
model="anthropic/claude-opus-4.8",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)10.522 requisições nos últimos 30 dias