{"uid":"cap_68Mb3JKsZO0c4zlEIE1zj","slug":"x402-apis-detect-language-ffeb064c","name":"x402 APIs - Detect Language","description":"AI-agent-friendly APIs with instant micropayments via x402 protocol. No API keys, no accounts - just pay and access.","url":"https://x402-apis-eta.vercel.app/api/detect-language","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}},"responseSchema":null,"example":{"request":{"text":"Hello world"},"response":{"script":"latin","dialect":null,"language":"English","confidence":0.6,"is_arabizi":false,"detected_at":"2026-06-18T06:17:31.929Z","text_preview":"Hello world","script_breakdown":{"latin":100},"is_mixed_language":false}},"exampleRequest":{"text":"Hello world"},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_DpsXwwlYaowdPlYsp1gor","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 natural language of a given text string and returns the identified language","exampleAgentPrompt":"What language is this text written in: \"Bonjour, comment allez-vous aujourd'hui?\" — just pay per request, no key needed.","exampleUseCases":null,"resultDescription":"The detected language name and/or ISO language code for the submitted text, likely with a confidence score indicating how certain the detection is.","failureModes":["Empty or missing 'text' field returns 400 validation error","Very short or ambiguous text (e.g. a single word) may result in low confidence or incorrect detection","Mixed-language text may produce unpredictable results","Payment failure via x402 protocol returns 402 Payment Required","Extremely rare or constructed languages may not be recognized"],"whenToPreferThis":"Choose this endpoint when you need lightweight, on-demand language detection without committing to an API key or subscription — ideal for AI agents that infrequently need language detection and want to pay only per use via x402 micropayments. Good for one-off checks in automated pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:47:59.418Z","isFirstParty":false}