# fastapi.online Text Translation

> fastapi.online Text Translation is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Translates text from one language to another, with optional source language specification and auto-detection

## Facts

- Endpoint: POST https://api.fastapi.online/translate
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-text-translation-4bcc821d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H5ppu9h0uI8fQ4fY_yrtg

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 fastapi-online-text-translation-4bcc821d -d '<json body>'
```

Example prompt: Translate this text into French: 'The new product launch exceeded our expectations and customer feedback has been overwhelmingly positive.'

## When to prefer this

Choose this endpoint when you need a pay-per-call translation API with no signup required and crypto payment support via x402. It is well-suited for agents that need on-demand translation without committing to a subscription, or when integrating translation into automated pipelines that pay per use. The free-tier API key option also makes it easy to prototype without any payment setup.

## Known failure modes

- Missing required 'text' or 'target_lang' field returns a 422 validation error
- Unsupported language code returns an error or poor-quality translation
- Very long text inputs may be truncated or rejected
- Payment failure (402) if USDC balance is insufficient
- Network timeout for unusually large translation requests
- Ambiguous or mixed-language input may produce inaccurate source language detection

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns a JSON object containing the translated text in the target language, the target language code, and the detected or specified source language code (which may be null if not detected).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8000,
   "minLength": 1
  },
  "source_lang": {
   "type": "string",
   "maxLength": 40
  },
  "target_lang": {
   "type": "string",
   "maxLength": 40,
   "minLength": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-text-translation-4bcc821d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
