> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Opus 4.7

> Anthropic's flagship reasoning + agentic tier. 1M context, vision, prompt caching, code execution. Best for hardest tasks.

## Overview

Anthropic's flagship reasoning + agentic tier. 1M context, vision, prompt caching, code execution. Best for hardest tasks.

## Specs

| Field | Value |
| - | - |
| Model ID | `claude-opus-4-7` |
| Best for | Hardest reasoning, complex agentic loops, long-horizon coding |
| Context window | 1M |
| Max output tokens | 128K |
| Input modalities | Text, Image |
| Output modalities | Text |
| Tool calling | Yes |
| Structured outputs | Yes |
| Prompt caching | Yes |
| Vision | Yes |
| Reasoning | Yes |
| Speed | Medium |
| Cost band | Premium |
| Release stage | Stable |

## Pricing

| | Per 1M tokens |
| - | :-: |
| Input | \$6.75 |
| Output | \$33.75 |

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.chat.completions.create(
    model="claude-opus-4-7",
    messages=[{"role": "user", "content": "..."}],
    tools=[...],  # function calling supported
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=chat&tools=true&quality_tier=frontier-open"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.