top of page
Writer's picturemansour ansari

Midjourney AI Prompt Generator

Updated: May 28, 2023

Recently, I've been immersing myself in the intriguing realm of Midjourney and various other image generators and AI systems. It's been a journey of trial and error, figuring out how to create effective prompts for Midjourney. Despite the steep learning curve, I'm genuinely grateful for the experience. It's brought me back to my roots when I crafted my very first webpage—coded entirely by hand without the luxury of an HTML editor. Now that I think about it, the HTML tags are not many, but Midjourny has an extensive vocabulary that one must master to make it behave exactly or closely to your artistic vision.


Now, I find myself at a similar juncture. Just like I once needed an HTML editor, which I ended up with Microsoft and Adobe Dreamweaver later and took these products to their limit. I now see the necessity for a prompt generator tailored to Midjourney. Why? Because I am lazy. I like the computer to do the tedious part. And why stop there? As I evolve this tool, I envision accommodating more AI systems down the line. It's a thrilling prospect that opens up a world of possibilities for creative expression and AI exploration. So, today, I'm thrilled to share with you an exciting project I've been engrossed in. If you've been following my journey, you know I've been delving into the fascinating world of Midjourney AI. Today, I'm taking it a step further with a tool I've developed: the Midjourney Prompt Generator.


What's this, you ask? 🧐


It's a custom program designed to construct creative and targeted prompts that Midjourney AI can utilize to produce impressive artwork tailored to our vision. Imagine guiding an AI to create imagery in Cyberpunk, Gothic, Victorian, or any style you fancy! This tool provides an accessible and effective way to assemble your prompt.


Here's how it works:


1️⃣ Install Visual Studio Community Version – it's free and user-friendly!

2️⃣ Follow my guide to construct your own Prompt Generator using the Visual Studio.

3️⃣ Begin crafting remarkable prompts for generating unique AI artwork.


4️⃣ Check out the console program code below (I'll be sharing in my next post), it's the engine behind the Prompt Generator. This is where the magic happens!


using System;

using System.Collections.Generic;


namespace MidjourneyPromptGenerator

{

class Program

{

static void Main(string[] args)

{

// Define prompt options

var styles = new List<string> {"Hyper-realistic", "Accent lighting", "Global illumination", "Cinematic"};

var subjects = new List<string> {"National Geographic", "Immersive", "Black background"};

var ratios = new List<string> {"16:9", "4:3", "1:1"};

// ... Add more options as needed


Console.WriteLine("Welcome to the Midjourney Prompt Generator!");


// Get user input for style

Console.WriteLine("Please choose a style:");

for (int i = 0; i < styles.Count; i++)

{

Console.WriteLine($"{i + 1}. {styles[i]}");

}

int styleIndex = int.Parse(Console.ReadLine()) - 1;


// Get user input for subject

// ... Repeat the above process for each option


// Generate the prompt

string prompt = GeneratePrompt(styles[styleIndex], subjects[subjectIndex], ratios[ratioIndex]);

Console.WriteLine($"Your generated prompt is: {prompt}");

}


static string GeneratePrompt(string style, string subject, string ratio)

{

// Customize this function to build the prompt in the way you want

return $"{style}::5, {subject}::10, --ar {ratio} --v 5 --q 2";

}

}

}


I'm currently working on a GUI for this console program, aiming to transform it into a Windows desktop application. And that's not all – I have plans to eventually port it over to Android, making it accessible to more people.


AI has unfurled a universe of opportunities. The boundaries between the artist and the tool are becoming increasingly fuzzy, and the results are genuinely breathtaking. This Prompt Generator is one step closer to bridging the gap between our imagination and the AI's capabilities.


Stay tuned for a comprehensive guide on my Quantumblogger page and LinkedIn, where I'll dive into the nuts and bolts of this exhilarating venture. Let's stride into the future together and discover how AI can augment our creative abilities!










These are some sample art I have created using complex prompts. I like to make it easier for the average artist to do this from a user interface, drag and drop and submit!


21 views

Comments


bottom of page