{"provider":{"title":"Translate","description":"Translate text between 30+ languages using Workers AI (m2m100) with a MyMemory fallback. Input: text to translate, source language code, and target language code (ISO 639-1). Output: translated text, detected source language, and translation match score.","price":{"currency":"USD","amountCents":0.2,"amountMicrodollars":2000,"unit":"call"},"runContract":{"method":"POST","endpointPath":"/run","inputSchema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":5000,"description":"The text to translate (max 5000 characters)"},"sourceLang":{"type":"string","minLength":2,"maxLength":5,"description":"Source language code (ISO 639-1, e.g. \"en\", \"fr\", \"de\", \"es\")"},"targetLang":{"type":"string","minLength":2,"maxLength":5,"description":"Target language code (ISO 639-1, e.g. \"it\", \"ja\", \"zh\", \"pt\")"}},"required":["text","sourceLang","targetLang"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"translatedText":{"type":"string","description":"The translated text"},"detectedSourceLanguage":{"type":"string","description":"The detected or confirmed source language code"},"matchScore":{"type":"number","description":"Translation confidence/match score (0-1)"}},"required":["translatedText","detectedSourceLanguage","matchScore"],"additionalProperties":false}}}}