Claude Opus 4.6 is a high-capability Anthropic model for complex software engineering and long-running professional workflows. It is well suited to large-codebase analysis, cross-file refactoring, multi-stage debugging, and technical planning that requires sustained reasoning and consistent context across extended work. Through HaoAI, you can call Claude Opus 4.6 with the model ID anthropic/claude-opus-4.6 using either an OpenAI-compatible or Anthropic-compatible API. Current context limits, supported capabilities, and usage rates are shown in the live specifications and pricing table on this page.
Pricing
Code Examples
import anthropic
client = anthropic.Anthropic(
base_url="https://api.hao.ai/anthropic",
api_key="YOUR_HAOAI_API_KEY",
)
message = client.messages.create(
model="anthropic/claude-opus-4.6",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(message.content[0].text)Related Models
Frequently asked questions
HaoAI bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.