Mika Scraper / TextToGhibli
Function: TextToGhibli()
TextToGhibli(
options
):Promise
<string
>
Defined in: src/ghibli/ghibli.ts:29
Generates an image using the Ghibli AI Image Generator and uploads it to Catbox.
Parameters
options
An object that specifies the generation parameters, including the prompt and the desired Ghibli style.
Returns
Promise
<string
>
A promise that resolves to a publicly accessible URL of the generated image.
Throws
An Error
if the generation or upload process fails.
Example
import { TextToGhibli } from 'mika-scraper';
const options = {
prompt: "A dreamy landscape in the style of Studio Ghibli",
style: "Spirited Away"
};
TextToGhibli(options)
.then(url => {
console.log("Generated image URL:", url);
})
.catch(err => {
console.error("Error generating image:", err);
});
Last updated on