ai_detect_language_batch
AI language detection (batch) — Identify the language of up to 30 texts in one call (name, ISO 639-1 code, confidence) via Workers AI, cross-checked offline against each text's writing script. texts = items separated by | or newlines, or a JSON array. Returns per-item results plus the language mix and dominant language. Price: $0.008 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"texts": "<texts>"
},
"name": "ai_detect_language_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes | e.g. Bonjour tout le monde|Hola, como estas|Guten Morgen |