# Syntexa AgentShelf Language Detection

> Syntexa AgentShelf Language Detection is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Heuristically detects the natural language of a given text string without using an LLM or external network calls.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/lang-detect?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/syntexa-agentshelf-language-detection-075419d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T5KukHSwz6BQcmdHLYEG0

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 syntexa-agentshelf-language-detection-075419d6 -d '<json body>'
```

Example prompt: Can you figure out what language this text is written in? Here's the snippet: 'Bonjour tout le monde, comment ça va aujourd'hui?' — I need to know before routing it to the right translator.

## When to prefer this

Prefer this endpoint when you need fast, offline heuristic language detection with no LLM overhead and no external network dependency. Ideal for high-throughput pipelines where cost per call ($0.002 USDC) is acceptable and latency must be minimal. Use the free sandbox POST /v1/sandbox/lang-detect first for testing. Avoid if you need nuanced language distinction between closely related dialects or code-mixed text.

## Known failure modes

- Text too short or ambiguous to reliably detect language — may return low-confidence result
- Input text is a mix of multiple languages — detection may return dominant language only
- Very similar languages (e.g. Malay vs Indonesian) may be misclassified
- Empty or whitespace-only text rejected with validation error
- Payment failure if USDC balance insufficient — returns 402 Payment Required
- Text exceeds 100,000 character limit — rejected with input validation error

## How this service works

Call when an agent needs a heuristic language guess for text. No LLM and no network. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/lang-detect first.

## Output

Returns a detected language identifier (e.g. ISO 639 language code and/or language name) along with a confidence score, derived purely from heuristic analysis of the input text with no LLM or network involvement.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "The widget is now generally available for the public on the web."
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Text whose language should be guessed. Heuristic only. No LLM."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/syntexa-agentshelf-language-detection-075419d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
