# 24K Labs Text Translation API

> 24K Labs Text 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 while preserving the original tone and formatting.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/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-text-translation-api-0b6a85eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ClmytBaFHHiDFrXXDMlhO

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-text-translation-api-0b6a85eb -d '<json body>'
```

Example prompt: Translate this product description into Spanish, keeping the tone and formatting intact: 'Our premium coffee beans are sourced from the highlands of Ethiopia, roasted to perfection for a rich, smooth flavor.'

## When to prefer this

Choose this endpoint when you need a straightforward, cost-effective programmatic text translation that preserves tone and formatting, especially within an agentic workflow that already uses the 24K Labs API suite for other utilities (grammar correction, content generation, etc.). Best for short-to-medium text blocks where real-time response is needed.

## Known failure modes

- Unsupported target language code returns an error
- Empty or missing source text results in a bad request
- Very long text may exceed input size limits
- Ambiguous source language may cause inaccurate translation
- Network timeout on large payloads

## How this service works

Translate text into a target language, preserving tone and formatting.

## Output

Returns the translated text in the specified target language, with tone and formatting preserved from the original input.

## 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-text-translation-api-0b6a85eb/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)
