# ApexAPI Text Language Detection

> ApexAPI Text Language Detection is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.178905/call, status unknown (last checked 2026-09-15).

Detects the language of a given text input and returns the identified language.

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/tools/text/language
- Price: $0.178905/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-text-language-detection-548da373
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eizu2yFbu0YBetRiTzNT4

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 apexapi-text-language-detection-548da373 -d '<json body>'
```

Example prompt: What language is this text written in: 'Bonjour, comment allez-vous aujourd'hui?'

## When to prefer this

Use this endpoint when you need a quick, pay-per-call language detection with no API key setup, especially in agent workflows that handle multilingual text input and need to route or process text differently by language. Suitable for single-text language identification rather than bulk processing.

## Known failure modes

- Empty or missing query string returns an error
- Text too short to reliably detect language may return low confidence or incorrect result
- Mixed-language text may produce ambiguous or incorrect detection
- API payment failure due to insufficient USDC on Base
- Service unavailable or timeout from the hosted Vercel instance

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns structured data indicating the detected language of the input text, likely including the language name, ISO language code, and possibly a confidence score.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apexapi-text-language-detection-548da373/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
