Mika Scraper / DeepfakeInput
Interface: DeepfakeInput
Defined in: src/deepfake/deepfake.ts:6
The DeepfakeInput
interface represents the input required for image transformations using the DeepfakeMaker.io service.
Properties
buffer
Type: Buffer
Defined in: src/deepfake/deepfake.ts:7
The raw binary data of the image to be transformed. This property must be provided for the transformation process to occur.
prompt
Type: string
Defined in: src/deepfake/deepfake.ts:8
A textual prompt that guides the transformation of the provided image. This can include specific instructions or descriptions to influence the outputโs characteristics.
Example
const deepfakeInput: DeepfakeInput = {
buffer: Buffer.from(imageData),
prompt: "Transform the image into a cartoon version."
};
Last updated on