# Delx Language & Script Detection

> Delx Language & Script Detection is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Detects and quantifies Unicode writing scripts (Latin, Japanese, Cyrillic, etc.) present in a UTF-8 text string, returning per-script character counts, percentages, and the dominant script.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/language-script-detect?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-language-script-detection-7c2f2a40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kr3O3zE3CywEZ60-n-qhO

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 delx-language-script-detection-7c2f2a40 -d '<json body>'
```

Example prompt: Can you detect what writing scripts are used in this text and tell me which one is dominant: '私はJohn Smithです。Nice to meet you!'

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call script detection without signup overhead, especially within an agent workflow that already uses x402/USDC micropayments. Ideal for classifying multilingual or mixed-script text at the character level before routing, filtering, or further NLP processing. Prefer it over full language-detection APIs when you specifically need Unicode script composition (Latin, Cyrillic, CJK, etc.) rather than language identity (English, Russian, Chinese).

## Known failure modes

- Empty or missing text field returns an error or empty scripts map
- Non-UTF-8 encoded input may produce unexpected script assignments
- Very short strings may yield low-confidence or skewed percentage results
- Payment failure (insufficient USDC balance via x402) results in 402 Payment Required response
- Network timeout for unusually large text inputs

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with a schema identifier, a scripts map keyed by script name (each with character count and percentage), total sample character count, and the dominant script name. Example: {"schema":"delx/util-language-script-detect/v1","scripts":{"latin":{"count":9,"percent":64.29},"japanese":{"count":5,"percent":35.71}},"sample_chars":16,"dominant_script":"latin"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "UTF-8 text to encode, chunk, index, or analyze (caller-supplied only)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-language-script-detect/v1",
  "scripts": {
   "latin": {
    "count": 9,
    "percent": 64.2857
   },
   "japanese": {
    "count": 5,
    "percent": 35.7143
   }
  },
  "sample_chars": 16,
  "dominant_script": "latin"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-language-script-detection-7c2f2a40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
