# x402 Pay-Per-Call Text Translation (Llama 3.2 3B)

> x402 Pay-Per-Call Text Translation (Llama 3.2 3B) is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-22).

Translates a text snippet (up to 800 characters) into a specified target language using Llama 3.2 3B on Cloudflare Workers AI, billed at $0.003 USDC per call with no API key required.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/ai/translate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-pay-per-call-text-translation-llama-3-2-3b-ce67a547
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fGwME2VzNf0qp1cEp8aWs

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 x402-pay-per-call-text-translation-llama-3-2-3b-ce67a547
```

Example prompt: Translate the following text into Japanese: 'Thank you for your purchase. Your order will arrive within 3 business days.'

## When to prefer this

Choose this endpoint when an AI agent needs lightweight, pay-per-call text translation without provisioning or managing a dedicated translation API key. It is ideal for low-to-medium volume translation tasks (up to 800 chars per call) in agentic pipelines where per-use micropayments via x402 are acceptable. Prefer it over full translation APIs when cost predictability per call matters and the agent does not require batch processing, glossary support, or translation memory.

## Known failure modes

- Text exceeds 800-character limit — likely returns an error or truncated output
- Invalid or unsupported target language code — model may return an error or untranslated text
- Network timeout on Cloudflare Workers edge — transient 5xx error
- Payment failure via x402 protocol — 402 response, call not executed
- Ambiguous or very short input text — model may produce a low-quality or literal translation

## How this service works

Text translation (Llama 3.2 3B): ?text=<up to 800 chars>&to=<target language, e.g. es, fr, de, ja> returns the translated text only. Use when an agent needs quick pay-per-call translation with no API key.

## Output

A JSON object containing the translated text string and the target language code (e.g. {"translation": "Hola, ¿cómo estás?", "to": "es"}). Only the translated output is returned — no confidence scores, alternatives, or source language metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "text": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "translation",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "translation": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "es",
  "translation": "Hola, ¿cómo estás?"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-pay-per-call-text-translation-llama-3-2-3b-ce67a547/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
