Roboflow
Anthropic

Anthropic: Claude Sonnet 5

Claude Sonnet 5 Overview

Claude Sonnet 5 is a mid-tier large language model from Anthropic, released on June 30, 2026, as the latest model in the Sonnet series and a direct successor to Claude Sonnet 4.6. It is a hybrid reasoning model designed primarily for agentic workflows, software coding, and professional tasks. The model features a 1 million token context window, a 128k maximum output token limit, and runs adaptive thinking by default, giving API users fine-grained control over reasoning effort across five levels (low, medium, high, max, and extra-high). It uses an updated tokenizer shared with Opus 4.7 and later models, which produces approximately 30% more tokens for equivalent text compared to earlier Claude models. On benchmarks, Sonnet 5 scores 63.2% on agentic coding and 81.2% on OSWorld, narrowing the gap with Opus 4.8 while remaining at Sonnet-tier pricing.

The model supports text and image input with text output, and accepts tools including browsers and terminals for autonomous multi-step task execution. Anthropic's safety evaluations report that Sonnet 5 shows a lower rate of undesirable behaviors than Sonnet 4.6 and is generally safer in agentic contexts, with improved resistance to prompt injection and reduced sycophancy. Cybersecurity safeguards equivalent to those on Opus 4.7 and 4.8 are active, though Anthropic notes the model was not deliberately trained on cybersecurity tasks. The model is proprietary and API-only, with no open weights.

Claude Sonnet 5 Interactive Demo

Claude Sonnet 5 Details & Performance

Details

Resources

Vision Tasks

CaptioningClassificationDocument Question AnsweringMulti-Label ClassificationOCRObject DetectionVision LanguageVisual Question Answering

Features

Multimodal VisionLLMs with Vision Capabilities

Usage

Past 30 Days

Performance

Avg. Latency

Arena Rankings

Claude Sonnet 5 Vision Evals

Vision Evals is Roboflow's ground-truth benchmark: every model runs the same real-world samples across six vision tasks, and answers are scored against ground truth.

Evals updated July 10, 2026Pricing updated July 21, 2026

Overall score#13 of 16
65.6%
Avg cost / sample#9 of 16
$0.0053
Avg speed / sample#2 of 16
4.0s
Avg tokens / sample
1.9K

Strengths and weaknesses

Claude Sonnet 5 averages 65.6% across the six Vision Evals tasks, ranking #13 of 16 models overall.

Its weakest relative showing is Object Detection, ranking #14 of 16 at 18.0%.

At $0.0053 per sample it is the 9th cheapest of the 16 benchmarked models, and its average inference time of 4.0s per sample makes it the 2nd fastest.

Performance profile

Field medianClaude Sonnet 5

Field medians: Object Detection 41.5%, Counting 62.2%, Identification 84.4%, OCR 89.1%, Data Extraction 85.6%, Reasoning 76.1%.

Results by task

TaskScoreField (0 to 100)RankCost / sampleSpeed
Object Detection
18.0%
#14 of 16$0.00714.7s
Counting
56.8%
#10 of 16$0.00303.0s
Identification
81.3%
#10 of 16$0.00272.3s
OCR
91.7%
#4 of 16$0.00787.2s
Data Extraction
89.7%
#5 of 16$0.00302.8s
Reasoning
56.5%
#12 of 16$0.00312.4s

Price vs. performance

Score vs. cost

Overall benchmark score against estimated cost per sample. Upper-left is the sweet spot: high quality at low cost.

16 models on the current benchmark · scores and efficiency pooled across all six tasks · Claude Sonnet 5 highlighted

Claude Sonnet 5 scores from a single evaluation run · Methodology

View all Vision Evals →

Claude Sonnet 5 Pricing

Claude Sonnet 5 costs $2.00 per 1M input tokens and $10.00 per 1M output tokens.

Input$2.00 / 1M tokens
Output$10.00 / 1M tokens
Cached input$0.200 / 1M tokens

Pricing updated Jul 21, 2026

