DEV Community

Jason Wei
Jason Wei

Posted on

I Built a Tool to Reverse-Engineer AI Prompts From Images — Here's What I Learned

A few months back I kept running into the same annoying loop: I'd see an AI-generated image with a style or lighting I loved, and have zero idea what prompt would get me something similar. Object-tagging tools weren't the answer — they'd give me "person, outdoor, tree" and completely miss the stuff that actually makes an image distinctive: lighting, color grading, art medium, mood.

So I built Findimageprompt.com to solve that specific problem. Here's a quick rundown of what it does and some of the things I learned building it.

The core insight: captioning ≠ prompting

Early on I assumed a good image captioning model would be enough. It's not. Captioning answers "what is this image?" Prompting needs to answer "what would I type to generate something like this?" Those are different tasks, and the second one requires pulling out attributes a normal caption throws away — lighting direction, composition, camera angle, artistic style.

Output format matters more than I expected

This was the biggest surprise: a technically accurate, well-written description is often a worse prompt than a rougher, structured one. Generators like Midjourney and Stable Diffusion respond much better to short, comma-separated attributes than to flowing prose. So a meaningful chunk of the work isn't just generating a description — it's reformatting that description into the attribute-list shape these models are actually trained on.

Four tools, one shared engine

Rather than shipping a single "image to prompt" feature, I built it as a loop:

Image to Prompt – image in, structured prompt out
Text to Prompt – rough idea in, detailed prompt out
AI Image Describer – plain-language description, for checking generation results against intent
AI Image Generator – generate directly from any prompt without leaving the site

The reason for building it this way: reverse-engineering a prompt is rarely a one-shot task. You pull a prompt, generate, compare, and adjust. Having all four tools share the same underlying engine made that iteration loop actually usable instead of copy-pasting between four separate sites.

Keeping it frictionless

No signup, no API keys, runs in the browser. For a tool people are going to try on a whim with one image, every bit of setup friction is a reason to bounce before they see if it's useful.

Where it's at now

It's live and free to use. I'm currently working through pricing/payment setup and a broader promo push (Product Hunt launch coming up), so feedback on prompt quality — especially cases where the output clearly missed the mark — is genuinely useful to me right now.

If you work with AI image generation and want to try reverse-engineering a prompt from a reference image, it's here: https://findimageprompt.com/

Happy to answer questions about the multimodal/prompt-formatting side of it in the comments.

Top comments (1)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.