{"uid":"cap_06EX4BC24mIKjSU8DpSrF","slug":"x402-gateway-text-translation-meta-m2m100-50a89bd0","name":"x402-gateway Text Translation (Meta M2M100)","description":"Use when you need to translate text, a language translation or a text translation of a sentence or paragraph between two languages. Do not use for formatting that must be preserved, certified or legal translation, or speech (transcribe first). Returns JSON with text translation between about 100 languages by Meta M2M100 1.2B on Workers AI: the translated text with the source and target languages used for 0.012 USDC per call. Typical response time 5000 ms (p95). Category: Inference.","url":"https://x402-gateway.blackwoodstate8.workers.dev/v1/translate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["text","to"],"properties":{"to":{"type":"string","pattern":"^[a-z]{2,3}$","description":"Target language as an ISO 639-1 code, e.g. es, fr, pt, de, ja, zh"},"from":{"type":"string","pattern":"^[a-z]{2,3}$","description":"Source language as an ISO 639-1 code (default en)"},"text":{"type":"string","maxLength":2000,"minLength":1,"description":"Text to translate, e.g. Pay only for the requests you make (up to 2000 characters)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["translatedText","from","to","model"],"properties":{"to":{"type":"string"},"from":{"type":"string"},"next":{"type":"object","required":["service","tool","method","url","useWhen","sample"],"properties":{"url":{"type":"string","description":"Paid route of the next call"},"tool":{"type":"string","description":"MCP tool name of the same call"},"method":{"enum":["GET","POST"],"type":"string"},"sample":{"type":"string","description":"Free fixed sample of the whole family"},"service":{"type":"string","description":"Service id of the suggested next paid call"},"useWhen":{"type":"string","description":"When the next call is the right one"}},"description":"Suggested next paid call in the same family (call it in a loop when the task continues)","additionalProperties":false},"model":{"type":"string"},"translatedText":{"type":"string"}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"to":"pt","from":"en","model":"@cf/meta/m2m100-1.2b","translatedText":"Pague apenas pelos pedidos que você faz."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bVuGTNPhlhjdmLdJK8wG9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Translates text between approximately 100 languages using Meta's M2M100 1.2B model, returning translated text with source and target language identifiers.","exampleAgentPrompt":"Translate this into Spanish: 'Thank you for your order. Your package will arrive in 3-5 business days.'","exampleUseCases":[{"title":"Customer support localization","prompt":"Translate this support reply into French: 'We have received your complaint and our team will respond within 24 hours. We apologize for the inconvenience.'"},{"title":"E-commerce product description translation","prompt":"Translate this product description from English to Japanese: 'Lightweight running shoes with breathable mesh upper and cushioned sole for everyday training.'"},{"title":"Multilingual social media post","prompt":"Can you translate 'Excited to announce our new product launch this summer!' into German, Portuguese, and Korean?"}],"resultDescription":"A JSON object containing the translated text, the source language code used (defaulting to 'en' if not specified), the target language code, and the name of the model that performed the translation. Optionally includes a 'next' field suggesting a related paid call.","failureModes":["Unsupported language code returns an error — only ISO 639-1 codes for supported M2M100 languages are valid","Text exceeding 2000 characters is rejected by schema validation","Missing required 'to' field causes a 400-level error","Payment failure (insufficient USDC balance) blocks the request","High load may push response beyond 5000ms p95 latency","Low-resource languages may produce lower-quality translations"],"whenToPreferThis":"Choose this endpoint when you need fast, affordable machine translation between any of ~100 languages without needing certified, legal, or formatting-preserving output. It is ideal for translating plain text such as messages, product descriptions, support replies, or social media posts. Prefer alternatives when you need certified translation, rich-text/document formatting preservation, or real-time speech translation (transcribe audio first, then call this endpoint).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:31:09.386Z","isFirstParty":false,"canonicalSlug":"x402-gateway-text-translation-meta-m2m100-50a89bd0"}