Skip to Content
Mika Scraper 1.1.1 is released ๐ŸŽ‰
๐Ÿƒ MIKA FUNCTIONFunction: text2nsfw()

Mika Scraper v1.1.2


Mika Scraper / text2nsfw

Function: text2nsfw()

text2nsfw(prompt, options): Promise<string[]>

Defined in: src/_other-scraper/text2nsfw.ts:58

Generates NSFW-styled artwork based on a textual prompt.

Parameters

prompt

string
A textual description of the desired image. This serves as the main input for generating the artwork.

options

Text2NSFWOptions (optional)
An object containing optional parameters that control various aspects of the artwork generation, such as model, style, and image ratio. Defaults to an empty object ({}) if not provided.

Returns

Promise<string[]>
A promise that resolves to an array of image URLs corresponding to the generated artwork.

Example

import { text2nsfw } from 'mika-scraper'; const prompt = "A beautiful sunset over the ocean"; const options = { style: "realistic", ratio: "16:9" }; text2nsfw(prompt, options).then(imageUrls => { console.log(imageUrls); // Outputs an array of generated image URLs });
Last updated on