# 24K Labs Translation API

> 24K Labs Translation API is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-13).

Translates text from one language to another and returns the translated string

## Facts

- Endpoint: POST https://api.24klabs.ai/api/translate
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-translation-api-a22e1b96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WnSYosHu-9yidrRnm_uvP

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 24k-labs-translation-api-a22e1b96 -d '<json body>'
```

Example prompt: Translate 'Good morning, how can I help you today?' into Spanish for me.

## When to prefer this

Choose this endpoint when you need a quick, low-cost per-call text translation within a micropayment (x402) workflow. It is well-suited for agents that need inline translation without integrating a heavyweight NLP platform, and when you are already operating in the 24K Labs / x402 ecosystem and want a single-vendor solution across multiple utility APIs.

## Known failure modes

- Unsupported language pair returns an error or empty translation
- Malformed or missing source text causes a 400-level error
- Very long input text may be truncated or rejected
- Ambiguous source language may produce incorrect translation if auto-detection fails
- Network timeout or service unavailability returns a 5xx error

## How this service works

A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.

## Output

A JSON object containing a 'translation' field with the translated text in the target language, e.g. {"translation": "Buenos dias..."}

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "translation": "Buenos dias..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-translation-api-a22e1b96/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
