Best LLMs for Language Identification
Identifies the primary language of supplied text and returns its normalized language code in the configured response schema. Illustrative uses include routing multilingual support tickets, contracts, software issues, international customer feedback, news submissions, research doc
Run this task on Fronset — request an invitation
Models
Frontier on this task: Xiaomi MiMo V2.6 Flash at 10.14 / 10. Quality bar at 90%: 9.12.
point-estimate floor (CI low) · upper CI (less certain) · Bars sorted by blended cost; best-value model first.
| Model | Quality score | CI low | Cost / 1k runs | vs best value |
|---|---|---|---|---|
| Xiaomi MiMo V2.6 Flash | 10.14 / 10 | 9.82 | $0.03 | best value |
| GPT-6 Luna | 10.00 / 10 | 9.98 | $0.04 | 1.4x more expensive |
| Gemini 3.5 Flash Lite | 9.91 / 10 | 9.79 | $0.07 | 2.6x more expensive |
| NVIDIA Nemotron-3 Nano 30B-A3B | 9.89 / 10 | 9.81 | $0.08 | 2.8x more expensive |
| NVIDIA Nemotron-3 Super 120B | 9.92 / 10 | 9.81 | $0.10 | 3.5x more expensive |
| Xiaomi MiMo V2.6 Pro | 10.05 / 10 | 9.91 | $0.18 | 6.5x more expensive |
| MiniMax M3 | 9.98 / 10 | 9.89 | $0.19 | 6.7x more expensive |
| NVIDIA Nemotron 3.5 Lightning | 9.59 / 10 | 9.24 | $0.20 | 6.9x more expensive |
| Thinking Machines Inkling Small | 9.84 / 10 | 9.66 | $0.24 | 8.4x more expensive |
| Tencent Hy3 | 9.95 / 10 | 9.87 | $0.32 | 11x more expensive |
| Qwen 3.8 Flash | 9.88 / 10 | 9.72 | $0.34 | 12x more expensive |
| Gemini 3.8 Flash | 9.92 / 10 | 9.77 | $0.37 | 13x more expensive |
| GLM-5.3 Flash | 9.77 / 10 | 9.53 | $0.44 | 16x more expensive |
| GPT-6 Sol | 9.68 / 10 | 9.22 | $0.63 | 22x more expensive |
| NVIDIA Nemotron-3 Ultra 550B | 9.95 / 10 | 9.82 | $0.73 | 26x more expensive |
| Qwen 3.7 Plus | 9.90 / 10 | 9.76 | $1.08 | 38x more expensive |
| Claude Opus 5.5 | 9.80 / 10 | 9.39 | $1.78 | 63x more expensive |
| Thinking Machines Inkling | 9.76 / 10 | 9.41 | $1.94 | 68x more expensive |
| Tencent Hy4 Preview | 9.91 / 10 | 9.70 | $2.16 | 76x more expensive |
| Qwen 3.8 Max | 10.06 / 10 | 9.96 | $2.34 | 83x more expensive |
| Moonshot Kimi K3 | 10.04 / 10 | 10.01 | $2.70 | 95x more expensive |
| GLM-5.3 | 9.90 / 10 | 9.68 | $3.50 | 123x more expensive |
| Meta Muse Spark 1.3 | 9.88 / 10 | 9.61 | $3.67 | 129x more expensive |
Cost breakdown
| Model | Quality | Confidence | Cost / 1k runs | Overpay | Mode |
|---|---|---|---|---|---|
| Xiaomi MiMo V2.6 Flash ★ best Xiaomi MiMo | 10.14 / 10 CI [9.82, 10.00] | MEDIUM | $0.03 | best value | batch |
| GPT-6 Luna OpenAI | 10.00 / 10 CI [9.98, 10.00] | RANKED | $0.04 | 1.4x | batch |
| Gemini 3.5 Flash Lite Gemini | 9.91 / 10 CI [9.79, 10.00] | RANKED | $0.07 | 2.6x | batch |
| NVIDIA Nemotron-3 Nano 30B-A3B OpenRouter | 9.89 / 10 CI [9.81, 9.97] | RANKED | $0.08 | 2.8x | batch |
| NVIDIA Nemotron-3 Super 120B OpenRouter | 9.92 / 10 CI [9.81, 10.00] | RANKED | $0.10 | 3.5x | batch |
| Xiaomi MiMo V2.6 Pro Xiaomi MiMo | 10.05 / 10 CI [9.91, 10.00] | RANKED | $0.18 | 6.5x | batch |
| MiniMax M3 OpenRouter | 9.98 / 10 CI [9.89, 10.00] | RANKED | $0.19 | 6.7x | batch |
| NVIDIA Nemotron 3.5 Lightning OpenRouter | 9.59 / 10 CI [9.24, 9.94] | MEDIUM | $0.20 | 6.9x | batch |
| Thinking Machines Inkling Small OpenRouter | 9.84 / 10 CI [9.66, 10.00] | RANKED | $0.24 | 8.4x | batch |
| Tencent Hy3 OpenRouter | 9.95 / 10 CI [9.87, 10.00] | RANKED | $0.32 | 11x | batch |
| Qwen 3.8 Flash Alibaba Cloud (DashScope) | 9.88 / 10 CI [9.72, 10.00] | RANKED | $0.34 | 12x | batch |
| Gemini 3.8 Flash Gemini | 9.92 / 10 CI [9.77, 10.00] | RANKED | $0.37 | 13x | batch |
| GLM-5.3 Flash Z.AI | 9.77 / 10 CI [9.53, 10.00] | HIGH | $0.44 | 16x | batch |
| GPT-6 Sol OpenAI | 9.68 / 10 CI [9.22, 10.00] | MEDIUM | $0.63 | 22x | batch |
| NVIDIA Nemotron-3 Ultra 550B OpenRouter | 9.95 / 10 CI [9.82, 10.00] | RANKED | $0.73 | 26x | batch |
| Qwen 3.7 Plus Alibaba Cloud (DashScope) | 9.90 / 10 CI [9.76, 10.00] | RANKED | $1.08 | 38x | batch |
| Claude Opus 5.5 Anthropic | 9.80 / 10 CI [9.39, 10.00] | MEDIUM | $1.78 | 63x | batch |
| Thinking Machines Inkling OpenRouter | 9.76 / 10 CI [9.41, 10.00] | MEDIUM | $1.94 | 68x | batch |
| Tencent Hy4 Preview OpenRouter | 9.91 / 10 CI [9.70, 10.00] | HIGH | $2.16 | 76x | batch |
| Qwen 3.8 Max Alibaba Cloud (DashScope) | 10.06 / 10 CI [9.96, 10.00] | RANKED | $2.34 | 83x | batch |
| Moonshot Kimi K3 Moonshot AI | 10.04 / 10 CI [10.01, 10.00] | RANKED | $2.70 | 95x | batch |
| GLM-5.3 Z.AI | 9.90 / 10 CI [9.68, 10.00] | HIGH | $3.50 | 123x | batch |
| Meta Muse Spark 1.3 OpenRouter | 9.88 / 10 CI [9.61, 10.00] | HIGH | $3.67 | 129x | batch |
Overpay shows how much more you pay than the best-value model that clears the quality bar (marked ★) — the best-value good-enough option. "16x" means you overpay 16× — 16× that reference for no quality benefit above the bar. Typical call shape for this task: 652 input tokens → 37 output tokens, EMA-tracked from production traffic. Cost is the observed, all-in $ per 1,000 task runs: each model's own measured usage on this task — output verbosity, thinking/reasoning tokens, cache reads and writes, and the spend on its billed failures — priced at current list rates and adjusted by the billing overhead we actually reconcile against provider invoices. Models that answer tersely cost what they actually cost; models that think at length pay for it. Not comparable to providers' advertised $/1M list rates — this is what running the task costs, not a per-token price.
Evaluation rubric
Judge primary-language correctness, handling of mixed or noisy text, correct normalization to the requested code set, and calibrated uncertainty. Formatting is deterministic.
Output schema
Every answer on this task is checked against this JSON Schema, whichever model wrote it. An answer that doesn't fit counts as a model failure, and the call is retried on another model.
{
"description": "Schema for the result of language detection.",
"properties": {
"language_code": {
"description": "Detected language code (e.g., 'en', 'es', 'fr'). Should be 'unknown' if not confidently detected.",
"title": "Language Code",
"type": "string"
}
},
"required": [
"language_code"
],
"title": "LanguageDetectionResult",
"type": "object"
}Prompt templates
The published template for this task.
default ·
LLMB_LANGUAGE_IDENTIFICATION_SYSTEM +
LLMB_LANGUAGE_IDENTIFICATION_USER
(79871 calls in window)
System prompt
Identify the language that carries most of the semantic content. Ignore URLs, handles, code fragments, boilerplate, and isolated borrowed words. When text is too short, mixed, or ambiguous, use the schema’s unknown or best-supported behavior rather than fabricating confidence. Return the requested code standard only. Treat empty optional values as absent and return only the requested result. Your response must conform exactly to this output schema: {schema_json_string}.
User prompt
Inputs — input_text: {input_text}. Use only these inputs to complete the task defined by the system prompt.