{"uid":"cap_H9Lmhx6A7QLGHty1qeB0f","slug":"nojunk-speech-text-translation-2b948ded","name":"NoJunk Speech – Text Translation","description":"Speech translate: Translate text (up to 5,000 characters) between 100 languages, ISO 639-1 codes in and out (Meta M2M100 1.2B).","url":"https://nojunk-speech.mick8511.workers.dev/translate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to translate (1 to 5000 characters)"},"source_lang":{"type":"string","description":"Optional source language code, default \"en\""},"target_lang":{"type":"string","description":"Target language, ISO 639-1 code such as \"es\", \"fr\", \"de\", \"zh\", \"ja\" (100 languages)"}}},"responseSchema":{"type":"json","example":{"model":"@cf/meta/m2m100-1.2b","input_chars":47,"source_lang":"en","target_lang":"es","generated_at":"2026-10-15T12:00:00.000Z","translated_text":"La reunión se ha trasladado al jueves a las 3 de la tarde."}},"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_NZSd04m3IMX-92xzoKA9E","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 (up to 5000 characters) from one language to another across 100 languages using Meta's M2M100 model, returning the translated text with metadata.","exampleAgentPrompt":"Translate this text from English to Spanish: 'The meeting has been moved to Thursday at 3pm.'","exampleUseCases":[{"title":"Multilingual customer support bot","prompt":"Translate this customer message from English to French so I can send it to our French support team: 'Your order has been shipped and should arrive within 3 business days.'"},{"title":"App UI localization pipeline","prompt":"I need to localize this UI string into Japanese — translate 'Welcome back! Your session has been restored.' from English to Japanese."},{"title":"Real-time chat translation","prompt":"Translate this incoming chat message from German to English: 'Ich kann mich nicht in mein Konto einloggen, bitte helfen Sie mir.'"}],"resultDescription":"A JSON object containing the translated text in the target language, the model used (Meta M2M100-1.2B), the source and target language codes, the number of input characters processed, and a timestamp of when the translation was generated.","failureModes":["Text exceeds 5000 character limit — request rejected","Invalid or unsupported ISO 639-1 language code — translation fails or returns error","Empty text input — validation error returned","Unsupported language pair for M2M100 model — poor or failed translation","Payment not authorized — 402 response before processing","Network timeout on Cloudflare Workers edge — transient failure"],"whenToPreferThis":"Choose this endpoint when you need fast, pay-per-call text translation without a monthly subscription, particularly in agentic workflows where translation is an occasional rather than high-volume need. Ideal when working within a USDC/x402 payment environment on Base. Best for texts under 5000 characters; not suited for document-level or batch translation jobs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T13:21:47.906Z","isFirstParty":false,"canonicalSlug":"nojunk-speech-text-translation-2b948ded"}