# ForgeMesh Language Identifier

> ForgeMesh Language Identifier is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Identifies the language of a text passage from 60+ languages, returning a confidence score and top three candidate languages.

## Facts

- Endpoint: POST https://x402.forgemesh.io/identify-text-language
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-language-identifier-dd4345f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n3rF6Zt0uxNklRHHZQy6a

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 forgemesh-language-identifier-dd4345f0 -d '<json body>'
```

Example prompt: What language is this support ticket written in, and how confident are you? Give me the top three candidates: 'Necesito ayuda con mi pedido, no llegó a tiempo y quiero un reembolso.'

## When to prefer this

Choose this endpoint when you need to identify the language of a piece of text before routing, translating, or moderating it, and you want multiple ranked candidates with confidence scores rather than a single hard guess. Ideal for multilingual support pipelines, pre-translation checks, or moderation workflows where privacy matters since input is never stored.

## Known failure modes

- Text exceeds 10,000 character limit — request rejected
- Empty or whitespace-only text — no language detected
- Text too short or ambiguous — low confidence scores across candidates
- Unsupported script or language — low or incorrect confidence scores

## How this service works

Identifies which of 60+ languages a piece of text is written in, returning a confidence score and the top three candidate languages rather than a single guess. Computed locally with the input never stored. For routing multilingual support tickets, pre-checking content before translation, and moderation pipelines.

## Output

Returns a confidence score and the top three candidate languages detected in the submitted text, computed locally with no data retention.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "text to analyze, up to 10k chars"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "detected": "fr",
  "candidates": [
   {
    "language": "fr",
    "confidence": 0.98
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-language-identifier-dd4345f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
