{"uid":"cap_dB0uCe1nOtrJMSi-DaUOQ","slug":"nojunk-moderate-language-identification-36cef565","name":"NoJunk Moderate Language Identification","description":"Text Moderation language: Language identification (ISO 639-1 code, name, confidence) for one text or a batch of up to 50, with a script-based fallback.","url":"https://nojunk-moderate.mick8511.workers.dev/language?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":20000,"minLength":1,"description":"One text to identify (1 to 20000 characters)"},"texts":{"type":"array","items":{"type":"string","maxLength":20000},"maxItems":50,"minItems":1,"description":"Batch of 1 to 50 texts (use instead of text)"}}},"responseSchema":null,"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_fSuUqAaI1qZTWRzBLVFC2","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":"Identifies the language of one text or a batch of up to 50 texts, returning ISO 639-1 code, language name, and confidence score with script-based fallback.","exampleAgentPrompt":"Can you detect the language of this text for me: 'Bonjour, comment puis-je vous aider aujourd'hui?' — I need the ISO 639-1 code, the full language name, and how confident you are.","exampleUseCases":[{"title":"Multilingual support ticket routing","prompt":"I have a batch of customer support messages from our inbox and I need to know what language each one is written in so I can route them to the right team — can you identify the languages for all of these texts at once?"},{"title":"Content pipeline language tagging","prompt":"Before we run translation on these 30 product descriptions, can you detect which language each one is written in and give me the ISO 639-1 codes and confidence scores?"},{"title":"User-generated content language filter","prompt":"A user just submitted this comment: 'Este produto é incrível, adorei a qualidade!' — what language is it in, and how confident are you?"}],"resultDescription":"Returns an ISO 639-1 language code (e.g. 'fr'), the full language name (e.g. 'French'), and a confidence score (0–1) for each input text. For ambiguous or low-signal texts, a script-based fallback heuristic is applied. Batch mode returns one result object per input text in order.","failureModes":["Empty or whitespace-only text returns an error or low-confidence result","Texts exceeding 20,000 characters are rejected","Batch exceeding 50 items is rejected","Very short texts (e.g. 1–2 words) may yield low confidence scores","Mixed-language texts may return only the dominant language","Rare or minority languages may fall back to script-based detection with lower accuracy","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need fast, per-text language identification with ISO 639-1 output and a confidence score, especially when processing batches of up to 50 texts in a single call. The script-based fallback makes it more robust for short or ambiguous inputs than pure statistical models. It pairs well with the other NoJunk Moderate endpoints (PII detection, sentiment, safety) for multilingual content moderation pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:31:35.691Z","isFirstParty":false,"canonicalSlug":"nojunk-moderate-language-identification-36cef565"}