Catalog/text-language-detect

Text

Language detection API

Detect the language of a piece of text (returns the ISO 639-3 code and language name). Answers 'what language is this', 'detect the language', 'is this English'.

Price$0.01per request
MethodPOST
Route/v1/text/language-detect
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
textlanguagedetectioniso639nlplinguistics
API URLhttps://x402.hexl.dev/v1/text/language-detect
Integration docs
Example request
{
  "text": "Bonjour, comment allez-vous aujourd'hui?"
}
Example response
{
  "code": "fra",
  "language": "French",
  "reliable": true
}
Input schema
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string"
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "language"
  ],
  "properties": {
    "code": {
      "type": [
        "string",
        "null"
      ]
    },
    "language": {
      "type": "string"
    },
    "reliable": {
      "type": "boolean"
    }
  }
}