# x402 AI Gateway - Text Translation

> x402 AI Gateway - Text Translation is a paid API for AI agents from x402-ai-gateway-rosy.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Translates input text into a specified target language using Gemini 2.0 Flash, payable with USDC on Base or Solana via x402 protocol

## Facts

- Endpoint: POST https://x402-ai-gateway-rosy.vercel.app/api/translate?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-gateway-text-translation-76288344
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lNNJ-ZtWjyoE_66ADkEzY

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-ai-gateway-text-translation-76288344 -d '<json body>'
```

Example prompt: Translate this text to Spanish: 'Welcome to our platform. We are glad to have you here.' — using the x402 AI Gateway translation endpoint.

## When to prefer this

Choose this endpoint when you need lightweight, on-demand AI text translation without a subscription, want to pay per-call in USDC on Base or Solana, and want translations powered by Google's Gemini 2.0 Flash model. Ideal for agents operating in crypto-native environments or when avoiding traditional API key billing.

## Known failure modes

- Missing required field 'text' — returns 400 Bad Request
- Missing required field 'targetLanguage' — returns 400 Bad Request
- Unsupported or unrecognized target language — may return an error or fallback result
- Payment not completed or insufficient USDC balance — returns 402 Payment Required
- Model unavailability or upstream Gemini API failure — returns 500 or service error
- Overly long input text exceeding model context limits — may return truncated or error response

## How this service works

AI-powered API endpoints powered by Gemini 2.0 Flash. Pay with USDC on Base or Solana.

## Output

A JSON object containing the translated version of the input text in the specified target language, generated by Gemini 2.0 Flash.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text",
  "targetLanguage"
 ],
 "properties": {
  "text": {
   "type": "string"
  },
  "targetLanguage": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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