{"uid":"cap_HpVTARvVQPNPMfgVAsxJG","slug":"language-detection-5a874ea2","name":"Language Detection","description":"Language detection: identify which of 20 common languages (or \"other\") a text is written in, with a confidence score. Powered by Jev, with an automatic Groq-hosted LLM fallback if Jev is slow or unavailable - under 4.5s guaranteed. Try GET /language/sample.","url":"https://x402.agentindex.world/language?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to classify, up to 4000 characters."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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_chDEbxqiEmUY0O5aewZ-p","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":"Identifies which of 20 common languages (or 'other') a text is written in, returning a language label and confidence score, with LLM fallback for reliability.","exampleAgentPrompt":"What language is this text written in, and how confident are you? 'Le soleil brille sur la ville de Paris ce matin.'","exampleUseCases":[{"title":"Routing multilingual customer support tickets","prompt":"Figure out what language this customer message is written in so I can route it to the right support team: 'Necesito ayuda con mi pedido, no ha llegado todavía.'"},{"title":"Content moderation language gating","prompt":"Before I run moderation on this user post, tell me what language it's in and your confidence level: 'Questo prodotto è assolutamente fantastico, lo consiglio a tutti!'"},{"title":"Auto-tagging uploaded documents by language","prompt":"I just uploaded a document — can you identify what language it's written in? Here's the first paragraph: 'Die Sonne scheint heute besonders hell über den Bergen.'"}],"resultDescription":"Returns a language label (e.g. 'French', 'Spanish', 'other') and a numeric confidence score indicating how certain the model is about the detected language.","failureModes":["Text exceeds 4000 characters — truncation or rejection required","Very short or ambiguous text may yield low confidence scores or 'other'","Language not among the 20 supported returns 'other' rather than a specific label","Jev and LLM fallback both unavailable — request times out beyond 4.5s SLA","Payment failure or insufficient USDC balance blocks the call"],"whenToPreferThis":"Choose this endpoint when you need fast, cheap, per-call language detection with a confidence score and a guaranteed sub-4.5s response time. Ideal for classifying short-to-medium texts (up to 4000 characters) in pipelines where cost per call matters and you need the reliability of a dual-engine fallback (Jev + Groq LLM). Not ideal for bulk batch jobs or for detecting rare languages outside the 20 supported.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:38:05.300Z","isFirstParty":false,"canonicalSlug":"language-detection-5a874ea2"}