Alternatives to Claude Sonnet 5

Other models worth comparing for similar use cases.

OpenAI
GPT-5 Mini
GPT-5 Mini, released by OpenAI on August 7, 2025, is a mid-tier variant of the GPT-5 family that balances cost, speed, and capability. It is multimodal, supporting both text and image inputs, and offers a substantial input context window of ~400,000 tokens with output lengths up to ~128,000 tokens. While less powerful than the full GPT-5, it inherits its safety tuning, instruction-following improvements, and multimodal reasoning, making it a practical choice for developers who need large context handling without the expense of premium models.GPT-5 Mini is optimized for affordability while retaining strong reasoning performance. Benchmarks show it outperforming earlier models such as GPT-4o on many multimodal and medical VQA tasks, though it lags behind GPT-5 on the most complex problems. Ideal use cases include prototyping, scalable content generation, document analysis, and mid-range reasoning tasks where efficiency and context capacity matter more than top-tier accuracy.
Google
Gemini 3.5 Flash
Gemini 3.5 Flash is a multimodal language model developed by Google DeepMind and released at Google I/O 2026. It is built on the Gemini 3 Flash reasoning foundation and introduces configurable thinking levels (minimal, low, medium, and high) that allow developers to tune the depth of internal reasoning before a response is generated. The model accepts text, image, video, audio, and PDF inputs and produces text output, with a 1 million token context window and up to 65,000 output tokens per request. It is natively multimodal, processing visual inputs alongside text to support tasks such as image captioning, classification, optical character recognition, object detection, and visual grounding, where the model references specific regions within an image or video frame.Its vision capabilities extend to interpreting UI screenshots, diagrams, charts, and real-world scenes, as well as understanding video and live frame sequences for activity and scene recognition. The model supports combined tool use, including Google Search, URL context, code execution, and custom functions, within a single request, and it uses reasoning context from previous turns when thought signatures are present in the conversation history, enabling persistent multi-turn reasoning chains. Gemini 3.5 Flash carries a knowledge cutoff of January 2026 and is available via the Gemini API, Google AI Studio, Google Antigravity, and the Gemini Enterprise Agent Platform.
OpenAI
GPT-5.6 Terra
GPT-5.6 Terra is the mid-tier reasoning model in OpenAI's GPT-5.6 family, which also includes the flagship Sol and the lightweight Luna. Introduced in a limited preview on June 26, 2026, and made broadly available on July 9, 2026, Terra accepts text and image input and produces text output, supporting vision, function calling, tool use, and agentic workflows. It is designed as a balanced option for everyday professional and production workloads — including coding assistance, document analysis, customer support, and multi-step agent tasks — where both output quality and cost efficiency matter. OpenAI positions Terra as delivering performance competitive with GPT-5.5 at approximately half the price, with a context window of around 1,050,000 tokens. On Terminal-Bench 2.1, Terra scores 84.3%, matching Claude Fable 5 on that benchmark. Under OpenAI's Preparedness Framework, Terra is rated High for cybersecurity and biological capabilities, meaning it demonstrates meaningful capability in those domains without reaching the Critical threshold.GPT-5.6 introduces a new naming convention in which the generation number (5.6) is paired with a durable capability tier name (Sol, Terra, or Luna), allowing each tier to advance on its own schedule. Terra carries the API identifier gpt-5.6-terra and supports the same reasoning effort controls available across the family, including adjustable reasoning depth. The model includes prompt caching with explicit cache breakpoints and a 30-minute minimum cache life, with cache writes billed at 1.25x the uncached input rate and cache reads receiving a 90% discount. GPT-5.6 Terra is a proprietary, closed-weights model served through the OpenAI API, Codex, and ChatGPT.
Qwen
Qwen3.6 35B A3B
Qwen3.6-35B-A3B is a sparse Mixture-of-Experts (MoE) multimodal language model developed by the Qwen team at Alibaba Group. It carries 35 billion total parameters but activates only approximately 3 billion per forward pass via a learned routing mechanism, giving it the representational capacity of a large dense model at a fraction of the inference compute. The model is natively multimodal, processing images, documents, and video alongside text as a core architectural capability rather than an add-on. It supports a native context window of 262,144 tokens, extensible up to 1,010,000 tokens via YaRN. A key design feature is the unified thinking/non-thinking mode framework: users can switch between deliberate chain-of-thought reasoning and fast direct responses within a single model, and a "thinking preservation" option retains reasoning context across multi-turn agentic workflows to reduce redundant computation.The model is specifically optimized for agentic coding tasks, including repository-level reasoning, frontend workflow generation, multi-step tool use, and MCP (Model Context Protocol) integration. On SWE-bench Verified it scores 73.4%, on Terminal-Bench 2.0 it scores 51.5%, and on MCPMark it scores 37.0%. For vision-language tasks it achieves 92.0 on RefCOCO, 89.9 on OmniDocBench 1.5, and 83.7 on VideoMMMU. The model also supports Multi-Token Prediction (MTP) for speculative decoding. All Qwen3.6 open-weight models are released under the Apache 2.0 license.
Google
Gemini 2.5 Flash
Gemini 2.5 Flash, released on June 17, 2025, is Google DeepMind’s production-ready, efficiency-focused model in the Gemini 2.5 family. It is multimodal, accepting text, images, video, and audio as inputs, with text as the primary output format. The model supports 1 million input tokens and up to 65K output tokens, enabling it to process very large contexts such as books, long video transcripts, or extensive datasets. Its training knowledge extends to January 2025.Designed as a price-performance leader, Gemini 2.5 Flash balances speed and reasoning power, making it suitable for everyday enterprise and developer use cases without the higher latency and cost of Pro models. It supports advanced workflows like function calling, code execution, search grounding, URL context ingestion, and structured outputs. While efficient and scalable, output length is still limited compared to its input capacity, and multimodal outputs (e.g. image or audio generation) remain restricted to specialized or preview variants.

