Interface: IImageGenerationBrainService<TSettings>
Service for generating images from text
Type parameters
| Name | Description |
|---|---|
TSettings | The type of the brain settings |
Hierarchy
↳
IImageGenerationBrainService
Table of contents
Methods
Methods
generateImage
▸ generateImage(prompts, context): Promise<BrainPromptResponse>
Generates an image from the prompt
Parameters
| Name | Type | Description |
|---|---|---|
prompts | ImageGenerationBrainPrompt[] | The prompts to send to the brain |
context | IBrainPromptContext<TSettings> | Some additional data we can send to the brain along with the prompt |
Returns
Promise<BrainPromptResponse>
The response from the brain