{"uid":"cap_ZwX1N3DIwf3amxG9DMwY4","slug":"fastapi-online-language-detection-b2679147","name":"fastapi.online Language Detection","description":"Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.","url":"https://api.fastapi.online/language-detect","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":20000,"minLength":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_prhIuSvJkg6-5SWN8L829","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 language name and ISO code","exampleAgentPrompt":"What language is this text written in: 'Je suis très heureux de vous rencontrer aujourd'hui'? Give me the language name and its ISO code.","exampleUseCases":[{"title":"Language gate for customer support routing","prompt":"I'm getting messages from users in mixed languages — can you figure out what language this message is in so I can route it to the right support team: 'Necesito ayuda con mi pedido urgente'?"},{"title":"Pre-translation language check","prompt":"Before I send this to the translation API, can you detect what language this paragraph is in: 'Das Wetter heute ist wirklich wunderschön und ich freue mich auf den Tag'?"},{"title":"Content moderation language tagging","prompt":"I have a user-submitted review I need to tag by language before processing — can you identify the language of: 'この製品はとても素晴らしいです、強くお勧めします'?"}],"resultDescription":"Returns a JSON object with a 'language' field containing the human-readable language name (e.g. 'French') and a 'code' field containing the ISO 639-1 language code (e.g. 'fr').","failureModes":["Empty or whitespace-only text input may return an error or ambiguous result","Very short text (single words, abbreviations) may be misidentified due to insufficient context","Mixed-language text may only identify the dominant language","Rare or low-resource languages may not be detected accurately","Payment failure (402) if insufficient USDC balance and no valid API key"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call language detection step without managing a subscription or API key signup. Especially useful for pipelines that process multilingual content at variable volume, where you want per-call micro-payments via crypto (USDC/x402). Good for agents needing a lightweight language gate before routing to translation, sentiment, or summarization services on the same platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:04:09.156Z","isFirstParty":false}