Skip to main content
Use generate() for full control over text generation with detailed performance metrics.

LLMGenerationResult

The result object contains comprehensive metrics:

LLMGenerationOptions

Customize generation behavior:

Example: Creative Writing

Example: Factual Response

Cancel Generation

Cancel an ongoing generation: