# x402 APIs - Detect Language

> x402 APIs - Detect Language is a paid API for AI agents from x402-apis-eta.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Detects the natural language of a given text string and returns the identified language

## Facts

- Endpoint: POST https://x402-apis-eta.vercel.app/api/detect-language
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-apis-detect-language-ffeb064c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_68Mb3JKsZO0c4zlEIE1zj

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 x402-apis-detect-language-ffeb064c -d '<json body>'
```

Example prompt: What language is this text written in: "Bonjour, comment allez-vous aujourd'hui?" — just pay per request, no key needed.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

AI-agent-friendly APIs with instant micropayments via x402 protocol. No API keys, no accounts - just pay and access.

## Output

The detected language name and/or ISO language code for the submitted text, likely with a confidence score indicating how certain the detection is.

## Example request

```json
{
 "text": "Hello world"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-apis-detect-language-ffeb064c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-apis-eta.vercel.app](https://www.zero.xyz/host/x402-apis-eta.vercel.app/llms.txt)
