YFarmX logoYFarmX

Anthropic: Claude Sonnet 4

anthropic/claude-sonnet-4 · AnthropicDeclared and measured agree
Tokenizer lineage (measured)
Claude
Declared tokenizer tag
Claude
Entered catalogue
22 May 2025
Last tested
5 October 2026
Evidence confidence
High

Why high: an exact fingerprint shared with 4 models that declare the same family, without a second signal of a different kind yet.

Evidence
  • ✓ exact tokenizer signature shared with 4 models

Identity statement

Anthropic: Claude Sonnet 4 is Anthropic's model. Its measured tokenizer sits with the Claude group, which is evidence that it builds on the Claude tokenizer. Tokenizer reuse is normal engineering, open vocabularies travel between labs, and this says nothing against Anthropic's authorship of the model itself.

What we checked

Four different kinds of evidence, and what each one showed
We checkedWhat we foundWhere it came from
How it counts tokensCounts every one of the 50 test strings exactly like 4 other modelstk_2d06485c
How its API is set upA combination of settings no other listing in the catalogue usesapi_72fff635
How much it can read and writeReads up to 200,000 tokens at once, writes up to 64,000its own listing
Whether it thinks before answeringReasons when asked toits own listing
Who served our requestsAmazon Bedrockwe measured it, 5 October 2026

Shares this fingerprint

Exact signature first; template-boundary shifts of the same signature beneath

Closest measured models

Agreement across the mutually clean test strings

Click a row to open the full comparison.

The measured fingerprint

What each test string cost this model, in tokens

We sent Anthropic: Claude Sonnet 4 fifty short pieces of text and recorded what each one cost it in tokens. The bars below are those costs. Two models built on the same tokenizer produce the same bars; a model built on a different one produces a different set, which is what makes this a fingerprint.

All 50 rows

English and whitespace

en-prose15
en-long17
spaces-204
spaces-606
tabs-204
newlines-203
mixed-ws9

Digits

digits-94
digits-125
digits-3011
digits-sep8
float-long10

CJK

zh-common19
zh-long25
zh-rare21
ja-kana12
ja-kanji17
ko20

Other scripts

ru14
ar21
he18
hi23
th25
el22

Emoji

emoji-basic11
emoji-skin26
emoji-zwj-family15
emoji-zwj-x343
emoji-flags25
emoji-prof28

Rare Unicode

math47
boxdraw29
combining6
cjk-ext-b17
surrogates55
zalgo36
rtl-mix10

Code

py-code30
py-indent19
json23
html17
regex52
camel7
snake11

Repetition and encodings

rare-word-x541
repeat-tok21
base6443
hex14
url22
uuid28

Overhead subtracted: 7 prompt tokens.

Declared record

What the catalogue claims about this model

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%),...

Modalities
text+image+file->text
Declared tokenizer
Claude
Prompt price
$3.00 / M tokens
Completion price
$15.0 / M tokens

Supported parameters

include_reasoningmax_tokensreasoningstoptemperaturetool_choicetoolstop_ktop_p

defaults: {"temperature":null,"top_p":null,"top_k":null,"frequency_penalty":null,"presence_penalty":null,"repetition_penalty":null}

Catalogue entry

History

Every observation, kept as taken
  • 22 May 2025Enters the OpenRouter catalogue declared as Claude.
  • 5 October 2026Fingerprinted in the YFarmX catalogue sweep · 50 of 50 strings measured clean.
  • 5 October 2026YFarmX assessment: consistent with the Claude family, high confidence.