TokenLX
BEDROCK

aws/claude-sonnet-4-6

200K  context$3.00/M tokens input$15.00/M tokens outputThinking   Supported34.4B  tokens servedText

Claude Sonnet — AWS's balanced model. Strong coding, writing, and tool use with 200K context.

Key strengths

  • Strong coding + writing
  • 200K context
  • Reliable tool use
  • Good instruction following

Use cases

  • Software engineering
  • Long-form writing
  • Customer agents
  • Code review
Thinking token billing

When Thinking mode is enabled, reasoning tokens generated by the model are counted as billable output. This can increase total usage beyond the visible answer tokens.

codingwritingtools

AWS's aws/claude-sonnet-4-6 is a frontier text generation model in the Claude family. It excels at complex reasoning, agentic workflows, code generation, and long-form writing tasks, with native support for streaming, tool calling, JSON mode, and multi-turn conversations.

The model handles long-context inputs gracefully and is particularly effective for software engineering, multi-step research, and end-to-end project execution. Its tokenizer and pricing are optimized for high-throughput production workloads, with a competitive cost profile relative to other models in its tier.

aws/claude-sonnet-4-6 is fully OpenAI-compatible — drop in your existing OpenAI Python or Node SDK and switch `baseURL` to `https://api.tokenlx.ai`. TokenLX transparently routes your requests to the optimal provider endpoint while preserving streaming, function-calling, and structured-output semantics.

Performance

Compare different providers across TokenLX · All locations.

Throughput
41
tok/s
Latency
116
ms
E2E Latency
183
ms
Tool Call Errors
0.05
%
Output Errors
0.40
%
Time to First Token
95
ms

Effective Pricing

Actual cost per million tokens across providers over the past 7 days.

Input
$3.00
per 1M tokens
7d agotoday
Output
$15.00
per 1M tokens
7d agotoday
Cache read
$0.3
per 1M tokens
7d agotoday
Cache write
$3.75
per 1M tokens
7d agotoday

Recent activity

Total usage per day on TokenLX (last 30 days).

Prompt
9.70B
Completion
24.73B
30d ago15d agotoday

Sample code & API

TokenLX normalizes requests and responses across providers. Use any OpenAI SDK or our native SDK.

Control Thinking cost

Disable Thinking when you do not need explicit reasoning, or set a lower budget_tokens value to cap the reasoning length. Only enable return_thoughts when you need to inspect the thinking process.

import anthropic

client = anthropic.Anthropic(
    base_url="https://api.tokenlx.ai",
    api_key="sk-tokenlx-...",
)

# Non-streaming
message = client.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=1024,
    thinking={
        "type": "enabled",
        "budget_tokens": 2048,
    },
    messages=[
        {"role": "user", "content": "Hello!"},
    ],
)
print(message.content[0].text)

# Streaming
with client.messages.stream(
    model="claude-sonnet-4-6",
    max_tokens=1024,
    thinking={
        "type": "enabled",
        "budget_tokens": 2048,
    },
    messages=[{"role": "user", "content": "Tell me a story"}],
) as stream:
    for text in stream.text_stream:
        print(text, end="", flush=True)

Replace sk-aihubrouter-… with your key from the dashboard.