{"uid":"cap__nYKuvvh1xuG9lEF15uoY","slug":"m2m100-multilingual-text-translation-6ee3403b","name":"M2M100 Multilingual Text Translation","description":"Translate text between 100 languages (m2m100): up to 5,000 characters, target language as an ISO 639-1 code; the source language is detected when not given.","url":"https://onchaincheck.dev/ai/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","pattern":"^[a-z]{2,3}$","description":"Target language (fr, es, de, ja, zh...)"},"from":{"type":"string","pattern":"^[a-z]{2,3}$","description":"Source language; detected when omitted"},"text":{"type":"string","pattern":"^[\\s\\S]+$","maxLength":5000,"description":"Text to translate"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pkPtCljA99hEs6oWIqrtn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Translates up to 5,000 characters of text between 100 languages using the M2M100 model, with automatic source language detection.","exampleAgentPrompt":"Translate this text into Japanese — 'Our new product launches next week and we're excited to share it with you' — and auto-detect the source language.","exampleUseCases":[{"title":"Localize marketing copy to Spanish","prompt":"Take this product description — 'Lightweight and durable, our backpack is perfect for everyday adventures' — and translate it into Spanish for our Latin American campaign."},{"title":"Auto-detect and translate customer message","prompt":"I just got a support ticket that looks like it might be in French or Italian — can you translate it to English? The message is: 'Je n'arrive pas à me connecter à mon compte depuis hier.'"},{"title":"Multilingual content pipeline for Japanese","prompt":"Translate the following English blog excerpt into Japanese so I can post it on our Tokyo site: 'Artificial intelligence is transforming the way businesses operate around the world.'"}],"resultDescription":"Returns the translated text in the specified target language, along with the detected or confirmed source language identifier. Output is plain translated content ready for direct use.","failureModes":["Missing required 'text' or 'to' parameter returns an error","Invalid or unsupported ISO 639-1 language code causes a failure response","Text exceeding 5,000 characters is rejected","Ambiguous or very short text may result in inaccurate auto-detection of source language","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need fast, affordable machine translation across a wide range of 100 languages with automatic source language detection, especially in agentic workflows where low per-call cost ($0.003 USDC) and simplicity matter. Prefer it over heavyweight NLP APIs when you only need translation without additional NLP features.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:34:32.679Z","isFirstParty":false,"canonicalSlug":"m2m100-multilingual-text-translation-6ee3403b"}