# Language & Tone Detector

> Language & Tone Detector is a paid API for AI agents from defi-intel-agent-gateway.gg-neo15.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Detects language, formality register, and tone of a text snippet, returning ISO 639-1 language code and confidence scores using deterministic heuristics and wordlists.

## Facts

- Endpoint: POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/text/language-tone-detect
- 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/language-tone-detector-7dc2ad6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hwQCZH-0NpNQ7SfiivYOR

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 language-tone-detector-7dc2ad6a -d '<json body>'
```

Example prompt: Can you detect the language and formality of this text for me: 'Bonjour, pourriez-vous m'indiquer la direction de la gare?' — I need the ISO language code and whether it's formal or informal, with confidence scores.

## When to prefer this

Choose this endpoint when you need fast, cheap, deterministic language and tone detection without ML latency — ideal for routing pipelines, content moderation pre-filters, or localization workflows where sub-millisecond reproducibility matters more than neural accuracy. At $0.001/call with no API key required, it's well-suited for high-volume, pay-per-call agent pipelines on Base.

## Known failure modes

- Empty or whitespace-only input returns error or low-confidence result
- Very short text (1-2 words) may yield low confidence scores
- Mixed-language text may return the dominant language only
- Unusual scripts or rare languages may fall back to 'unknown'
- Payment failure (insufficient USDC balance) returns 402 status

## How this service works

Detect language, formality and tone of a text with confidence scores. Deterministic heuristics + compact wordlists. Returns iso_639-1 + register. — $0.001 USDC/call on eip155:8453. Pay-per-call via x402 — no API key, no account. Free samples daily.

## Output

Returns an ISO 639-1 language code (e.g. 'en', 'fr', 'es'), a formality/register label (e.g. formal, informal, neutral), a tone descriptor, and confidence scores for each classification, all computed via deterministic heuristics without ML inference.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/language-tone-detector-7dc2ad6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-intel-agent-gateway.gg-neo15.workers.dev](https://www.zero.xyz/host/defi-intel-agent-gateway.gg-neo15.workers.dev/llms.txt)
