# anthropic/claude-sonnet-4.6 API

> anthropic/claude-sonnet-4.6 is a model that you can call through the ScalingTensor API. Chat models available through the ScalingTensor API.

- Model ID: `anthropic/claude-sonnet-4.6`
- Provider: anthropic
- Tasks: Chat
- Price: From $3.00 per 1M input tokens; output, cache and context tiers priced separately

### Token pricing rule

Coefficients are USD per 1M tokens. len is total input context including cache; p is input excluding separately priced cache and modalities; c is output. cr is cache read, cc is cache write, cc1h is one-hour cache write.

```text
tier("base", p * 3 + c * 15 + cr * 0.3 + cc * 3.75 + cc1h * 6)
```

- Web page: https://scalingtensor.com/models/anthropic/claude-sonnet-4.6

## How to call it

Authenticate with the `apiKey` request header. Send POST https://restapi.scalingtensor.com/api/chat/completion with model and the example parameters below. A response code of 0 means success; data contains content, tokensIn, tokensOut and costMicros.

```bash
curl --request POST 'https://restapi.scalingtensor.com/api/chat/completion' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 2048,
  "model": "anthropic/claude-sonnet-4.6"
}'
```

## Input parameters

Send these parameters directly in the request body alongside model.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `messages` | object[] | Required | — |
| `stop` | string[] | Optional | — |
| `tools` | array | Optional | — |
| `top_k` | integer | Optional | Min: 0 |
| `top_p` | number | Optional | Min: 0 · Max: 1 |
| `stream` | boolean | Optional | Default: false |
| `max_tokens` | integer | Optional | Max: 128000 |
| `temperature` | number | Optional | Min: 0 · Max: 2 · Default: 1 |
| `tool_choice` | string | Optional | — |
| `response_format` | object | Optional | — |
| `messages[].role` | string | Optional | enum: ["system","user","assistant"] |
| `messages[].content` | string | Optional | — |

## FAQ

### How much does the anthropic/claude-sonnet-4.6 API cost?

anthropic/claude-sonnet-4.6 costs From $3.00 per 1M input tokens; output, cache and context tiers priced separately on ScalingTensor. There is no subscription; usage is charged to your prepaid wallet.

### How do I call the anthropic/claude-sonnet-4.6 API?

Send POST /api/chat/completion with "model": "anthropic/claude-sonnet-4.6" and a messages array using your apiKey header. Read data.content from the successful response. Usage is reported in tokensIn, tokensOut and costMicros.

### Which parameters does anthropic/claude-sonnet-4.6 accept?

Required: messages. Optional: stop, tools, top_k, top_p, stream, max_tokens, temperature, tool_choice and response_format. The parameter table on this page describes each one.

### Do I need a anthropic account to use anthropic/claude-sonnet-4.6?

No. You call anthropic/claude-sonnet-4.6 with your ScalingTensor API key and pay from your ScalingTensor wallet. The same key works for every other model in the catalog.
