# x402 Demo API - Text Translation

> x402 Demo API - Text Translation is a paid API for AI agents from x402-demo-api-theta.vercel.app, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-13).

Translates text from one language to another using a paid x402 micropayment endpoint on Base mainnet

## Facts

- Endpoint: POST https://x402-demo-api-theta.vercel.app/api/translate
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-demo-api-text-translation-f6008d46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oK-ozBndSzrCiPBV8OoTp

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

Example prompt: Translate the following text from English to Spanish: 'The weather today is beautiful and sunny, perfect for a walk in the park.'

## When to prefer this

Choose this endpoint when you need pay-per-use text translation without an API key subscription, especially in crypto-native or x402-compatible agent workflows where micropayments in USDC on Base are already supported.

## Known failure modes

- Unsupported language pair returns an error
- Payment failure or insufficient USDC balance on Base mainnet causes 402 response
- Missing or malformed request body returns 400
- Empty or null text input may return error or empty result
- Network/Vercel hosting outage causes 503

## How this service works

Paid API with real data: AI/LLM, crypto prices, web search, translation, trending topics, sentiment analysis, aggregator, and more. All endpoints use x402 protocol on Base mainnet.

## Output

Returns the translated text in the target language as a response to the POST request, after a $0.04 USDC micropayment via the x402 protocol on Base mainnet.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-demo-api-text-translation-f6008d46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-demo-api-theta.vercel.app](https://www.zero.xyz/host/x402-demo-api-theta.vercel.app/llms.txt)
