# Anthropic Claude Opus 4.7 API

> Opus 4.7 is the next generation of Anthropic's Opus family, built for long-running, asynchronous agents. Building on the coding and agentic strengths of Opus 4.6, it delivers stronger performance on complex, multi-step tasks and more reliable agentic execution across extended workflows. It is especially effective for asynchronous agent pipelines where tasks unfold over time - large codebases, multi-stage debugging, and end-to-end project orchestration. Beyond coding, Opus 4.7 brings improved knowledge work capabilities - from drafting documents and building presentations to analyzing data. It maintains coherence across very long outputs and extended sessions, making it a strong default for tasks that require persistence, judgment, and follow-through. For users upgrading from earlier Opus versions, see our [official migration guide here](https://openrouter.ai/docs/guides/evaluate-and-optimize/model-migrations/claude-4-7)

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

## Facts

- Provider: Anthropic
- Type: Language model
- Model ID: `anthropic/claude-opus-4.7`
- 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.7",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 2048
}'
```

## FAQ

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

Create a SandBase API key, then send requests with the model ID "anthropic/claude-opus-4.7" 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.7 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.7?

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

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

Anthropic Claude Opus 4.7 scores 40.7 on the Artificial Analysis Intelligence Index (v4.3), ranking #20 of 83 models on SandBase; Coding Index 73.6, Agentic Index 38.6. Source: Artificial Analysis, measured as Claude Opus 4.7 (Max).

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

Anthropic Claude Opus 4.7 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.7 and the other models in the catalog; you do not need to sign up with Anthropic separately.
