{"uid":"cap_iWs2A31U8newBgOskRm4S","slug":"x402-ai-tools-language-detection-86e50f3a","name":"x402 AI Tools – Language Detection","description":"Detects the dominant language of a text (over 100 languages) with Amazon Comprehend, from its first 1000 characters. Returns the most likely language codes with scores.","url":"https://ai.kagurazaka.dev/v1/language?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"the text; the first 1000 characters are read"}}},"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_fx-hhAmjArQBVcKdR2zf_","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":"Detects the dominant language of a text (over 100 languages) using Amazon Comprehend, analyzing up to the first 1000 characters and returning ranked language codes with confidence scores.","exampleAgentPrompt":"Can you detect what language this text is written in? Here it is: 'Bonjour, comment puis-je vous aider aujourd'hui?'","exampleUseCases":[{"title":"Route multilingual customer tickets","prompt":"I have an incoming support ticket that says 'Necesito ayuda con mi pedido' — can you detect what language it's in so I can route it to the right team?"},{"title":"Validate user profile language field","prompt":"A user just submitted a bio that reads 'Ich bin ein Berliner und liebe Musik' — can you detect what language that is so I can tag their profile correctly?"},{"title":"Pre-detect language before translation","prompt":"Before I translate this paragraph, can you tell me what language it's in? Here's the text: '今日は東京でとても暑いです。'"}],"resultDescription":"Returns an array of detected language candidates, each with an ISO 639-1 language code (e.g. 'en', 'fr', 'de') and a confidence score between 0 and 1, ordered from most to least likely. The analysis is based on the first 1000 characters of the input text.","failureModes":["Empty or very short text may result in low-confidence or ambiguous language detection","Text shorter than a few words may yield unreliable results","Highly mixed-language input may split confidence across multiple languages","Payment failure (402) if USDC balance is insufficient","Request rejected if text field is missing or malformed JSON"],"whenToPreferThis":"Choose this endpoint when you need fast, automated language identification across 100+ languages backed by Amazon Comprehend's production NLP infrastructure. Ideal for preprocessing pipelines that route, tag, or translate multilingual content, and when you need confidence scores rather than a binary yes/no answer. Prefer this over translation endpoints when language identification alone is the goal, or when you need to validate that user input matches an expected locale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:32:57.688Z","isFirstParty":false,"canonicalSlug":"x402-ai-tools-language-detection-86e50f3a"}