# Anthropic Claude Opus 4.8 API

> Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token context window. It is suited for highly autonomous agents, long-horizon agentic work, knowledge work, and memory-driven tasks where coherence over extended sessions matters. It is particularly strong on multi-step reasoning, complex coding, and end-to-end project orchestration - large codebases, multi-stage debugging, and long-running asynchronous agent pipelines. Beyond coding, it handles knowledge work such as drafting documents, building presentations, and analyzing data, maintaining quality across very long outputs.

Source: https://www.sandbase.ai/models/anthropic/claude-opus-4.8
API reference: https://www.sandbase.ai/models/anthropic/claude-opus-4.8/docs

## Facts

- Provider: Anthropic
- Type: Language model
- Model ID: `anthropic/claude-opus-4.8`
- Price: $5 per 1M input tokens, $25 per 1M output tokens
- Context window: 1M tokens, up to 128K output tokens
- Capabilities: chat, vision, reasoning, structured output, function calling
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Chat Completions API: `POST https://api.sandbase.ai/v1/chat/completions`
- Messages API: `POST https://api.sandbase.ai/v1/messages`

```bash
curl -X POST https://api.sandbase.ai/v1/chat/completions \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-opus-4.8",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 2048
}'
```

## FAQ

### How do I call Anthropic Claude Opus 4.8 through SandBase?

Create a SandBase API key, then send requests with the model ID "anthropic/claude-opus-4.8" to Chat Completions API (/v1/chat/completions) or Messages API (/v1/messages) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### How much does Anthropic Claude Opus 4.8 cost?

$5 per 1M input tokens and $25 per 1M output tokens, billed per request from your SandBase balance. Discounts, when available, are shown in the pricing on this page.

### What is the context window of Anthropic Claude Opus 4.8?

1M tokens of context, with up to 128K output tokens per response.

### How does Anthropic Claude Opus 4.8 score on benchmarks?

Anthropic Claude Opus 4.8 scores 41.8 on the Artificial Analysis Intelligence Index (v4.3), ranking #17 of 83 models on SandBase; Coding Index 74.3, Agentic Index 41.9. Source: Artificial Analysis, measured as Claude Opus 4.8 (Max).

### Which features does Anthropic Claude Opus 4.8 support?

Anthropic Claude Opus 4.8 supports vision (image input), reasoning, function calling, structured output. See Specifications above for the full list.

### Do I need a separate Anthropic account?

No. One SandBase API key and balance gives you access to Anthropic Claude Opus 4.8 and the other models in the catalog; you do not need to sign up with Anthropic separately.
