# Arch Tools — Language Detect

> Arch Tools — Language Detect is a paid API for AI agents from archtools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Detects the natural language (e.g. English, French, Spanish) of a given text string

## Facts

- Endpoint: POST https://archtools.dev/v1/tools/language-detect
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arch-tools-language-detect-309efd49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wuGbtOSG7qSw5NZ-pmqFI

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 arch-tools-language-detect-309efd49 -d '<json body>'
```

Example prompt: What language is this text written in: 'Le chat est sur la table'?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call language detection service with no subscription required, especially in agent workflows where you're processing variable volumes of text from unknown sources. It fits well as a preprocessing step before translation, sentiment analysis, or routing logic. Prefer it over heavyweight NLP APIs when you only need language identification and want to pay only for what you use via USDC on Base.

## Known failure modes

- Empty or very short text may return low-confidence or ambiguous results
- Mixed-language text may return only the dominant language or fail to resolve
- Rare or minority languages may not be detected correctly
- Extremely short inputs like single words may be misclassified
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Arch Tools — language-detect

## Output

Returns a JSON object indicating the detected language of the input text, typically including the language name, ISO language code, and a confidence score indicating how certain the detection is.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to detect the language of"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arch-tools-language-detect-309efd49/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from archtools.dev](https://www.zero.xyz/host/archtools.dev/llms.txt)
