{"uid":"cap_uhTLnca3eRBt4Su7GLNtH","slug":"x402-language-detection-api-ff78365d","name":"x402 Language Detection API","description":"USDC pay-per-call APIs for AI agents via the x402 protocol (v2, exact, Base mainnet). Send a request, receive HTTP 402 with payment requirements, pay with @x402/fetch or any x402 client, retry with the PAYMENT-SIGNATURE header.","url":"https://call402.com/api/language-detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to detect, required"}}},"responseSchema":{"type":"json","example":{"language":"fr","confidence":"high","alternatives":[{"score":0.9,"language":"fr"},{"score":0.1,"language":"it"}],"language_name":"French"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mk3EcJbTELelCGA6xN8s7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 a given text string, returning the identified language, confidence level, and alternative language 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 tickets in various languages and need to route them to the right team — can you detect the language of this message so I know which queue to send it to: 'Necesito ayuda con mi cuenta'?"},{"title":"Validate user locale submissions","prompt":"A user filled in a form claiming they speak Italian, but their message is 'Je veux annuler mon abonnement' — can you check what language that actually is so I can verify their locale setting is correct?"},{"title":"Filter non-English content","prompt":"Before I process this batch of user comments, can you tell me what language this one is in: 'Das Produkt ist wirklich hervorragend und ich bin sehr zufrieden' — I need to know if I should send it to translation first?"}],"resultDescription":"Returns a JSON object containing the detected language as an ISO language code (e.g. 'fr'), a human-readable language name (e.g. 'French'), a confidence level string (e.g. 'high'), and an array of alternative language candidates each with a language code and numeric score between 0 and 1.","failureModes":["Empty or missing 'text' field returns a validation error","Very short or ambiguous text (e.g. single characters, numbers only) may return low confidence or incorrect detection","Payment not included causes HTTP 402 with payment requirements before the call is processed","Network errors or malformed JSON body cause request failures","Text in rare or unsupported languages may return low-confidence results or misclassify to a related language"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call language detection service with no subscription commitment, especially in agentic or automated pipelines that use the x402 USDC micropayment protocol on Base mainnet. It is a good fit when you want confidence scores and ranked alternative language candidates alongside the primary detection result, and when you want deterministic per-call pricing at $0.005 USDC rather than monthly API quota plans.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:31:26.599Z","isFirstParty":false,"canonicalSlug":"x402-language-detection-api-ff78365d"}