# SiteCheck Translation API

> SiteCheck Translation API is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-20).

Translates up to 6000 characters of text from one language to another, with optional auto-detection of the source language

## Facts

- Endpoint: POST https://api.sitecheck-api.workers.dev/api/translate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-translation-api-168aacdf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_saMcQn77zPIO5KExv21Cp

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 sitecheck-translation-api-168aacdf -d '<json body>'
```

Example prompt: Translate this sentence into Turkish: 'Pay-per-call, no API key required.' — auto-detect the source language.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call translation without signing up or managing API keys, especially in agent workflows where USDC micropayments via x402 on Base or Solana are already in use. Well-suited for short-to-medium text snippets (under 6000 chars) with automatic source language detection. Avoid if you need document-level batch translation, glossary/terminology control, or high-accuracy specialized translation (e.g. legal/medical).

## Known failure modes

- Text exceeds 6000 character limit — request rejected or truncated
- Unsupported or unrecognized target language code — translation fails or returns error
- Source language detection fails for very short or ambiguous input
- Model unavailability or Cloudflare Workers AI outage — 5xx error returned
- Payment failure via x402/USDC — request blocked before processing

## How this service works

Translation with Llama 3.1 8B: up to 6,000 characters per call, formatting, names, numbers and URLs kept, source language detected when not given. Language codes like en, tr, de, fr, es, ar, zh, or language names.

## Output

A JSON object containing the translated text, the detected or specified source language code, the target language code, the number of text chunks processed, and the name of the underlying model used for translation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Up to 6000 chars"
  },
  "source": {
   "type": "string",
   "description": "Optional source language; detected when omitted"
  },
  "target": {
   "type": "string",
   "description": "Target language code or name, e.g. tr"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "@cf/meta/llama-3.1-8b-instruct-fast",
  "chunks": 1,
  "source": "en",
  "target": "tr",
  "translated_text": "Çağrı başına ödeme, API anahtarı yok."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-translation-api-168aacdf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
