Early Beta — The Web SDK is in early beta. APIs may change between releases.
Overview
TheTextGeneration.generate() method with default options provides the simplest way to generate text. For a one-line approach, just pass a prompt and get a result.
Basic Usage
API Reference
Parameters
Returns
Throws
Examples
Simple Q&A
With Options
Error Handling
Simple vs Full Generation
Related
Generate
Full generation with options and metrics
Streaming
Real-time token streaming