Translate text from one language to another for multilingual communication, content localization, and language learning
Basic usage
Send a text input to translate it into another language:
Copy
import Bytez from 'bytez.js'const sdk = new Bytez("BYTEZ_KEY");const model = sdk.model("Helsinki-NLP/opus-mt-en-zh");await model.create()const { error, output } = await model.run("Hello, how are you? Beautiful day today, isn't it?");console.log({ error, output })