Skip to main content

Interface: IImageGenerationBrainService<TSettings>

Service for generating images from text

Type parameters

NameDescription
TSettingsThe type of the brain settings

Hierarchy

Table of contents

Methods

Methods

generateImage

generateImage(prompts, context): Promise<BrainPromptResponse>

Generates an image from the prompt

Parameters

NameTypeDescription
promptsImageGenerationBrainPrompt[]The prompts to send to the brain
contextIBrainPromptContext<TSettings>Some additional data we can send to the brain along with the prompt

Returns

Promise<BrainPromptResponse>

The response from the brain

Defined in

models/brainService.ts:186