AI Image to Prompt
Drop any image, get a descriptive caption or Stable Diffusion-style prompt. ViT-GPT2 captioning runs entirely in your browser — no upload, no API key.
Why an AI Tool That Runs In Your Browser
Image-to-prompt tools are usually pitched at people running diffusion models locally and want a starting prompt for img2img or for fine-tuning. They are also useful for accessibility (writing alt text at scale), content auditing, and any workflow where you need a quick text description of a pile of images. Most hosted versions of this functionality require uploading your image to a third-party API. For unreleased designs, internal mockups, watermarked client work, or any sensitive image, that is a real problem. This tool uses a ViT-GPT2 captioning model (nlpconnect/vit-gpt2-image-captioning: a Vision Transformer image encoder with a GPT-2 text decoder, trained for captioning on the COCO dataset), released under the Apache 2.0 license and run in your browser with transformers.js; the browser files are Xenova's ONNX conversion. The model writes a short factual caption; the tool can wrap it with neutral quality tokens so it works as a starting prompt for Stable Diffusion, Midjourney or another image generator.
How AI Image to Prompt Works
Click Load model on first visit. The browser downloads the model (about 248 MB of 8-bit quantized files) from Hugging Face and keeps it in Cache Storage. Drop or pick an image. Two output modes are available: Caption gives the plain description, and SD prompt adds quality tokens ("detailed, professional photography, sharp focus, high quality"). In our test in desktop Chromium (October 2026) the model loaded in 20 seconds and captioned a photo of an orange cat in 9 seconds: "a cat is sitting on a sidewalk".
Captions are short, usually under 15 words, and cover the main subject and setting. The model misses fine detail such as exact colours, text in the image, brands or the number of small objects, and can get things wrong, so read the caption before using it as alt text. Larger captioning models (BLIP-2, LLaVA) write longer, more accurate descriptions but are too big to run comfortably in a browser.
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools