Claude Opus 5 is Anthropic's flagship model for demanding reasoning, advanced coding, visual analysis, and long-horizon agent workflows. It provides a 1M-token context window and up to 128K output tokens, supports text and image input, structured outputs, tool use, prompt caching, and Claude Code fast mode. Use model ID anthropic/claude-opus-5 through HaoAI's OpenAI-compatible or Anthropic-compatible API.
1M context window
128K max output tokens
Released: 2026-07-24
Protocols:OpenAIAnthropic
Capabilities:VisionFunction CallingReasoningPrompt CachingPDF InputWeb Search
Pricing
PriceRate 0.15x
HaoAI
Official
Input
$0.75/M
$5/M
Output
$3.75/M
$25/M
Cache read
$0.075/M
$0.5/M
Cache creation
$0.938/M
$6.25/M
Cache creation 5m
$0.938/M
$6.25/M
Cache creation 1h
$1.5/M
$10/M
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-5",
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.