Skip to main content

@ai16z/eliza v0.1.6-alpha.4 / generateImage

Function: generateImage()

generateImage(data, runtime): Promise<object>

Parameters

data

data.prompt: string

data.width: number

data.height: number

data.count?: number

data.negativePrompt?: string

data.numIterations?: number

data.guidanceScale?: number

data.seed?: number

data.modelId?: string

data.jobId?: string

runtime: IAgentRuntime

Returns

Promise<object>

success

success: boolean

data?

optional data: string[]

error?

optional error: any

Defined in

packages/core/src/generation.ts:925