{"uid":"cap_wYsiGeEWuJAf8UcRu4ga8","slug":"language-detection-e503c465","name":"Language Detection","description":"Detect the language of a text among 55 languages, with probabilities for each candidate and a reliability flag. Use to route messages, pick a translator or tag content.","url":"https://bess-x402.onrender.com/v1/text/language?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to identify"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HrlpGWo6qrnuVFbM5ecyx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects the language of a given text from 55 possible languages, returning per-language probabilities and a reliability flag.","exampleAgentPrompt":"What language is this text written in: 'Bonjour, comment allez-vous aujourd'hui?' — give me the top language with its probability and whether the detection is reliable.","exampleUseCases":[{"title":"Multilingual customer support routing","prompt":"I just received a support ticket that says 'Necesito ayuda con mi pedido' — can you detect what language that is so I know which support team to route it to?"},{"title":"Content tagging pipeline for CMS","prompt":"We're ingesting user-generated posts and need to tag each one by language before indexing. Can you detect the language of this post: 'Das Wetter heute ist wunderschön'?"},{"title":"Pre-translation language check","prompt":"Before I send this text to the translator, tell me what language it's already in: 'これは日本語のサンプルテキストです。' — and how confident you are in the detection."}],"resultDescription":"Returns a ranked list of candidate languages (up to 55) each with a language name, ISO code, and probability score, plus a top-level reliability flag indicating whether the detection is confident or ambiguous.","failureModes":["Very short or single-word texts may yield low reliability scores and ambiguous results","Highly mixed-language or code-switched text may spread probability across multiple languages without a clear winner","Texts consisting primarily of numbers, URLs, or punctuation may fail to identify any language reliably","Empty or whitespace-only text input will likely return an error or null result","Rare or minority languages not among the 55 supported may be misclassified as a similar supported language"],"whenToPreferThis":"Choose this endpoint when you need fast, probabilistic language identification across a broad set of 55 languages with confidence scores and a reliability flag — especially useful for routing, tagging, or pre-processing pipelines. Prefer this over translation APIs that include language detection only as a side effect when language identification alone is the goal and cost efficiency matters at $0.002 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:14:55.925Z","isFirstParty":false,"canonicalSlug":"language-detection-e503c465"}