{"uid":"cap_8LWtS8Dl7XocIrBLDRCze","slug":"text-translation-api-28-languages-auto-detect-a0ff7c89","name":"Text Translation API (28 Languages, Auto-Detect)","description":"Invoice-to-JSON, on-chain tools (transaction explainer + payment check, wallet profile, contract ABI, ERC-20 token risk), company contacts and web-to-RAG for AI agents. Pay per call with x402 (USDC on Base). No signup, no API key.","url":"https://freetier-agent-api.pages.dev/api/translate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text","to"],"properties":{"to":{"type":"string","description":"target language code, e.g. de"},"from":{"type":"string","description":"optional source language code"},"text":{"type":"string","description":"text to translate (max 3,000 chars)"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"de","from":"auto","translation":"Danke für das Gespräch heute, hier sind die versprochenen Informationen."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j7EeKyEGcc0-biZ1YRh4L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Translates up to 3,000 characters of text into one of 28 supported languages with automatic source language detection, powered by a small LLM on Cloudflare Workers AI.","exampleAgentPrompt":"Can you translate this customer message into German: 'Thank you for your purchase, your order will arrive within 3 business days.'","exampleUseCases":[{"title":"Customer support multilingual reply","prompt":"Translate this support response into French so I can send it to a French-speaking customer: 'We have received your refund request and will process it within 5 business days.'"},{"title":"Product description localization","prompt":"I need this product description translated into Japanese: 'Our organic coffee beans are sourced directly from small farms in Colombia and roasted fresh weekly.'"},{"title":"User-generated content moderation","prompt":"Translate this user review into English so I can read it — it's in Arabic: 'المنتج رائع والتوصيل كان سريعاً جداً، سأشتري مرة أخرى بالتأكيد.'"}],"resultDescription":"A JSON object containing the translated text string, the detected or specified source language code, and the target language code (e.g. {\"to\": \"de\", \"from\": \"auto\", \"translation\": \"Danke für das Gespräch heute...\"}).","failureModes":["Text exceeds 3,000 character limit — request rejected or truncated","Unsupported target language code provided — returns error","Malformed query parameters — missing required 'text' or 'to' fields","Workers AI model timeout or rate limit — 5xx response","Payment not processed (x402 protocol) — 402 response blocking the call"],"whenToPreferThis":"Choose this endpoint when you need fast, inexpensive ($0.005/call) text translation into one of 28 common languages with automatic source detection, especially in agent workflows where you don't know the source language in advance. Ideal for short-to-medium text (under 3,000 chars). Prefer alternatives for very large documents, specialized domains (legal/medical), or languages outside the supported 28.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:56:00.097Z","isFirstParty":false,"canonicalSlug":"text-translation-api-28-languages-auto-detect-a0ff7c89"}