Other Anthropic Sonnet models

Other versions in the same family as Claude Sonnet 5.

Claude Sonnet 5 License

Proprietary

License terms and commercial-use guidance for Claude Sonnet 5.

This model is proprietary. The author retains all rights, and use of the model is governed by their specific terms of service or license agreement.

Commercial use depends on the terms set by the model author. Most proprietary commercial models require a paid subscription, API key, or per-call billing. Check the provider’s pricing and terms-of-service for details.

License information is provided as a guide and is not legal advice.

Frequently Asked Questions About Claude Sonnet 5 Vision

Yes. Claude Sonnet 5 accepts image input and handles OCR, data extraction, object counting, identification, visual reasoning, and object detection. On Roboflow's Vision Evals its strongest task is OCR at 91.7% (#4 of 16). You can test it on your own image in the demo above.

Yes, and it is one of the model's strongest vision skills: its transcriptions match the ground truth 91.7% on average (#4 of 16) on Vision Evals OCR. Pulling specific fields out of documents (data extraction) scores 89.7%.

Not its strength. On Vision Evals, Claude Sonnet 5 scores 18% mAP@50 on object detection (#14 of 16) and 56.8% exact-match accuracy on object counting. For production counting or precise localization, pairing it with a specialized detector like RF-DETR or your own trained model in a Roboflow Workflow is usually more reliable: detect the objects, then count the detections.

On our benchmark's task mix, Claude Sonnet 5 averages $0.0053 per sample at $2.00 per 1M input and $10.00 per 1M output tokens (#9 of 16 on cost), with an average speed of 4.0s per sample across the benchmark. Actual cost depends on your images and prompts.

On the overall Vision Evals ranking, Claude Sonnet 5 sits #13 of 16 at 65.6%, just behind GLM 5V Turbo (65.9%) and just ahead of GPT-5.4 mini (65.3%). See the full side-by-side: Claude Sonnet 5 vs GPT-5.4 mini.