Skip to content

Latest commit

 

History

History
51 lines (26 loc) · 871 Bytes

generateImage.md

File metadata and controls

51 lines (26 loc) · 871 Bytes

@ai16z/eliza v1.0.0 / 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:719