llmtutorialai tools

How to Write Better Prompts for Any AI Model (and Actually Get What You Want)

Writing better prompts is not about memorizing tricks, it is about communicating clearly with AI systems. This article walks through the real principles behind effective prompting: how to structure requests, assign roles, use examples, set constraints, and choose the right model for each task. Whether you work with text or image generators, these strategies will immediately improve your AI outputs.

How to Write Better Prompts for Any AI Model (and Actually Get What You Want)
Cristian Da Conceicao
Founder of Picasso IA

Most people write prompts the same way they would send a quick text message. They type something short, hit enter, and then wonder why the AI returned something generic, off-topic, or strangely formal. The problem is rarely the model. The problem is the prompt itself.

Knowing how to write better prompts for any AI model is one of the highest-leverage skills you can build right now. Whether you are working with large language models for writing, coding, and reasoning tasks, or image generators for visual content creation, the same core principles apply. These are the concrete strategies that separate people who consistently get impressive, usable AI outputs from those who spend more time rewriting prompts than doing actual work.

Hands typing on a laptop keyboard in a warm coffee shop

Why Most Prompts Fall Short

The first step to fixing your prompts is knowing why they break. Experienced prompt writers are not necessarily more creative. They are simply more honest about what information an AI actually needs to produce a precise result.

Vague language is the root cause

When you write "write me a blog post about marketing," you have not given the model enough to work with. What audience? What tone? How long? What specific angle? The AI fills in all those blanks with its best statistical guess, and the result feels average because it is: designed to satisfy the most probable interpretation, not your specific one.

Specificity is not optional. It is the single most reliable way to improve output quality without changing anything else.

Missing context kills precision

AI models do not know who you are, what project this is for, what you have already tried, or what constraints you are working under, unless you tell them. A lack of context forces the model to make assumptions, and assumptions produce generic outputs.

💡 Quick test: Take your last prompt and count how many assumptions the model had to make to answer it. If the number is higher than two, the prompt needs more context.

Flat lay of open notebook, pen, and laptop on white desk

The 5 Core Rules of Prompt Writing

These five principles work across every type of AI model. Apply all five, and your output quality will improve immediately.

1. Specify the exact output format

Tell the model exactly what you want back. Not just "a list" but "a numbered list of 7 items, each under 20 words." Not just "a summary" but "a 3-sentence summary written for a non-technical audience." The model will follow format instructions very reliably when they are specific.

Here is a direct comparison:

Weak PromptStrong Prompt
"Summarize this article""Summarize in 5 bullet points, each starting with an action verb, for an executive audience"
"Write a product description""Write a 100-word description for a $120 running shoe, conversational tone, targeting recreational runners aged 25-40"
"Give me some ideas""Give me 10 YouTube title ideas about home coffee brewing, each under 60 characters, casual tone"

2. Assign a role or persona

One of the most reliable prompt improvements is role prompting: telling the model who it should be before you ask it anything. "You are a senior software engineer reviewing a pull request" produces fundamentally different output than asking the same question cold.

Role prompts work because they activate a different distribution of the model's knowledge and writing style. They shift the register, depth, and focus of the output reliably.

Examples of effective role setups:

  • "You are a data journalist. Write a short explainer about..."
  • "You are a skeptical product manager reviewing a feature proposal. Identify the weaknesses..."
  • "You are an experienced copywriter specializing in direct response. Rewrite this headline..."

3. Show examples (few-shot prompting)

If you want the model to follow a specific style, structure, or format, show it. Provide one or two examples of what "good" looks like before making your actual request. This is called few-shot prompting and it is one of the most effective approaches available.

Instead of describing what you want, demonstrating it removes ambiguity almost entirely.

Close-up side profile portrait of woman in deep concentration

4. Add constraints and scope

Tell the model what NOT to do just as clearly as what to do. "Do not use jargon," "avoid bullet points," "do not recommend paid tools," and "keep the response under 300 words" are all valid constraints that shape the output dramatically.

Without constraints, the model optimizes for what it thinks is thorough. That often means longer, more hedged, more generic outputs. Constraints force specificity.

💡 Tip: Negative constraints (what to avoid) are often more powerful than positive instructions because they cut the model's default tendencies at the root.

5. Iterate with precision

One prompt rarely solves everything. The real skill is knowing how to refine. When an output is off, diagnose why it is off before rewriting. Was the role wrong? Was the format unspecified? Did you forget to include context?

Rewrite the specific part that failed. Do not start over from scratch each time. Think of prompting as a conversation, not a one-shot transaction.

LLM Prompts vs. Image Prompts

The core principles above apply broadly, but text AI and image AI have meaningfully different prompt grammars. Knowing the difference helps you write for each without friction.

Writing prompts for text models

Text model prompts are closest to natural conversation, but they respond especially well to:

  • Chain-of-thought instructions: "Think step by step before answering"
  • Format scaffolding: Headers, JSON structure, or numbered outputs specified upfront
  • Persona plus task plus constraint: "You are X. Do Y. Avoid Z."
  • Token placement: The most important instructions work best near the beginning or end of the prompt

When working with models like GPT 5, Claude Opus 4.7, or Gemini 3 Pro, the quality of your system-level instructions (the background context you set before the main request) often matters more than the request itself.

Writing prompts for image models

Image model prompts operate differently. The grammar of an effective image prompt includes:

  • Subject first: Lead with the main subject and their action or state
  • Environment and background: Describe the setting in detail
  • Lighting specification: Direction, quality, and color temperature of light
  • Camera angle and lens: Low-angle, aerial, close-up, 85mm f/1.8, etc.
  • Style and medium: "Photorealistic, Kodak Portra 400, film grain" or "RAW 8K photography"
  • Atmosphere and mood: "Warm golden hour," "cool overcast diffused light"

The more cinematic and physical your description, the better image generators respond. Think like a film director briefing a cinematographer, not like someone writing a caption.

Two colleagues reviewing structured prompts on a widescreen monitor

How Model Choice Affects Your Results

The same prompt will produce meaningfully different results on different models. This is not a flaw, it is a feature. Different models have different strengths, and part of writing better prompts is knowing which model to use for which task.

Here is a practical breakdown:

Task TypeBest-fit Models
Deep reasoningGrok 4, DeepSeek R1, O4 Mini
Long-form writingGPT 5, Claude 4 Sonnet, Kimi K2 Instruct
Fast, casual responsesGPT 4o, Gemini 3 Flash, Claude 4.5 Haiku
Code generationClaude 4.5 Sonnet, DeepSeek v3.1, GPT 4.1
Vision and multimodalGemini 3 Pro, Claude Opus 4.7, GPT 5

Once you know the model's strength, you can write prompts that lean into it rather than fight against it. A reasoning-focused prompt on a fast-response model will produce a shallow answer. A fast-response prompt on a reasoning model is just wasting compute.

Man writing a structured framework on a whiteboard in a classroom

3 Real Prompt Makeovers

These before-and-after examples show the principles in action.

Makeover 1: Content writing

Before: "Write a LinkedIn post about AI"

After: "Write a 150-word LinkedIn post from the perspective of a marketing director at a mid-size B2B company. Share one specific lesson about using AI for content workflows. Conversational tone. No hashtags. End with an open question to encourage comments."

Why it works: Role, audience, length, format, tone, and constraint are all specified.

Makeover 2: Code review

Before: "Review this code"

After: "You are a senior backend engineer specializing in Python performance. Review the following function for correctness, potential edge cases, and runtime efficiency. Format your response as three sections: Issues Found, Suggested Fixes, and Open Questions. Be direct."

Why it works: Role, scope, output structure, and tone are all explicit.

Makeover 3: Image generation

Before: "A woman at a desk working"

After: "A focused professional woman in her early 30s sitting at a wide wooden desk, fingers resting on a keyboard, three monitors showing text interfaces behind her, warm volumetric morning sunlight from the left casting long golden rays across the desk surface, low camera angle looking slightly upward, 85mm f/1.4 lens with shallow depth of field, Kodak Portra 400 film grain, photorealistic 8K RAW photography"

Why it works: Subject, environment, lighting, camera specs, and style are all defined.

Overhead flat lay of notebook with prompt structure diagram, pencils, and coffee

Using LLMs on PicassoIA for Better Output

PicassoIA's large language models collection gives you direct access to the most capable models available today, without requiring API keys, multiple provider accounts, or switching between different platforms.

Here is how to get the most out of those models with what you have learned above:

Step 1: Choose the right model for your task

From the LLM collection, pick based on the task type from the table above. For long-form writing, start with GPT 5 or Claude 4 Sonnet. For reasoning-heavy work, Grok 4 or DeepSeek R1 are strong choices.

Step 2: Set your role context first

Before typing your actual request, frame the role. Write a short setup: who the model is, what it knows, and what project context matters. Two to three sentences is usually enough to calibrate the output register.

Step 3: Write your request using the 5-rule framework

Apply format, role, examples, constraints, and precision in your prompt. A prompt following all five rules typically requires zero follow-up clarification.

Step 4: Evaluate and iterate

Read the output critically. If something is off, pinpoint which rule was violated or missing, and rewrite that specific element. Rarely do you need to throw out the whole prompt.

Young man on couch with laptop, satisfied expression in warm home office

Common Patterns That Actually Work

Beyond the five core rules, certain prompt patterns show up consistently in high-quality outputs. These are worth having ready:

The "Act as" setup:

"Act as a [role]. Your task is to [task]. The audience is [audience]. Respond in [format]."

The structured output request:

"Return your response in this exact structure: [Section 1 name], [Section 2 name], [Section 3 name]."

The constraint stack:

"Do not use [X]. Avoid [Y]. Keep it under [Z] words. Write for [audience]."

The example anchor:

"Here is an example of the style I want: [example]. Now do the same for: [new request]."

Each pattern does something specific. The "Act as" setup calibrates tone and expertise. The structured output request eliminates format ambiguity. The constraint stack shapes the result in advance. The example anchor sidesteps lengthy description by showing rather than telling.

For image prompts specifically, these signal types produce the most consistent improvements:

Signal TypeExample Values
Lighting"Volumetric morning light from left," "overcast diffused light," "golden hour backlight"
Lens"85mm f/1.4," "24mm wide angle," "100mm macro"
Film stock"Kodak Portra 400," "Fujifilm Pro 400H," "Ilford HP5"
Camera angle"Low angle looking up," "aerial top-down," "eye level medium shot"
Atmosphere"Film grain," "natural skin texture," "photorealistic 8K RAW"

Woman lying on hardwood floor with tablet in warm afternoon light

When Your Prompt Still Does Not Work

Sometimes even a well-structured prompt misses. Here are the three most common reasons:

1. The model is the wrong fit for the task. A fast response model handed a multi-step reasoning problem will take shortcuts. Match model capability to task complexity using the table above.

2. The context window is not loaded correctly. If you are working on a long project, make sure the model has the full relevant context before your request, not just the question. Position the most important background information at the top.

3. The request has competing goals. "Write something short but very detailed" creates a contradiction the model cannot resolve cleanly. When you notice conflicting instructions in your prompt, resolve the conflict yourself before asking the model to.

💡 Diagnosis framework: When output is wrong, ask: Was the format unclear? Was the role wrong? Was context missing? Did I include contradictions? One of these four is almost always the answer.

Person holding smartphone with AI chat interface in an outdoor park setting

Put It Into Practice on PicassoIA

The fastest way to internalize everything above is to apply it immediately. PicassoIA gives you direct access to the full lineup of leading text and image models in one platform, including GPT 5, Claude Opus 4.7, Grok 4, DeepSeek R1, Gemini 3 Pro, and many more.

Take one of the makeover examples from above and run both the weak version and the strong version on the same model. The difference in output quality is immediate and concrete. That contrast makes the principles click faster than reading about them ever will.

Pick a model, write a prompt following the five rules, and see what comes back. Every iteration teaches you something that the next prompt benefits from.

Share this article