anthropicVision

Anthropic: Claude Sonnet 4.6

Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work. It excels at iterative development, complex codebase navigation, end-to-end project management with...

Context
1M tokens
Input / 1M tokens
$3
Output / 1M tokens
$15
Benchmark

Pricing

Input tokens$3 per 1M tokens
Output tokens$15 per 1M tokens
Cache read$0.30 per 1M tokens
Cache write$3.75 per 1M tokens

Technical details

Model IDanthropic/claude-sonnet-4.6
Context window1M tokens
Input modalitiestext, image, file, pdf
Output modalitiestext
TokenizerClaude
Max output tokens128,000

Use with MegaBrain

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://getmegabrain.com/api/gateway/v1',
  apiKey: process.env.MEGABRAIN_API_KEY,
})

const response = await client.chat.completions.create({
  model: 'anthropic/claude-sonnet-4.6',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use Anthropic: Claude Sonnet 4.6?

Get an API key and start making requests in minutes.

Get an API key