{"uid":"cap_2a_UdZZhn8wZfAK1RywkE","slug":"language-and-script-detection-74f7c7ff","name":"Language and Script Detection","description":"Detect the language and script of a text — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/ai/language-detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"text":{"type":"string","description":"required"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"language-detect","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.002,"receipt_id":"g402-<16hex>"},"sources":[{"ok":true,"name":"<source>"}],"limitations":"<text>","generated_at":"<iso time>","evidence_hash":"sha256:<64hex>"}},"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_f2eP4Rat1KLkxm7pN5btk","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 language and writing script of an input text, returning language identification results.","exampleAgentPrompt":"What language and script is this text written in: 'Привет, как дела?'","exampleUseCases":[{"title":"Route multilingual support tickets","prompt":"I need to figure out what language this customer message is in before I route it to the right support team: 'Hola, necesito ayuda con mi pedido.'"},{"title":"Validate user-submitted content language","prompt":"Can you detect the language and script of this user-submitted text to make sure it matches their selected region? The text is: '你好，请问这个产品有货吗？'"},{"title":"Pre-process text before translation","prompt":"Before I send this snippet to a translator, can you tell me what language and script it's in? The text is: 'مرحبا، كيف يمكنني مساعدتك؟'"}],"resultDescription":"Returns the detected language (e.g. ISO language code or language name) and the writing script (e.g. Latin, Cyrillic, Arabic, Devanagari) of the provided text, likely with a confidence score or probability.","failureModes":["Empty or missing text input returns an error","Very short text (single character or word) may yield low-confidence or ambiguous results","Mixed-language text may return only the dominant language","Rare or under-resourced languages may not be identified accurately","Malformed request body without the required params.text field returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need lightweight, fast language and script identification from raw text, especially in agent pipelines that need to route, filter, or pre-process multilingual content before translation or localization steps. It is priced at $0.002 USDC per call, making it cost-effective for moderate-frequency use. Prefer it over a full NLP pipeline when you only need language/script metadata, not full linguistic analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:47:41.104Z","isFirstParty":false,"canonicalSlug":"language-and-script-detection-74f7c7ff"}