Skip to Content
Mika Scraper 1.1.1 is released ๐ŸŽ‰
๐Ÿ• MIKA INTERFACEInterface: ImageToPromptOptions

Interface: ImageToPromptOptions

Defined in: src/_other-scraper/imagetoprompt.ts:7

Options required to generate a prompt from an image.

Properties

imageUrl

imageUrl: string

Defined in: src/_other-scraper/imagetoprompt.ts:8

The URL of the image from which a prompt will be generated. This property is required to specify the source of the image.

imageBuffer?

optional imageBuffer: Buffer<ArrayBufferLike>

Defined in: src/_other-scraper/imagetoprompt.ts:9

An optional property that allows the developer to provide the raw binary data of an image. It can be used in scenarios where the image is not accessible via a URL but is available as a buffer, such as in local file uploads or streams. If provided, this will be utilized for prompt generation instead of the imageUrl.

Last updated on