Seedance 2.0 GIẢM 20% | Tạo trong Video Generator →
anthropic
anthropic/claude-opus-4.8

anthropic/claude-opus-4.8

1,000,000 context · $5.00/M input tokens · $25.00/M output tokens

Claude Opus 4.8 is Anthropic’s most capable generally available Opus model, built for complex reasoning, long-horizon agentic coding, and high-autonomy professional workflows. It supports text, image, and file inputs with text output, a 1M-token context window, up to 128K output tokens, adaptive thinking, tool use, and structured outputs. It is especially strong for advanced coding, browser and computer-use agents, enterprise knowledge work, financial and legal analysis, and multi-step tasks that require sustained judgment and reliability.

Pricing

Pay-per-use

No upfront costs, pay only for what you use

Input$5.00 / M Tokens
Output$25.00 / M Tokens
Cache Read$0.50 / M Tokens
Cache Write$6.25 / M Tokens

Try the model

anthropic/claude-opus-4.8
Online
anthropic
Hi! I am a helpful AI assistant. What can I do for you?

API Usage

Use the following code examples to integrate with our API:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="anthropic/claude-opus-4.8",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

Model Introduction

Anthropic: Claude Opus 4.8

Claude Opus 4.8 is Anthropic’s most capable generally available Opus model, built for complex reasoning, long-horizon agentic coding, and high-autonomy professional workflows. It supports text, image, and file inputs with text output, adaptive thinking, tool use, and a 1M-token context window.


Why It Looks Great

  • Anthropic’s most capable generally available Opus model
  • 1M-token context window for large codebases, long documents, and extended multi-turn workflows
  • Up to 128K output tokens for long-form reasoning, coding, analysis, and structured generation
  • Strong fit for professional software engineering, complex agentic workflows, and enterprise knowledge work
  • Improved long-horizon coding reliability, tool triggering, and long-context quality
  • Adaptive thinking support for balancing speed, cost, and reasoning depth
  • Vision and file input support for screenshots, diagrams, PDFs, documents, and multimodal analysis
  • Function calling and tool-use support for agentic application workflows
  • Structured output support for JSON responses and schema-constrained generation

Key Features

  • Context Window: 1,000,000 tokens
  • Max Input: 872,000 tokens
  • Max Output: 128,000 tokens
  • Input: Text, Image, File
  • Output: Text
  • Vision: Supported
  • File Input: Supported
  • Function Calling: Supported
  • Structured Outputs: Supported
  • Adaptive Thinking: Supported
  • Image Generation: Not listed
  • Audio Input: Not listed
  • Supported Parameters: include_reasoning, max_tokens, reasoning, response_format, stop, structured_outputs, tool_choice, tools, verbosity

Specifications

SpecificationValue
Provideranthropic
Model TypeChat Completions model
Architecturetext+image+file->text
Context Window1,000,000 tokens
Max Input872,000 tokens
Max Output128,000 tokens
InputText, Image, File
OutputText
VisionSupported
File InputSupported
Function CallingSupported
Structured OutputsSupported
Adaptive ThinkingSupported
ReleaseMay 28, 2026

How to Use

  1. Write your prompt - describe the task, provide context, and specify the desired output format.
  2. Submit - the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1
API Endpoint: chat/completions
Model ID: anthropic/claude-opus-4.8


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="anthropic/claude-opus-4.8",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "anthropic/claude-opus-4.8",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: anthropic/claude-opus-4.8
  • Provider: anthropic
  • Best suited for long-horizon coding, complex reasoning, enterprise knowledge work, legal and financial analysis, browser/computer-use agents, and high-autonomy tool workflows

Info

Provideranthropic
Typellm

Supported Functionality

Input
TextImage
Output
Text
Context1,000,000
Max Output128,000
Vision✓ Supported
Function Calling✓ Supported

API Access Guide

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
Model IDanthropic/claude-opus-4.8

Claude Opus 4.8 API

anthropic/claude-opus-4.8

Claude Opus 4.8 is Anthropic’s most capable generally available Opus model, built for complex reasoning, long-horizon agentic coding, and high-autonomy professional workflows. It supports text, image, and file inputs with text output, a 1M-token context window, up to 128K output tokens, adaptive thinking, tool use, and structured outputs. It is especially strong for advanced coding, browser and computer-use agents, enterprise knowledge work, financial and legal analysis, and multi-step tasks that require sustained judgment and reliability.

Input

$5 /M

Output

$25 /M

Context

1000K

Max Output

128K

Vision

Supported

Tool Use

Supported

Try Claude Opus 4.8 on WaveSpeedAI

Access Claude Opus 4.8 through our unified API — OpenAI-compatible, no cold starts, transparent pricing.

Frequently Asked Questions about Claude Opus 4.8

How much does Claude Opus 4.8 cost via the API?+

Pricing on WaveSpeedAI: $5.00 per million input tokens and $25.00 per million output tokens. Prompt caching and batch processing are billed separately and reduce effective cost on long, repetitive workloads.

What is the context window of Claude Opus 4.8?+

Claude Opus 4.8 supports up to 1000K tokens of context with up to 128K tokens of output per request.

Is Claude Opus 4.8 OpenAI-compatible?+

Yes. WaveSpeedAI exposes Claude Opus 4.8 through an OpenAI-compatible endpoint at https://llm.wavespeed.ai/v1. Point the official OpenAI SDK at this base URL with your WaveSpeedAI API key — no other code changes required.

How do I get started with Claude Opus 4.8?+

Sign in to WaveSpeedAI, create an API key in Access Keys, then send a request to https://llm.wavespeed.ai/v1/chat/completions with model id set to the value shown above. New accounts receive free credits to evaluate Claude Opus 4.8 before paying per token.

Related LLM APIs