AI text translation into 180+ languages API

AI translation of up to 8,000 characters into a target language given as an ISO 639-1 code or English name (with optional region or script, e.g. pt-BR, zh-Hant). Returns the translated text, detected source language, target language, character counts and a truncation flag. Machine translation by Anthropic Claude under a fixed Kit Rx prompt that asks it to keep formatting, numbers, URLs and names; may contain errors; not a certified translation.

$0.005 per call  USDC over x402 v2 on Base, Polygon, Arbitrum, Avalanche or Sei. No signup, no API key. Requests that fail or match nothing are not charged.

Endpoint

GET https://api.kit-rx.com/v1/text/translate

Parameters

NameTypeRequiredDescription
textstringyesText to translate, up to 8000 characters (URL-encoded in the query string). Line breaks and Markdown are preserved. e.g. Our office will be closed on Monday for the holiday. Orders placed over the weekend will ship on Tuesday.
tostringyesTarget language: ISO 639-1 code (es, ja, zh, de) or English name (Spanish, Japanese), optionally with a region or script subtag (pt-BR, zh-Hant, es-419). e.g. es
fromstringnoSource language in the same forms as to. Detected automatically when omitted. e.g. en

Example request

https://api.kit-rx.com/v1/text/translate?text=Our+office+will+be+closed+on+Monday+for+the+holiday.+Orders+placed+over+the+weekend+will+ship+on+Tuesday.&to=es

Without payment the server answers 402 Payment Required with the price (5000 atomic USDC) in the PAYMENT-REQUIRED header. Any x402 v2 client pays and retries automatically. A request with no parameters runs this example.

curl -i "https://api.kit-rx.com/v1/text/translate?text=Our+office+will+be+closed+on+Monday+for+the+holiday.+Orders+placed+over+the+weekend+will+ship+on+Tuesday.&to=es"

Pay from an agent

AgentCash: fetch the URL. OpenDexter MCP: x402_fetch. Kit Rx MCP server: https://api.kit-rx.com/mcp. Code:

import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.BUYER_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://api.kit-rx.com/v1/text/translate?text=Our+office+will+be+closed+on+Monday+for+the+holiday.+Orders+placed+over+the+weekend+will+ship+on+Tuesday.&to=es");
console.log(await res.json());

Example response

{
  "query": {
    "text_chars": 105,
    "to": "es",
    "from": null
  },
  "result": {
    "translated_text": "Nuestra oficina estará cerrada el lunes por el feriado. Los pedidos realizados durante el fin de semana se enviarán el martes.",
    "detected_source_language": {
      "code": "en",
      "name": "English"
    },
    "source_language_given": null,
    "target_language": {
      "code": "es",
      "name": "Spanish"
    },
    "chars_in": 105,
    "chars_translated": 105,
    "chars_out": 126,
    "truncated": false,
    "model_family": "Claude",
    "ai_generated": true
  },
  "sources": [
    {
      "name": "Anthropic Claude (AI-generated text)",
      "url": "https://www.anthropic.com/claude"
    }
  ],
  "notes": [
    "Machine translation generated by Anthropic Claude under a fixed Kit Rx prompt; it may contain errors and is not a certified translation."
  ],
  "generated_at": "2026-11-15T05:52:29.815Z"
}

Kit Rx: Pay-per-call data and safety tools for AI agents, paid in USDC over x402. No signup, no API key. Machine-readable: OpenAPI, llms.txt, /.well-known/x402, agent skills.