# Vextorium Language Detection API

> Vextorium Language Detection API is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Detects the language of a given text using local AI, returning ISO 639-1 code, language name, confidence score, and any mixed languages present.

## Facts

- Endpoint: POST https://api.vextorium.com/detectar-idioma-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-language-detection-api-4a6f9fa9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EsWzq3aCTU25QDAI5Cxbj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability vextorium-language-detection-api-4a6f9fa9 -d '<json body>'
```

Example prompt: What language is this text written in: 'Bonjour, comment puis-je vous aider aujourd'hui?' — give me the ISO 639-1 code, the full language name, and how confident you are.

## When to prefer this

Choose this endpoint when you need fast, private language detection processed locally (no data sent to third-party AI providers), need ISO 639-1 codes directly, require confidence scores for downstream decision logic, or need to detect mixed/multilingual content. Ideal for routing pipelines, content tagging, and pre-translation classification where privacy or cost of large LLM APIs is a concern.

## Known failure modes

- Empty or whitespace-only text returns null or low-confidence result
- Very short text (single words or symbols) may yield low confidence or incorrect detection
- Rare or minority languages may not be recognized and return null
- Extremely mixed multilingual text may cause ambiguous primary language assignment
- Missing required 'texto' field causes a 400-level validation error

## How this service works

Language detection with local AI: ISO 639-1 code, language name, confidence and any mixed languages.

## Output

Returns a JSON object with: 'idioma' (ISO 639-1 language code, e.g. 'fr'), 'nombre' (full language name, e.g. 'French'), 'confianza' (confidence score between 0 and 1), 'otros_idiomas' (array of other detected languages if the text is multilingual), and 'modelo' (the local AI model used for detection).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "texto"
     ],
     "properties": {
      "texto": {
       "type": "string",
       "description": "Text to analyse"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "idioma": {
       "type": [
        "string",
        "null"
       ]
      },
      "modelo": {
       "type": [
        "string",
        "null"
       ]
      },
      "nombre": {
       "type": [
        "string",
        "null"
       ]
      },
      "confianza": {
       "type": [
        "number",
        "null"
       ]
      },
      "otros_idiomas": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": [
         "string",
         "null"
        ]
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-language-detection-api-4a6f9fa9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
