{"uid":"cap_dhrNhsSJ8E1lWMZoJFRGK","slug":"saylor-innovations-language-detection-943b969e","name":"Saylor Innovations Language Detection","description":"Detect the language of a text across 15 Latin-script languages and the script of Cyrillic, Arabic, Hebrew, Indic, Thai, Greek, Korean, Japanese and Chinese text","url":"https://saylorinnovations.com/api/text/language-detect?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"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to identify, 8-3000 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["language","language_code","confidence"],"properties":{"note":{"type":"string","description":"Caveat or context for reading the result"},"method":{"type":"string","description":"Method used"},"scores":{"type":"array","description":"Candidate languages with share of matching words"},"script":{"type":"string","description":"Writing system detected"},"source":{"type":"string","description":"Data source the values come from"},"letters":{"type":["number","null"],"description":"Letters in the input"},"language":{"type":"string","description":"Language"},"reliable":{"type":"boolean","description":"True when there was enough text for a dependable result"},"characters":{"type":["number","null"],"description":"Characters in the input"},"confidence":{"type":"number","description":"Confidence of the top language from 0 to 1"},"language_code":{"type":"string","description":"Language code"},"language_group":{"type":["string","null"],"description":"Language group"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xcy3mItAlhXXfxPBhpdQ6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 across 15 Latin-script languages and identifies the script (Cyrillic, Arabic, Hebrew, Indic, Thai, Greek, Korean, Japanese, Chinese) with a confidence score","exampleAgentPrompt":"What language is this text written in, and how confident are you? Here's the snippet: 'Bonjour, comment puis-je vous aider aujourd'hui?'","exampleUseCases":[{"title":"Routing multilingual support tickets","prompt":"I have an incoming support message and I need to know what language it's in before I route it to the right team — can you detect the language of this text: 'Necessito ajuda com o meu pedido'?"},{"title":"Detecting script of unknown content","prompt":"Someone submitted this text and I can't tell what writing system it uses — can you identify the script and language: 'こんにちは、お元気ですか'?"},{"title":"Filtering non-English user input","prompt":"Before processing this user comment, tell me if it's actually in English or some other language, and give me a confidence score — the text is: 'Dieser Artikel ist sehr hilfreich und gut geschrieben.'"}],"resultDescription":"Returns the detected language name (e.g. 'French'), its language code (e.g. 'fr'), a confidence score from 0 to 1, the detected script (e.g. 'Latin', 'Cyrillic'), a reliability boolean indicating if the sample was long enough for a dependable result, optional candidate language scores, character and letter counts, and contextual notes or method information.","failureModes":["Text shorter than 8 characters or longer than 3000 characters will be rejected","Very short inputs may return reliable=false with low confidence","Mixed-language text may produce ambiguous or low-confidence results","Languages outside the 15 supported Latin-script languages may not be identified correctly","Closely related languages (e.g. Spanish vs Portuguese) may yield low confidence scores"],"whenToPreferThis":"Choose this endpoint when you need lightweight, fast language identification with an explicit confidence score and reliability flag, especially for Latin-script languages or script-level detection (Cyrillic, Arabic, Hebrew, Indic, Thai, Greek, Korean, Japanese, Chinese). It is well-suited for pre-processing pipelines that route or filter multilingual text before translation, moderation, or further analysis. Prefer it over full translation APIs when you only need to know the language, not convert it.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T18:51:33.882Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-language-detection-943b969e"}