{"name":"detect-language","description":"Identifies what language a piece of text is written in and how confident the call is, returning an ISO 639-1 code, the full language name, and a 0-1 confidence score. Send text and get back language_code, language_name, confidence, plus is_mixed and secondary_languages when more than one language is present in meaningful proportion. Handles short snippets and mixed-language input across a wide range of languages. Use it as a language detector, language identification API, or language identifier for routing multilingual content, tagging support tickets, or filtering text pipelines by language.","price":"$0.005","method":"POST","input_schema":{"properties":{"text":{"type":"string","description":"Text to detect the language of. Only the first 2000 chars are sent to the model; max 10000 chars total."}},"required":["text"]},"input_example":{"text":"Bonjour le monde"},"output_example":{"language_code":"fr","language_name":"French","confidence":0.95},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}