# 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-14).

Detects the language of input text and returns the identified language with a confidence score and runner-up candidates.

## Facts

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

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-749d1fd3 -d '<json body>'
```

Example prompt: Can you figure out what language this text is written in and give me a confidence score? Here's the snippet: 'Bonjour, comment ça va aujourd'hui?'

## When to prefer this

Use this endpoint when you need a fast, deterministic language identification with a confidence score rather than an LLM guess — especially for multilingual pipelines, content routing, and translation triage where short or ambiguous text snippets need a reliable language call. Prefer this over general-purpose LLMs when cost predictability and consistency matter at scale.

## Known failure modes

- Text exceeds 10,000 character limit — input truncated or rejected
- Text is too short or contains only numbers/symbols — low confidence or inconclusive result
- Ambiguous closely-related language pairs (e.g. Malay vs Indonesian) may return low confidence scores
- Empty text field returns an error
- Payment failure or insufficient USDC balance blocks the call

## How this service works

Determines the language of any input text with a confidence score and runner-up candidates, useful when a short snippet is ambiguous between closely related languages. For content routing, translation triage, and multilingual pipelines that need a fast, deterministic language call instead of an LLM guess.

## Output

Returns the detected language (name and/or BCP-47 code), a confidence score for the top result, and one or more runner-up language candidates for ambiguous cases — useful for routing or triage decisions.

## 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-749d1fd3/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)
