Mika Scraper / MagicStudioArt
Function: MagicStudioArt()
MagicStudioArt(
prompt
):Promise
<string
>
Defined in: src/magic-studio/magic-studio.ts:22
The MagicStudioArt
function interacts with MagicStudioβs AI art generator to create and upload images based on a provided prompt. The result is uploaded to Catbox for easy access.
Parameters
prompt
- Type:
string
- Description: A descriptive string detailing the image that MagicStudio should generate. The prompt should be clear and specific to enhance the quality of the generated artwork.
Returns
- Type:
Promise
<string
> - Description: A promise that resolves to a URL pointing to the uploaded image located on catbox.moe.
Example
async function generateArt() {
const imageUrl = await MagicStudioArt("A futuristic city skyline at sunset");
console.log("Uploaded image available at:", imageUrl);
}
Last updated on