{"uid":"cap_qT4m8fJacOSN6h9TcKdHx","slug":"text-language-detect-6f39c0c5","name":"text-language-detect","description":"Language detection for text you send: one of 12 European languages plus Japanese, Chinese, Korean, Arabic and Russian by script, with a confidence score. Route text to the right model or translator. $0.01 per call.","url":"https://intel.rallylive.ca/data/language-text","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_hz3foO3b0pniEN6R_E-Ex","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 a given text string, returning the identified language and a confidence score, covering 12 European languages plus Japanese, Chinese, Korean, Arabic, and Russian.","exampleAgentPrompt":"What language is this text written in, and how confident are you? Here's the text: 'Les champs de lavande de Provence sont magnifiques en été.'","exampleUseCases":[{"title":"Route multilingual support tickets","prompt":"Before passing this support ticket to the right translation team, detect what language it's written in and give me a confidence score: 'Tengo un problema con mi pedido, no llegó a tiempo.'"},{"title":"Language gate for translation pipeline","prompt":"Can you detect the language of this text so I know which translation model to send it to? The text is: '今日の天気はとても良いですね。'"},{"title":"Validate user-submitted content language","prompt":"A user submitted this review and claimed it's in English — can you detect the actual language and confidence? Text: 'Das Produkt ist von ausgezeichneter Qualität und kam schnell an.'"}],"resultDescription":"Returns the detected language name (e.g. 'French', 'Japanese', 'Arabic') and a confidence score indicating how certain the model is about the classification, enabling downstream routing or validation decisions.","failureModes":["Very short text snippets may yield low confidence scores or incorrect detection","Mixed-language text may produce ambiguous or incorrect results","Languages outside the supported set (12 European + Japanese, Chinese, Korean, Arabic, Russian) will not be correctly identified","Empty input string may return an error or null result","Transliterated text or text in non-native scripts may reduce accuracy"],"whenToPreferThis":"Choose this endpoint when you need fast, low-cost language identification with a confidence signal across a well-defined set of 17 languages (European + CJK + Arabic + Russian), especially to route text to the appropriate translation or NLP model. Prefer this over general-purpose NLP APIs when cost per call ($0.01) and breadth of script-level detection for non-Latin scripts (Arabic, Russian, CJK) are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:37.087Z","isFirstParty":false}