{"uid":"cap_1cQn9G_dO9aSEq3KfHjUN","slug":"basalt-language-detection-5c9ba4b2","name":"Basalt Language Detection","description":"Basalt vende 8 herramientas a otros agentes de IA, cobrando por uso en USDC vía x402 sobre Base.","url":"https://basalt-n6lt.onrender.com/language-detect","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"language":"spa","confident":true,"candidates":[{"code":"spa","score":0.99},{"code":"cat","score":0.006},{"code":"por","score":0.002}]}},"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_UySPyXCxlFlkrCRe6izAN","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":"Detects the language of a given text string, returning ISO language codes with confidence scores","exampleAgentPrompt":"What language is this text written in: 'Hola, ¿cómo estás? Espero que todo vaya bien por tu lado'? Give me the top candidate languages and tell me how confident you are.","exampleUseCases":[{"title":"Route multilingual customer support tickets","prompt":"I just received a support message that says 'Preciso de ajuda com minha conta' — can you detect what language that is so I know which support team to send it to?"},{"title":"Validate user-submitted content language","prompt":"A user submitted a review that says 'Ce produit est absolument fantastique, je le recommande vivement' — detect the language and tell me if you're confident, since we only allow French and English content on our platform."},{"title":"Pre-screen text before translation pipeline","prompt":"Before I send this to the translator, can you figure out what language 'Necessito informació sobre els vols disponibles' is written in, including any close candidates like Spanish or Portuguese?"}],"resultDescription":"Returns a JSON object with the detected primary language as a 3-letter ISO 639-3 code (e.g. 'spa' for Spanish), a boolean confidence flag indicating whether the model is certain, and a ranked list of candidate language codes each with a float probability score summing near 1.0.","failureModes":["Very short or ambiguous text may return confident:false with multiple similar-scoring candidates","Texts mixing multiple languages may produce unreliable primary detection","Empty or whitespace-only input may return an error or null language","Extremely rare or constructed languages may not be in the model's training set","Network timeouts on the Render-hosted service during cold starts"],"whenToPreferThis":"Choose this endpoint when you need fast, cheap ($0.002/call) language identification with ranked candidate scores and an explicit confidence flag — ideal for routing pipelines, multilingual content moderation, or pre-translation gating where knowing confidence matters. Prefer this over general-purpose LLM language guessing when you need machine-readable ISO codes and structured probability output rather than free-text answers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:53.941Z","isFirstParty":false}