# Translate Toll - Language Detection

> Translate Toll - Language Detection is a paid API for AI agents from translate-toll-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Detects the source language of a given text snippet

## Facts

- Endpoint: POST https://translate-toll-production.up.railway.app/detect?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/translate-toll-language-detection-6880eb8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4JHVE5YFTllvg8M3whF0r

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 translate-toll-language-detection-6880eb8e -d '<json body>'
```

Example prompt: What language is this text written in: 'Bonjour, comment puis-je vous aider aujourd'hui?'

## When to prefer this

Use this endpoint when you need to identify the language of an unknown text before deciding how to process, route, or translate it. Ideal for preprocessing pipelines, multilingual chatbots, or content moderation systems that need to branch logic based on the user's language. Choose this over a full translation endpoint when you only need the language label, not translated content.

## Known failure modes

- Empty or whitespace-only text input returns an error or undefined result
- Very short text (single word or character) may yield low-confidence or incorrect detection
- Mixed-language text may return only the dominant language or an ambiguous result
- Rare or constructed languages may not be recognized
- Payment failure (402) if USDC balance is insufficient

## How this service works

Translation and language detection for AI agents. Translate to 100+ languages or detect source language.

## Output

Returns the detected language of the input text, typically including a language name and/or BCP-47 language code, and potentially a confidence score indicating how certain the detection is.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to analyze"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/translate-toll-language-detection-6880eb8e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from translate-toll-production.up.railway.app](https://www.zero.xyz/host/translate-toll-production.up.railway.app/llms.txt)
