Generative API Overview
The Generative API allows you to generate content independently of any attached data. It is versatile and supports various configurations for flexible use cases.
The API has the following methods available:
.generate.text()
: Generates text based on prompts or message arrays..generate.json()
: Generates structured JSON based on prompts, messages, or schemas.
Each method supports optional settings to control output style, length, and other properties.
For detailed examples and usage instructions, see: