{"uid":"cap_mBZMLCL6uEzWIlO5xRE3D","slug":"forgemesh-language-detection-api-f322c93f","name":"ForgeMesh Language Detection API","description":"Language detection API: identify the language of any text (60+ languages) with confidence scores and top-3 candidates — computed locally in milliseconds, text never stored. For routing multilingual content, translation pre-checks, and moderation pipelines.","url":"https://x402.forgemesh.io/detect-language","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"text to analyze, up to 10k chars"}}},"responseSchema":{"type":"json","example":{"detected":"fr","candidates":[{"language":"fr","confidence":0.98}]}},"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_xILMegsPDoIgZcUTSG0Jm","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 the language of any text input from 60+ languages, returning confidence scores and top-3 language candidates computed locally without storing text.","exampleAgentPrompt":"What language is this text written in, and how confident are you? — 'Bonjour, je voudrais réserver une table pour deux personnes ce soir.'","exampleUseCases":null,"resultDescription":"Returns the detected language name and ISO code, a confidence score, and the top-3 most likely language candidates each with their own confidence scores. Processing is done locally in milliseconds and the input text is never stored.","failureModes":["Text exceeds 10,000 character limit — request rejected","Empty or whitespace-only text — may return low-confidence or error response","Very short text snippets may produce low-confidence or ambiguous results across multiple languages","Unsupported or constructed languages (e.g. Klingon, Esperanto) may return incorrect top candidate","Network or payment failure results in no response"],"whenToPreferThis":"Choose this endpoint when you need fast, privacy-preserving language detection without sending text to a third-party storage system. It is ideal for pre-routing multilingual content pipelines, translation pre-checks, or moderation workflows where latency and data privacy matter. Best suited for text up to 10k characters where you want both a single best-guess language and a ranked list of top-3 candidates with confidence scores.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:57:34.785Z","isFirstParty":false}