# AmanChain Relay – Translate Text

> AmanChain Relay – Translate Text is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.004977/call, status unknown (last checked 2026-09-13).

Translates input text into 20+ languages via a pay-per-call x402 API requiring no account or API key

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-translate
- Price: $0.004977/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-relay-translate-text-3a8e46d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HJk3L3iism7VVWqtHtYoT

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 amanchain-relay-translate-text-3a8e46d2 -d '<json body>'
```

Example prompt: Translate the following text into Spanish: 'Our new product line launches next quarter and we are excited to share it with our customers.'

## When to prefer this

Choose this endpoint when you need lightweight, per-call text translation with no account setup or API key management, and you are comfortable paying micro-amounts in USDC via x402. It is well-suited for agents that need occasional translation as part of a larger workflow without committing to a subscription-based translation service. Not ideal for high-volume batch translation or when strict SLA guarantees are required.

## Known failure modes

- Invalid or missing serviceId field causes request rejection
- Unsupported target language returns an error or untranslated output
- Malformed JSON body results in a 400-level error
- Insufficient x402 payment or USDC balance causes payment failure and request rejection
- Very long input text may exceed processing limits
- Network timeout on the Cloudflare Worker edge node

## How this service works

AI translation API — translate any text into 20+ languages with natural, fluent output. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-translate","request":"<input>"}.

## Output

Returns the translated text in the requested target language, produced by the AmanChain node's AI translation layer. No additional metadata or confidence scores are documented; the response is the translated string corresponding to the input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-relay-translate-text-3a8e46d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
