Anthropic

Anthropic Claude Sonnet 4

Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...

Context window
1Mtokens
Max output
64Ktokens
Input
$3.00/ 1M
Output
$15.00/ 1M

Quick start

from openai import OpenAI

client = OpenAI(
    base_url="https://neurongate.net/v1",
    api_key="sk-ng-your-api-key",
)

completion = client.chat.completions.create(
    model="anthropic/claude-sonnet-4",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(completion.choices[0].message.content)

Cost

Example requestTokensCost
Short prompt1K in$0.003
Typical chat turn1K in · 500 out$0.0105
Document analysis10K in · 2K out$0.06
Long context100K in · 10K out$0.45
Estimated cost per request$0.0105

Prices in USD. Billed per token actually used, from a balance prepaid in USDT, USDC, ETH or BTC.

Frequently asked questions

What is Anthropic Claude Sonnet 4?

Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...

How much does Anthropic Claude Sonnet 4 cost?

Anthropic Claude Sonnet 4 is priced at $3 per 1 million input tokens and $15 per 1 million output tokens when accessed via NeuronGate. You pay per token — no subscriptions required. Top up with crypto (USDT, USDC, ETH, BTC).

Does Anthropic Claude Sonnet 4 support streaming?

Yes, Anthropic Claude Sonnet 4 supports streaming responses via NeuronGate's API. Use the standard "stream": true parameter in your request.

What is the context window of Anthropic Claude Sonnet 4?

Anthropic Claude Sonnet 4 has a context window of 1.0M tokens (~750K words). Maximum output is 64K tokens.

Does Anthropic Claude Sonnet 4 support function calling (tools)?

Yes, Anthropic Claude Sonnet 4 supports function calling / tool use via NeuronGate's standard API.

How do I use Anthropic Claude Sonnet 4 with NeuronGate?

Create a NeuronGate account, top up your balance with crypto, generate an API key, and use the model id anthropic/claude-sonnet-4 in your requests. NeuronGate uses the OpenAI-compatible API format — set your base URL to https://neurongate.net/v1.

Related posts

All posts