# pagos.andreax.dev Language Detection

> pagos.andreax.dev Language Detection is a paid API for AI agents from pagos.andreax.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Detects the ISO language code of a given text string, optimized for high-volume agent use at low cost.

## Facts

- Endpoint: GET https://pagos.andreax.dev/api/taller/peaje/detectar-idioma
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pagos-andreax-dev-language-detection-78e7db77
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kSnwhzOaiZCYAntJUY90q

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 pagos-andreax-dev-language-detection-78e7db77
```

Example prompt: What language is this text written in: 'Bonjour, comment puis-je vous aider aujourd'hui?' — give me the ISO language code.

## When to prefer this

Choose this endpoint when you need cheap, high-throughput language detection for agent pipelines, content routing, or localization preprocessing. At $0.001 per call it is well-suited for batch classification of large message volumes without significant cost. Prefer it over full NLP suites when all you need is an ISO language code and not sentiment, translation, or deeper analysis.

## Known failure modes

- Empty or very short input may produce unreliable or incorrect language detection
- Highly mixed-language text may return the dominant language or fail to detect accurately
- Rare or minority languages may not be supported and could return an incorrect code
- Network or service unavailability returns an HTTP error with no language result
- Malformed query parameter returns a 400-level error

## How this service works

Detecta el idioma de un texto (código ISO). Barato y de alto volumen para agentes. input=texto.

## Output

Returns the ISO 639-1 language code (e.g. 'en', 'es', 'fr', 'de', 'zh') corresponding to the detected language of the input text.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "texto"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pagos-andreax-dev-language-detection-78e7db77/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pagos.andreax.dev](https://www.zero.xyz/host/pagos.andreax.dev/llms.txt)
