# Synapse Language Detection API

> Synapse Language Detection API is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Detects the language of a given text input, returning the ISO language code, language name, and confidence level

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/lang-detect?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synapse-language-detection-api-803a2c67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AXqU1BulFSOgjUyuD5hqV

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 synapse-language-detection-api-803a2c67
```

Example prompt: What language is this text written in: 'Bonjour, comment allez-vous?' — give me the ISO code and how confident you are.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call language detection with no account setup, returning ISO code plus a confidence level. It is ideal for agents that occasionally need language identification without committing to a monthly subscription API, especially when operating within an x402 payment-enabled workflow on Base.

## Known failure modes

- Missing or empty 'text' query parameter returns an error or ambiguous result
- Very short text (single word or character) may yield low confidence or incorrect detection
- Mixed-language text may return only the dominant language
- Rare or constructed languages may not be recognized
- Network or payment failure returns HTTP 402 if USDC payment is not attached correctly

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object with three fields: 'iso' (ISO 639-1 language code, e.g. 'en'), 'language' (full English name of the detected language, e.g. 'English'), and 'confidence' (string indicator such as 'high', 'medium', or 'low').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "iso": "en",
  "language": "English",
  "confidence": "high"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synapse-language-detection-api-803a2c67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
