# AgentFeed Translate API

> AgentFeed Translate API is a paid API for AI agents from agentfeed.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Translates text from one language to another using ISO 639-1 language codes, returning the translated text with confidence score and character count

## Facts

- Endpoint: POST https://agentfeed.up.railway.app/api/v1/translate
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfeed-translate-api-2d2024a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T343lRycgWq6r-F_-ysCT

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 agentfeed-translate-api-2d2024a1 -d '<json body>'
```

Example prompt: Translate this text to Spanish: 'Welcome to our platform, we hope you enjoy your experience here.' — auto-detect the source language and tell me the confidence score.

## When to prefer this

Choose this endpoint when you need a pay-per-call translation service integrated into an x402 micropayment workflow, especially for AI agents that require on-demand translation without subscription overhead. Ideal for agents that infrequently translate text and want per-call billing at $0.005 USDC, with language detection support when source language is unknown.

## Known failure modes

- Missing required 'to' field returns 400 error
- Missing required 'text' field returns 400 error
- Unsupported or invalid ISO 639-1 language code returns error
- Payment not included or insufficient USDC triggers 402 Payment Required
- Text too long may exceed limits and return an error
- Unknown source language when 'from' is omitted may reduce confidence

## How this service works

Six payment-gated endpoints for AI agents: content extraction, price oracle, URL unfurling, web search, RSS parsing, and translation.

## Output

Returns a JSON object containing the translated text, the detected or specified source language code, the target language code, the original input text, the character count of the translated text, and a confidence score (0-1) indicating translation confidence.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "to",
  "text"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "Target language code (ISO 639-1)"
  },
  "from": {
   "type": "string",
   "description": "Source language code (ISO 639-1)"
  },
  "text": {
   "type": "string",
   "description": "Text to translate"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "original": {
   "type": "string"
  },
  "charCount": {
   "type": "integer"
  },
  "confidence": {
   "type": "number"
  },
  "translated": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfeed-translate-api-2d2024a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentfeed.up.railway.app](https://www.zero.xyz/host/agentfeed.up.railway.app/llms.txt)
