Roboflow

Claude Sonnet 4 vs GPT-5.6 Luna

Compare Claude Sonnet 4 and GPT-5.6 Luna side-by-side. See how these vision models stack up in Image Captioning, OCR, Object Detection, Open Prompt, and Classification.

Compare Claude Sonnet 4 vs GPT-5.6 Luna live

Run the same image across every model that supports a task and compare their outputs side-by-side.

Detect and compare bounding boxes across models on the same image.

Open Object Detection in the full playground
AnthropicClaude Sonnet 4

Claude Sonnet 4 is deprecated and can no longer be run. Details and evals are still available on its model page.

OpenAIGPT-5.6 Luna
Run to compare this model.

Models in this comparison

Claude Sonnet 4 vs GPT-5.6 Luna Comparison Table

Evals updated September 5, 2026Pricing updated September 19, 2026

PropertyClaude Sonnet 4GPT-5.6 Luna
OrganizationAnthropicOpenAI
Categoryclosedclosed
Modalitymultimodalmultimodal
Release DateMay 2025Jul 2026
Context Window1.0M1.5M
Parameters
LicenseProprietaryProprietary
Pricing per 1M tokens
Input $/1M$3.00$0.200
Output $/1M$15.00$1.20
Vision Tasks
CaptioningDemo
Chart Question Answering
ClassificationDemo
Document Question Answering
Image Tagging
Multi-Label Classification
Object DetectionDemo
OCRDemo
Vision Language
Visual Question AnsweringDemo
Model Features
Foundation Vision
LLMs with Vision Capabilities
Multimodal Vision
Vision Evalsground-truth scores across 6 vision tasks, pooled at low effort
OverallDeprecated
73.8%
Avg cost / sample$0.0010
Avg speed / sample7.38s
By task
Object Detection (low)
61.0%
±1.2, Mean of 3 runs, range 59.9 to 62.2
$0.0015
Object Detection (high)
62.3%
±1.2, Mean of 3 runs, range 61.4 to 63.8
$0.0050
Counting (low)
67.1%
±1.4, Mean of 3 runs, range 66.2 to 68.9
$0.0006
Counting (high)
70.7%
±3.4, Mean of 3 runs, range 66.2 to 73.0
$0.0015
Identification (low)
83.3%
±1.6, Mean of 3 runs, range 81.3 to 84.4
$0.0004
Identification (high)
84.4%
±6.3, Mean of 3 runs, range 78.1 to 90.6
$0.0007
OCR (low)
90.7%
±1.8, Mean of 3 runs, range 88.4 to 92.0
$0.0012
OCR (high)
91.5%
±0.3, Mean of 3 runs, range 91.2 to 91.7
$0.0042
Data Extraction (low)
80.4%
±2.1, Mean of 3 runs, range 78.3 to 82.5
$0.0004
Data Extraction (high)
81.8%
±0.5, Mean of 3 runs, range 81.4 to 82.5
$0.0006
Reasoning (low)
60.5%
±5.0, Mean of 3 runs, range 55.0 to 64.9
$0.0006
Reasoning (high)
65.6%
±3.6, Mean of 3 runs, range 60.9 to 68.2
$0.0015

Claude Sonnet 4 vs GPT-5.6 Luna: Overview

Claude Sonnet 4

Claude 4 Sonnet, released by Anthropic in May 2025, is the mid-tier model in the Claude 4 family, designed to balance capability, cost, and speed. It is multimodal, accepting both text and images, and extends beyond prior versions with improved “computer use” support, allowing API-driven interaction with desktop-like interfaces. By default, it supports 200,000 tokens of context, but as of August 2025, it also offers a 1 million-token context window in public beta—making it one of the most context-capable models available for processing entire codebases or large document sets in a single request.

Sonnet 4 is significantly cheaper than the flagship Opus while still demonstrating strong reasoning, coding, and instruction-following ability with reduced hallucinations. Its extended context capabilities and lower latency make it well-suited for enterprise-scale knowledge management, software development, research assistants, and productivity automation where both cost efficiency and high reliability are essential.

GPT-5.6 Luna

GPT-5.6 Luna is the fastest and most cost-efficient model in OpenAI's GPT-5.6 family, which also includes Sol (the flagship tier) and Terra (the balanced mid-tier). Introduced under a new naming convention where the generation number (5.6) and a durable capability tier name (Luna, Terra, Sol) together define each model, Luna occupies the lightweight end of the family and is designed for high-volume, latency-sensitive workloads such as summarization, drafting, autocomplete, classification, and routine automation. The GPT-5.6 family as a whole advances capabilities in software engineering, computer use, professional knowledge work, scientific research, and cybersecurity, with all three tiers rated at the "High" capability level under OpenAI's Preparedness Framework for both cybersecurity and biological/chemical risk domains.

GPT-5.6 Luna supports multimodal input and function calling, and shares the family's 1.5 million token context window. On Terminal-Bench 2.1, Luna scores 82.5%, and on the Artificial Analysis Coding Agent Index it outperforms comparable models at roughly one-quarter the estimated cost of higher-tier alternatives. Luna is priced at $1 per million input tokens and $6 per million output tokens, with cached input reads at $0.10 per million tokens under the GPT-5.6 prompt caching scheme, which introduces explicit cache breakpoints and a 30-minute minimum cache life. The model was previewed on June 26, 2026 to a limited group of trusted partners via the OpenAI API and Codex, with general availability rolling out on July 9, 2026 across ChatGPT, Codex, and the API.