{"uid":"cap_Ys5YmdfCdNFnR_oO38O4M","slug":"agent-toolbox-text-translation-534ad943","name":"Agent Toolbox – Text Translation","description":"Translate text (up to 5,000 characters) between 100 languages with M2M100 1.2B.","url":"https://agent-toolbox.zafermemon87.workers.dev/v1/translate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"source_lang":{"type":"string","description":"Default english"},"target_lang":{"type":"string","description":"Language name or code, e.g. french or fr"}}},"responseSchema":{"type":"json","example":{"model":"m2m100-1.2b","plain":"Où se trouve la gare ?","source_lang":"english","target_lang":"french","translated_text":"Où se trouve la gare ?"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JgVppTnKMhuRNcEa5zEfP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Translates text from one language to another using the m2m100-1.2b model, with configurable source and target languages","exampleAgentPrompt":"Translate 'Where is the train station?' from English to French for me.","exampleUseCases":[{"title":"Multilingual customer support bot","prompt":"Translate this customer message from Spanish to English so I can respond: 'Necesito ayuda con mi pedido, no llegó a tiempo.'"},{"title":"Localize marketing copy","prompt":"I need to translate our English tagline 'Experience the future of travel' into Japanese for our Tokyo campaign."},{"title":"Real-time chat translation","prompt":"A user just sent a message in German — 'Wie kann ich mein Konto löschen?' — translate it to English so the support agent can reply."}],"resultDescription":"A JSON object containing the translated text, the model used (m2m100-1.2b), the detected or specified source language, and the target language. Example: {\"model\":\"m2m100-1.2b\",\"plain\":\"Où se trouve la gare ?\",\"source_lang\":\"english\",\"target_lang\":\"french\",\"translated_text\":\"Où se trouve la gare ?\"}","failureModes":["Unsupported language code or name returns an error or untranslated output","Very long text inputs may be truncated or rejected","Ambiguous source language without specifying source_lang may yield incorrect translation","Payment failure via x402 results in 402 response before translation occurs","Low-resource languages may produce lower quality translations with m2m100-1.2b"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call translation API without a subscription or API key setup, especially inside an AI agent workflow where micropayments via x402 are already supported. It is ideal for single-sentence or short-paragraph translations across a wide range of languages, billed at $0.002 USDC per call. Prefer alternatives like DeepL or Google Translate APIs for high-volume production use or when translation quality is critical for professional publishing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T12:30:41.160Z","isFirstParty":false,"canonicalSlug":"agent-toolbox-text-translation-534ad943"}