Models

claude-sonnet-4-6 — API, Pricing & Context Window | Vivgrid

claude-sonnet-4-6 on Vivgrid: Anthropic's balanced Sonnet model with a 1M-token context window, Messages API, and geo-distributed acceleration.

claude-sonnet-4-6 is Anthropic's balanced Sonnet model, offering much of Opus's coding and reasoning quality at a lower price and faster speed. Its 1M-token context window makes it a versatile workhorse for production agents.

On Vivgrid, claude-sonnet-4-6 is geo-distributed across AMER and EMEA and reachable on the Messages API through the same unified key as the rest of the catalog.

Specifications

ProviderAnthropic
Model IDclaude-sonnet-4-6
Best forCoding
Available onChat Completions, Vibe coding
Context window1,000,000 tokens
Max output128,000 tokens
ModalitiesText, Image
Tool / function callingYes
Knowledge cutoff2025-08
Acceleration⚡ Geo-Distributed — AMER, EMEA

Pricing

Pricing in USD per 1M tokens.

InputCached inputOutput
$4.00$1.00$15.00

What one request costs

The rates above applied to a 20K-token prompt with a 2K-token reply — a typical single agent turn, small enough that every request is billed at the base rate.

RequestCost
Cold prompt, nothing cached$0.1100
Warm prompt, 90% of the input served from cache$0.0560

API surfaces

The Vivgrid Console catalogs claude-sonnet-4-6 on 2 surfaces, all behind the same API key. The endpoint shown is the one the Console previews for that surface.

SurfacePrimary endpointUse it for
Chat Completions/chat/completionsAgent projects, where Vivgrid injects the model, system prompt and tools server-side, and Model API calls that name the model per request.
Vibe coding/messagesCoding CLIs and IDE agents that drive the model themselves — point the tool at Vivgrid and keep your own loop.

Quick start

Get an API key from the Vivgrid Console, then call claude-sonnet-4-6 directly.

/chat/completions

curl https://api.vivgrid.com/v1/chat/completions \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [
      { "role": "user", "content": "Say hello in English, Chinese and Spanish." }
    ],
    "stream": true
  }'

/messages

curl https://api.vivgrid.com/v1/messages \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Say hello in English, Chinese and Spanish." }
    ],
    "stream": true
  }'

Ideal use cases

  • Everyday coding agents balancing quality, speed, and cost
  • High-volume reasoning and content workflows
  • Long-context analysis within a 1M-token budget
  • Production assistants needing reliable tool use

On this page