For most of history, computers worked with one type of data at a time: text in one program, images in another, audio somewhere else. But humans don't experience the world this way. We see, hear, read, and speak simultaneously, combining all these inputs to understand our environmentEnvironmentA place the app runs with its own settings: development on your machine, preview for trying things, production for users. Each has its own variables and database, so do not experiment on production..
MultimodalMultimodalA model that understands or produces more than one kind: text, images, audio or video. It reads a screenshot and describes the error in it, or turns a description into an image. AIArtificial intelligence (AI)A field that builds programs doing tasks that used to need a human mind, such as understanding language, recognising images and making decisions. Large language models are one small part of it, not all of it. changes everything. These models can process multiple types of information together—analyzing an image while reading your question about it, or generating images from your text descriptions. This chapter teaches you how to communicate effectively with these powerful systems.
Why Multimodal Matters
Traditional AI required you to describe everything in words. Want to ask about an image? You'd have to describe it first. Want to analyze a document? You'd need to transcribe it manually. Multimodal models eliminate these barriers.
See and Understand
Upload an image and ask questions about it directly—no description needed
Create from Words
Describe what you want and generate images, audio, or video
Combine Everything
Mix text, images, and other media in a single conversation
Analyze Documents
Extract information from photos of documents, receipts, or screenshots
Why Prompting Matters Even More for Multimodal
With text-only models, the AI receives exactly what you type. But with multimodal models, the AI must interpret visual or audio information—and interpretation requires guidance.
Vague multimodal prompt
What do you see in this image? [image of a complex dashboard]
Guided multimodal prompt
This is a screenshot of our analytics dashboard. Focus on: 1. The conversion rate graph in the top-right 2. Any error indicators or warnings 3. Whether the data looks normal or anomalous [image of a complex dashboard]
Without guidance, the model might describe colors, layout, or irrelevant details. With guidance, it focuses on what actually matters to you.
The Multimodal Landscape
Different models have different capabilities. Here's what's available in 2025:
Understanding Models (Input → Analysis)
These models accept various media types and produce text analysis or responses.
GPT-4o / GPT-5
Text + Images + Audio → Text. OpenAI's flagship with 128K context, strong creative and reasoning abilities, reduced hallucination rates.
Claude 4 Sonnet/Opus
Text + Images → Text. Anthropic's safety-focused model with advanced reasoning, excellent for coding and complex multi-step tasks.
Gemini 2.5
Text + Images + Audio + Video → Text. Google's model with 1M token context, self-fact-checking, fast processing for coding and research.
LLaMA 4 Scout
Text + Images + Video → Text. Meta's open-source model with massive 10M token context for long documents and codebases.
Grok 4
Text + Images → Text. xAI's model with real-time data access and social media integration for up-to-date responses.
Generation Models (Text → Media)
These models create images, audio, or video from text descriptions.
DALL-E 3
Text → Images. OpenAI's image generator with high accuracy to prompt descriptions.
Midjourney
Text + Images → Images. Known for artistic quality, style control, and aesthetic outputs.
Sora
Text → Video. OpenAI's video generation model for creating clips from descriptions.
Whisper
Audio → Text. OpenAI's speech-to-text with high accuracy across languages.
Image Understanding Prompts
The most common multimodal use case is asking AI to analyze images. The key is providing context about what you need.
Basic Image Analysis
Start with a clear request structure. Tell the model what aspects to focus on.
This prompt provides a clear framework for image analysis. The model knows exactly what information you need.
Only the prompt in the box is sent to that site, nothing from your projects.
Structured Output for Images
When you need to process image analysis programmatically, request JSONJSONA text format for exchanging data, with objects in curly braces, lists in square brackets, and text and number values. Every programming language reads it, and it is the usual format for API requests and structured model output. output.
Get structured data from image analysis that's easy to parse and use in applications.
Only the prompt in the box is sent to that site, nothing from your projects.
Comparative Analysis
Comparing multiple images requires clear labeling and specific comparison criteria.
Compare two or more images with specific criteria that matter to your decision.
Only the prompt in the box is sent to that site, nothing from your projects.
Document and Screenshot Analysis
One of the most practical applications of multimodal AI is analyzing documents, screenshots, and UI elements. This saves hours of manual transcriptionSpeech to textModels that listen to an audio recording and write down what was said. Their quality in Arabic varies a lot between dialects, so try them on voices like your users'. and review.
Document Extraction
Scanned documents, photos of receipts, and PDFs as images can all be processed. The key is telling the model what type of document it is and what information you need.
Extract structured data from photos of documents, receipts, invoices, or forms.
Only the prompt in the box is sent to that site, nothing from your projects.
Screenshot and UI Analysis
Screenshots are goldmines for debuggingDebuggingFinding the cause of a bug and fixing it: reproduce it, read the whole message, narrow down where it is, then fix the cause, not the symptom. Give the model the error message and the steps as they are, not your summary of them., UX review, and documentation. Guide the AI to focus on what matters.
Get detailed analysis of screenshots for debugging, UX review, or documentation.
Only the prompt in the box is sent to that site, nothing from your projects.
Error Message Analysis
When you encounter an error, a screenshot often contains more context than copying the error text alone.
Get plain-language explanations and fixes for error messages in screenshots.
Only the prompt in the box is sent to that site, nothing from your projects.
Image Generation Prompts
Generating images from text descriptions is an art form. The more specific and structured your prompt, the closer the result will match your vision.
The Anatomy of an Image Prompt
Effective image generation prompts have several components:
Subject
What is the main focus of the image?
Style
What artistic style or medium?
Composition
How is the scene arranged?
Lighting
What's the light source and quality?
Mood
What feeling should it evoke?
Details
Specific elements to include or avoid
Basic Image Generation
Use this template to create detailed, specific image generation prompts.
Only the prompt in the box is sent to that site, nothing from your projects.
Scene Building
For complex scenes, describe layers from foreground to background.
Build complex scenes by describing what appears in each layer of depth.
Only the prompt in the box is sent to that site, nothing from your projects.
Audio Prompting
Audio processing opens up transcription, analysis, and understanding of spoken content. The key is providing context about what the audio contains.
Enhanced Transcription
Basic transcription is just the start. With good prompts, you can get speaker identification, timestamps, and domainDomain nameThe address people type to reach your site, such as example.com, which you rent yearly from a domain registrar. Point it at your hosting with DNS records, and turn on HTTPS for it.-specific accuracy.
Get accurate transcriptions with speaker labels, timestamps, and handling of unclear sections.
Only the prompt in the box is sent to that site, nothing from your projects.
Audio Content Analysis
Beyond transcription, AI can analyze the content, tone, and key moments in audio.
Get a comprehensive analysis of audio content including summary, key moments, and sentiment.
Only the prompt in the box is sent to that site, nothing from your projects.
Video Prompting
Video combines visual and audio analysis over time. The challenge is guiding the AI to focus on the relevant aspects across the entire duration.
Video Understanding
Get a structured breakdown of video content including timeline, visual elements, and key moments.
Only the prompt in the box is sent to that site, nothing from your projects.
Video Content Extraction
For specific information extraction from videos, be precise about what you need.
Extract specific information from videos with timestamps and structured output.
Only the prompt in the box is sent to that site, nothing from your projects.
Multimodal Combinations
The real power of multimodal AI emerges when you combine different types of input. These combinations enable analysis that would be impossible with any single modality.
Image + Text Verification
Check if images and their descriptions match—essential for e-commerce, content moderation, and quality assurance.
Verify that images accurately represent their text descriptions and vice versa.
Only the prompt in the box is sent to that site, nothing from your projects.
Screenshot + Code Debugging
One of the most powerful combinations for developers: seeing the visual bug alongside the code.
Debug UI issues by analyzing both the visual output and the source code together.
Only the prompt in the box is sent to that site, nothing from your projects.
Multi-Image Decision Making
When choosing between options, structured comparison helps make better decisions.
Compare multiple images systematically against your criteria to make informed decisions.
Only the prompt in the box is sent to that site, nothing from your projects.
Best Practices for Multimodal Prompts
Getting great results from multimodal AI requires understanding both its capabilities and limitations.
What Makes Multimodal Prompts Effective
Provide Context
Tell the model what the media is and why you're analyzing it
Be Specific
Ask about particular elements rather than general impressions
Reference Locations
Point to specific areas using spatial language
State Your Goal
Explain what you'll use the analysis for
Common Pitfalls to Avoid
Assuming Perfect Vision
Models may miss small details, especially in low-resolution images
Expecting Perfect OCR
Handwriting, unusual fonts, and complex layouts can cause errors
Ignoring Content Policies
Models have restrictions on certain types of content
Skipping Verification
Always verify critical information extracted from media
Handling Limitations Gracefully
This prompt explicitly handles cases where the model can't see clearly or is uncertain.
Only the prompt in the box is sent to that site, nothing from your projects.