{"uid":"cap_5-SzLGTK_8IW2tLkjSKQD","slug":"foundry-language-detection-0b0c1b74","name":"Foundry Language Detection","description":"Language detection: the language of a text with confidence and alternatives. Input: any text.","url":"https://minty-sprout.onrender.com/v1/language-detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"Any text"}}},"responseSchema":{"type":"json","example":{"language":"fr","candidates":[{"name":"French","language":"fr","probability":1}],"confidence":1,"language_name":"French"}},"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":null,"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_8UEFZSktav6LxmJP1d9OY","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 any input text, returning the identified language with a confidence score and ranked alternative candidates.","exampleAgentPrompt":"What language is this text written in: 'Bonjour, comment allez-vous aujourd'hui ?'","exampleUseCases":[{"title":"Route multilingual support tickets","prompt":"I'm getting support messages in different languages — can you detect the language of this message before I route it to the right team: 'Necesito ayuda con mi pedido, no llegó a tiempo.'"},{"title":"Validate localized content before publishing","prompt":"Before we publish this user-generated review, tell me what language it's in — here's the text: 'Das Produkt ist von sehr hoher Qualität und ich bin sehr zufrieden.'"},{"title":"Identify language for translation pipeline","prompt":"I need to know what language this paragraph is before I send it to the translator: 'この製品は非常に使いやすく、デザインも美しいです。'"}],"resultDescription":"Returns a JSON object with the detected language code (e.g. 'fr'), the full language name (e.g. 'French'), a confidence score (0–1), and an ordered list of candidate languages each with their name, ISO code, and probability score.","failureModes":["Empty or whitespace-only input may return low confidence or ambiguous results","Very short texts (single words) may produce low confidence scores with multiple competing candidates","Highly mixed-language text may result in split probabilities across candidates","Text exceeding 8000 characters will be rejected by the input schema","Ambiguous scripts shared across languages (e.g. Latin script for many European languages) may yield lower confidence"],"whenToPreferThis":"Choose this endpoint when you need fast, structured language identification with confidence scores and ranked alternatives — especially in preprocessing pipelines for translation, routing, or content moderation. It pairs naturally with the sibling translation endpoint on the same host. Prefer it over embedding-based approaches when you need an explicit ISO language code rather than a vector similarity result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:41.505Z","isFirstParty":false,"canonicalSlug":"foundry-language-detection-0b0c1b74"}