Generate text from input text for applications like text completion, content generation, and dialogue systems
Basic usage
Send a prompt to a model to generate text:
Copy
import Bytez from 'bytez.js'const sdk = new Bytez("BYTEZ_KEY");const model = sdk.model("google/flan-t5-base");await model.create()const { error, output } = await model.run( "Once upon a time there was a beautiful home where", { max_new_tokens: 200, min_new_tokens: 50, temperature: 0.5 });console.log({ error, output })