# Strale Language Detection API

> Strale Language Detection API is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-15).

Detects the natural language of a given text string, returning a language identification result with an auditable cryptographic record.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/language-detect
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-language-detection-api-c799d232
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XnudvPQbps0xuJirQ4UTC

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 strale-language-detection-api-c799d232
```

Example prompt: Can you detect what language this text is written in: 'Bonjour, comment puis-je vous aider aujourd'hui?'

## When to prefer this

Choose this endpoint when you need language detection with a cryptographic audit trail — e.g. in regulated or compliance-sensitive pipelines where you must prove what language was detected and when. Also appropriate when you want a hosted, pay-per-call solution without managing your own NLP models, and when operating in a multi-country context (27 countries supported by Strale's infrastructure).

## Known failure modes

- Text too short to reliably detect language (below min_length threshold), returning low-confidence or error response
- Ambiguous mixed-language input leading to low confidence score
- Empty or whitespace-only text string returning validation error
- Non-textual input (numbers, symbols only) yielding unknown language result
- Rate limit or payment failure returning 402 or 429 status

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

Returns the detected language (e.g. ISO 639-1 code and full language name), a confidence score, and an audit record with a cryptographic chain hash for traceability. May also include secondary language candidates if detection is ambiguous.

## 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",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to detect language of"
      },
      "min_length": {
       "type": "integer",
       "description": "Minimum text length for reliable detection (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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