Models
Claude Opus 4.8
Model Overview
Direct supply
ChatStreamingVisionToolsThinkingCacheInput Modalities
Text, Image
Output Modalities
Text
Recommended for
Ideal for chat use cases that need vision, tool use, and thinking, with streaming and caching support.
Capabilities
Chat
Multi-turn conversational completions
Streaming
Tokens are delivered incrementally as they are generated
Vision
Accepts image input alongside text
Tool Use
Can call functions/tools defined in the request
Thinking
Produces an extended internal reasoning trace before the final answer
Prompt Caching
Reuses previously processed prompt prefixes at a lower rate
Supported Modes
Chat
Model Pricing
15% off
Pay-as-you-go
Pricing
What Claude Opus 4.8 charges for each operation
Cache write · Cache retention: 1h$10.00$8.50per 1M tokens
Cache write · Cache retention: 5m$6.25$5.3125per 1M tokens
Cache read$0.50$0.425per 1M tokens
Input$5.00$4.25per 1M tokens
Output$25.00$21.25per 1M tokens
Thinking$25.00$21.25per 1M tokens
Indicative pricing — final cost is confirmed at request time.
Context & Limits
- Context Window
- 1,000,000 tokens
- Max Output
- 128,000 tokens
Response speed
Data is being collected
API Code Example
OpenAI Compatible
import openai
client = openai.OpenAI(
base_url="https://api.modelsite.ai/v1",
api_key="sk-ms-...",
)
response = client.chat.completions.create(
model="claude-opus-4-8",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)