{"uid":"cap_XnudvPQbps0xuJirQ4UTC","slug":"strale-language-detection-api-c799d232","name":"Strale Language Detection API","description":"The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.","url":"https://api.strale.io/x402/v2/language-detect","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to detect language of"},"min_length":{"type":"integer","description":"Minimum text length for reliable detection (default 10)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0216","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.0216/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_I_AW8aKauPtYGeO_Yb2OI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0216","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects the natural language of a given text string, returning a language identification result with an auditable cryptographic record.","exampleAgentPrompt":"Can you detect what language this text is written in: 'Bonjour, comment puis-je vous aider aujourd'hui?'","exampleUseCases":[{"title":"Multilingual support ticket routing","prompt":"I'm getting support tickets in different languages — can you detect the language of this message so I know which team to route it to: 'Necesito ayuda con mi factura, no puedo acceder a mi cuenta'?"},{"title":"Content moderation pipeline language check","prompt":"Before we run sentiment analysis, detect the language of this user comment: 'Das Produkt ist absolut fantastisch, ich bin sehr zufrieden damit.'"},{"title":"User onboarding locale detection","prompt":"A new user just signed up and typed their bio in what looks like a foreign language — can you detect what language this is: 'Mi chiamo Marco e lavoro come ingegnere del software a Milano'?"}],"resultDescription":"Returns the detected language (e.g. ISO 639-1 code and full language name), a confidence score, and an audit record with a cryptographic chain hash for traceability. May also include secondary language candidates if detection is ambiguous.","failureModes":["Text too short to reliably detect language (below min_length threshold), returning low-confidence or error response","Ambiguous mixed-language input leading to low confidence score","Empty or whitespace-only text string returning validation error","Non-textual input (numbers, symbols only) yielding unknown language result","Rate limit or payment failure returning 402 or 429 status"],"whenToPreferThis":"Choose this endpoint when you need language detection with a cryptographic audit trail — e.g. in regulated or compliance-sensitive pipelines where you must prove what language was detected and when. Also appropriate when you want a hosted, pay-per-call solution without managing your own NLP models, and when operating in a multi-country context (27 countries supported by Strale's infrastructure).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:55:08.227Z","isFirstParty":false}