Skip to main content

Anthropic model on ScaleMax

Claude Sonnet 5 API

Call Claude Sonnet 5 with the model ID claude-sonnet-5 through ScaleMax's OpenAI-compatible API or the native Anthropic Messages API. It costs $2 per million input tokens and $10 per million output tokens, prepaid, with no subscription.

Balanced · Mid price · Reads images · 1M context

Model ID
claude-sonnet-5
Maker
Anthropic
Input / 1M tokens
$2
Output / 1M tokens
$10
Context window
1,000,000 tokens
Max output
128,000 tokens

Claude Sonnet 5 pricing

ScaleMax publishes one customer rate per model and deducts each completed request from your prepaid balance at that rate: $2 per 1M input tokens and $10 per 1M output tokens for Claude Sonnet 5.

What typical requests cost at the standard rate (token counts are illustrative sizes):

RequestSizeCost per requestPer $25 of credit
Chat reply2,000 tokens in, 600 out$0.01about 2,500 requests
Coding-agent step40,000 tokens in (files + history), 2,000 out$0.10about 250 requests
Long-document pass200,000 tokens in, 4,000 out$0.44about 56 requests

The Starter credit pack costs $2.50 and adds $25 of usage credit (larger packs add more per dollar — see how pricing works). Prompt-cache reads, where the model supports caching, can bill below the input rate.

Pay by UPI, PayU or Cashfree (UPI, cards, net banking), Cryptomus (crypto) or PayPal. Prices on this page are in US dollars; India checkout shows rupees. See what ₹1,000 buys for token packs.

How to call Claude Sonnet 5

Create a key in the dashboard, export it as SCALEMAX_API_KEY, and send claude-sonnet-5 as the model. OpenAI-compatible clients use the base URL https://api.scalemax.pro/v1; Anthropic SDKs and Claude Code use the origin https://api.scalemax.pro without /v1. Token pack keys use /token/v1 instead of /v1.

curl · Chat Completions
curl https://api.scalemax.pro/v1/chat/completions \
  -H "Authorization: Bearer $SCALEMAX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "messages": [{"role": "user", "content": "Explain this error in one line."}],
    "max_tokens": 300
  }'
Python · OpenAI SDK
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.scalemax.pro/v1",
    api_key=os.environ["SCALEMAX_API_KEY"],
)

reply = client.chat.completions.create(
    model="claude-sonnet-5",
    messages=[{"role": "user", "content": "Explain this error in one line."}],
    max_tokens=300,
)
print(reply.choices[0].message.content)
Python · Anthropic SDK
import os
import anthropic

client = anthropic.Anthropic(
    base_url="https://api.scalemax.pro",  # no /v1: the SDK adds /v1/messages
    api_key=os.environ["SCALEMAX_API_KEY"],
)

message = client.messages.create(
    model="claude-sonnet-5",
    max_tokens=300,
    messages=[{"role": "user", "content": "Explain this error in one line."}],
)
print(message.content[0].text)

Keep the key server-side. Call GET /v1/models with your key to see every model it can use; the quick start covers errors and streaming.

Capabilities and limits

  • Context window: 1,000,000 tokens (1M-token).
  • Maximum output: 128,000 tokens per response.
  • Supports: Reads images, Tool / function calling, Anthropic Messages API.
  • Streaming: server-sent events on every route.

Claude clients sometimes show this ID with a [1m] suffix. That is the same model with its full context; either spelling works.

Works in

Claude Code connects natively over the Anthropic Messages route. Cursor, Cline, Roo Code, Kilo Code, OpenCode, Continue, Aider, Zed and Hermes Agent connect over the OpenAI-compatible route with the same model ID. Setup steps for each are on the integrations page.

Other Anthropic models

ModelModel IDInput / 1MOutput / 1MContext
Claude Sonnet 5claude-sonnet-5$2$101,000,000
Claude Sonnet 5.5claude-sonnet-5-5$2$101,000,000
Claude Haiku 4.5claude-haiku-4-5-20251001$1$51,000,000
Claude Haiku 5.5claude-haiku-5-5$0.20$11,000,000
Claude Opus 4.6claude-opus-4-6$5$251,000,000

Lower-cost alternatives

Models from other makers with a lower output rate. Quality differs by task — test on your own prompts before switching.

ModelModel IDInput / 1MOutput / 1MContext
Grok 4.7grok-4.7$2.40$7.20500,000
Grok 4.5grok-4.5$2$6500,000
Grok 4.6grok-4.6$2$6500,000

All models, with their IDs and rates, are on the model list.

Claude Sonnet 5 API questions

What is the API model ID for Claude Sonnet 5?

Use claude-sonnet-5. Send it as the "model" field to https://api.scalemax.pro/v1/chat/completions or, with an Anthropic SDK, to https://api.scalemax.pro/v1/messages.

How much does the Claude Sonnet 5 API cost?

$2 per 1M input tokens and $10 per 1M output tokens at the published ScaleMax rate. A Pay as you go key is prepaid: each completed request is deducted from your credit.

What is the context window of Claude Sonnet 5?

1,000,000 tokens, with up to 128,000 output tokens per response.

Can I use Claude Sonnet 5 in Claude Code or Cursor?

Yes. Claude Code uses the native Anthropic route (ANTHROPIC_BASE_URL=https://api.scalemax.pro). Cursor, Cline, Roo Code and other OpenAI-compatible clients use https://api.scalemax.pro/v1 with the model ID claude-sonnet-5.

Can I pay for Claude Sonnet 5 from India in rupees?

Yes. ScaleMax is prepaid and checkout accepts UPI, cards and net banking in INR, as well as crypto. There is no subscription.

Start calling Claude Sonnet 5

Get a prepaid key, copy the model ID, and send your first request in a couple of minutes.