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

# Claude

> Anthropic's Claude: long-context reasoning, writing and code.

Claude is Anthropic's family of models, known for careful reasoning, strong
writing and reliable code. Its long context window makes it a good fit for large
documents and multi-step tasks.

## Best for

* Long-context work: big documents, codebases and transcripts.
* Nuanced writing, editing and summarisation.
* Careful, step-by-step reasoning and tool use.

|                      |                                 |
| -------------------- | ------------------------------- |
| **Modality**         | Chat & code (text in, text out) |
| **Example model id** | `claude-4.5-sonnet`             |
| **Endpoint**         | `POST /chat/completions`        |

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.heyaskr.ai/chat/completions \
    -H "Authorization: Bearer ASKR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "claude-4.5-sonnet",
      "messages": [
        {"role": "user", "content": "Summarise this contract in three bullets."}
      ]
    }'
  ```

  ```python Python theme={null}
  from openai import OpenAI
  client = OpenAI(base_url="https://api.heyaskr.ai", api_key="ASKR_API_KEY")

  resp = client.chat.completions.create(
      model="claude-4.5-sonnet",
      messages=[
          {"role": "user", "content": "Summarise this contract in three bullets."},
      ],
  )
  print(resp.choices[0].message.content)
  ```
</CodeGroup>

## Pricing

Priced per token, input and output separately. As a rough guide, expect around
**\$3 per 1M input tokens** and **\$15 per 1M output tokens** for a mid-tier
Claude model. Lighter models cost less.

<div className="askr-img-placeholder">
  <span><strong>Image</strong><br />Claude on Askr: model card and pricing</span>
</div>

<Note>
  The model id and prices above are examples. Confirm the exact id and current
  price against the live [`/v1/models`](/api-reference/list-models) list before you
  rely on them.
</Note>
