scrapegen - free deep dream text2image.
Note that this is for educational purposes only!
Installation:
npm install scrapegen
Description:
A webscraper that generates a fake account on deepdreamgenerator.com and uses the free tokens to generate a single image within 90 seconds. You can use it with no ratelimits and in parallel, however I am in no way condoning such behaviour and I am not responsible if you are to get banned using this. Please read their info and guidelines properly.
All possible settings/models/options etc:
It's all in config.ini.example
Functions:
.generate( config, callback (optional) )
An asynchronous function that returns the image link once done processing. You can also pass in a callback function.
scrapegen.generate({
prompt: "Japanese Woman",
model: 'PhotoReal',
aspect_ratio: 'Portrait',
quality: 'High',
negative_prompt: `ugly, scary, mangled, cross eye, abstract, weird`,
face_enhance: 'Normal',
upscale_and_enhance: '1MP',
follow_model_style: 'true'
}, callback = (link => console.log(`Generated image: ${link}`) ))
.generate_from_ configini( path_to_config.ini, callback (optional) )
An asynchronous function like the one above that generates an image based on a prompt from a config.ini file. The format for the config.ini file is provided in config.ini.example
.
async function getImage() {
let image_link = await scrapegen.generate_from_configini('path/to/config.ini');
console.log(link)
}
( async () => await getImage() )()
.exampleData
Returns some example data from config.ini
to play around with. Use it with .generate
instead of your own prompt to test it out.
let link = await scrapegen.generate( scrapegen.exampleData )
Usage Examples
Example 1: Generating a cyberpunk version of Mona Lisa lookalike and then opening the generated image in our default browser.
const scrapegen = require('scrapegen');
const open = require('open');
(async () =>
await scrapegen.generate({
prompt: `a cyberpunk painting of a cyberpunk monalisa wearing cyberpunk intricate streetwear, , woman with long cyberpunk hair and a smile on her face and neon tattoos, with a green background and a blue cyberpunk city, volumetric lighting, inceoglu dragan bibin hans thoma greg rutkowski alexandros pyromallis nekro rene margitte illustrated, fine details, realistic shaded, 4k, hyper detailed, beautiful, detailed portrait, cell shaded, 4 k, vivid colours, concept art, by wlop, ilya kuvshinov, artgerm, krenz cushart, greg rutkowski, pixiv. cinematic dramatic atmosphere, sharp focus, volumetric lighting, cinematic lighting, studio quality`,
model: 'Quantum (v2)',
aspect_ratio: 'Portrait',
quality: 'High',
negative_prompt: `cartoon, bad art, bad artist, mutated`,
face_enhance: 'Normal',
upscale_and_enhance: '1MP',
follow_model_style: 'false'
})
.then(image_link => {
open(image_link);
})
.catch(e => {
console.log(`Yikes! Hit an error:\n${e}`)
})
)()
Example 2: Using a config.ini
file to generate an image and logging it to the console with a callback arguement.
const scrapegen = require('scrapegen');
async function getImage() {
await scrapegen.generate_from_configini('./custom_config.ini', ( link => console.log(`Generated Image: ${link}`)) );
}
console.log("Generating image...");
( async () => await getImage() )();
⚠️ Pictures of AI generated women ahead, might be unsuitable if you're at work.
Results:
Show Result Images
Dependencies: