What it is
A model responds to the shape of your request. Ask for prose and you get prose. Ask for code and you get code. The problem is that people use one prompt style for everything, then wonder why the output feels off. Text, code, and images each reward different vocabulary and different levels of detail. This lesson shows you how to switch styles on purpose.
Why it matters: a prompt tuned for writing often produces vague code. A prompt tuned for code often produces stiff, list-like prose. Image prompts fail for a third reason, because they describe scenes rather than instructions. Once you know which mode you are in, you stop guessing and start steering.
When to use each mode
Use text mode when you want explanation, editing, tone, or argument. Favor verbs about audience and intent: explain, persuade, shorten, rewrite for a beginner. Give context about who reads it and what they should do after reading.
Use code mode when you want a working artifact. Favor constraints: language, version, input shape, output shape, error behavior. State what must not change. Ask for the smallest runnable piece first, then extend.
Use image mode when you want a visual. Favor nouns and visual properties: subject, setting, lighting, angle, palette, texture. Avoid abstract instructions like make it professional. Describe what a camera would see.
How to use it
- Name the mode at the top of your prompt. One line is enough: this is a writing task, a coding task, or an image task.
- List the fixed parts. For text, that is audience and length. For code, that is language and interfaces. For images, that is subject and framing.
- List the free parts you want the model to decide. Say so explicitly, so it does not over-constrain itself.
- Give one example of a good result, or describe what a bad result looks like.
- Ask for a draft, then critique it in the same mode before asking for a revision.
Worked example
Suppose you run a small bakery and want a landing page section plus the code behind it.
Text prompt: write three sentences for a bakery homepage aimed at office workers who order breakfast for meetings. Keep it under 40 words. No prices. End with a clear next step.
Code prompt: build a single HTML block with a heading, the three sentences, and a button labeled Order for your team. Use plain HTML and CSS. No frameworks. Keep it under 30 lines.
Image prompt: a wooden table by a window in morning light, four paper bags of pastries, a paper coffee cup, soft shadows, shot from a low angle, warm neutral palette.
A good result has three traits. The copy sounds like a person wrote it for a specific reader. The code runs without edits. The image reads clearly at thumbnail size. If any piece misses, revise only that piece using the same mode rules rather than rewriting everything at once.
Learn how to adjust your wording and structure when you prompt for writing, programming, or visuals, plus a worked example you can copy.
Read this page, then check whether AI assistants can read yours: one scan, six pillars, a score.