{"uid":"cap_PTxYH2k1NTkbjyX-Xgy7C","slug":"402utils-language-detector-accf452a","name":"402utils Language Detector","description":"Detect the language of a text with franc (pure-JS trigram model, 61 languages + CJK/Indic scripts). Returns the ISO 639-1 code (639-3 when no 2-letter code exists), language name, a separation-margin confidence (0=ambiguous, 1=unambiguous), a reliable flag, and ranked alternatives. The pre-sort step of any multilingual pipeline. Short/ambiguous text returns reliable:false honestly. Processes provided text only; nothing is fetched.","url":"https://402utils.com/v1/lang-detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The text to classify (needs ~10+ characters to be reliable)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":{"p10Cents":"0.1000","medianCents":"0.1000","p90Cents":"0.1000","minCents":"0.1000","maxCents":"0.1000","p95Cents":"0.1000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_thQygtzl0oW8fEWXPZm4_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 input text using a trigram model, returning ISO 639-1/639-3 code, language name, confidence margin, reliability flag, and ranked alternatives.","exampleAgentPrompt":"What language is this text written in, and how confident are you? 'Le chat est sur la table, bien sûr.' — give me the ISO code, language name, and whether the detection is reliable.","exampleUseCases":null,"resultDescription":"Returns the detected ISO 639-1 (or 639-3 where no 2-letter code exists) language code, human-readable language name, a separation-margin confidence score between 0 (ambiguous) and 1 (unambiguous), a boolean reliable flag, and an ordered list of alternative candidate languages with their scores.","failureModes":["Very short or single-word text returns reliable:false because the trigram model needs ~10+ characters for meaningful signal","Highly ambiguous or mixed-language text returns a low confidence margin with reliable:false","Text with only numbers, symbols, or punctuation may not resolve to a meaningful language","Languages outside the supported 61+ may be misclassified as a closest-matching supported language"],"whenToPreferThis":"Use this endpoint as the pre-sort step in any multilingual pipeline when you need a fast, offline-style trigram detection without calling a heavyweight LLM or external language API. Prefer it when you need explicit confidence margins and a reliable flag to decide whether to trust the result, and when processing text in European, CJK, or Indic scripts. Ideal for routing, tagging, or filtering content by language at scale at $0.001/call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:32:13.958Z","isFirstParty":false,"canonicalSlug":"402utils-language-detector-accf452a"}