Claude Opus 4.6
API identifier: claude-opus-4-6
Prices per 1M tokens
- Input tokens
- ₽33.09
- Cached input
- ₽3.309
- Output tokens
- ₽165.44
Limits
- Context
- 1M tokens
- Max response
- 64K tokens
Capabilities
- Tool calling
- Yes
- Reasoning level
- Yes
Supported parameters
max_tokensmax_completion_tokenstemperaturetop_ppresence_penaltyfrequency_penaltyseedusertoolstool_choiceparallel_tool_callsreasoning_effortreasoning
Example request
Example calculation
A request with 2,000 input and 500 output tokens costs ₽0.1489.
Caching not included. The actual cost comes back in the API response in the usage.cost field.
shell
curl https://llm.liho.dev/v1/chat/completions \
-H "Authorization: Bearer $LIHO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4-6",
"max_tokens": 512,
"messages": [
{"role": "user", "content": "Explain what an API gateway is in two sentences."}
]
}'python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llm.liho.dev/v1",
api_key=os.environ["LIHO_API_KEY"],
timeout=900,
)
response = client.chat.completions.create(
model="claude-opus-4-6",
max_tokens=512,
messages=[{"role": "user", "content": "Explain what an API gateway is in two sentences."}],
)
print(response.choices[0].message.content)