Claude

Anthropic: Claude Opus 4.8Chat

anthropic/claude-opus-4.8

Claude Opus 4.8 is an advanced Claude Opus model for demanding reasoning, structured outputs, document work, and complex software engineering. It provides a 1M-token context window and up to 128K output tokens. Its current HaoAI catalog capabilities include vision, function calling, reasoning, prompt caching, PDF input, structured outputs. Use model ID anthropic/claude-opus-4.8 through HaoAI's OpenAI-compatible and Anthropic-compatible APIs.

1M context window
128K max output tokens
Released: 2026-05-28
Protocols:OpenAIAnthropic
Capabilities:VisionFunction CallingReasoningPrompt CachingPDF Input

Pricing

PriceRate 0.2x
HaoAI
Official
Input
$1/M
$5/M
Output
$5/M
$25/M
Cache read
$0.1/M
$0.5/M
Cache creation
$1.25/M
$6.25/M
Cache creation 5m
$1.25/M
$6.25/M
Cache creation 1h
$2/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-4.8",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Hello!"}
    ],
)

print(message.content[0].text)

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.