How to prompt Gemini in 2026

What Google recommends for Gemini 4 Argon, Gemini 3.8 Flash and 3.5 Flash-Lite, a real before-and-after, a prompt to copy, and every official Gemini prompting guide.

Checked against the makers’ own pages on .

The rules that matter now

Gemini 4 Argon, 3.8 Flash and 3.5 Flash-Lite

Google

  • Always add examples. Google recommends few-shot examples in every prompt, formatted the same way, and not so many that the model copies them. Google: Prompt design strategies
  • Rules first, question last. Put the persona, the essential constraints and the output format at the start; with long context, put the specific question at the very end. Google: Prompt design strategies
  • No need to ask for reasoning steps. Gemini reasons internally, so asking it to outline its steps is generally unnecessary. Google: Prompt design strategies
  • Leave sampling alone. Gemini 4 and 3.6 and later ignore custom temperature, top_p and top_k; on earlier Gemini 3 models keep the defaults. Google: Prompt design strategies
  • One kind of structure. Use XML tags or Markdown headings, and stick to one within a prompt. Google: Prompt design strategies

An old prompt, X-rayed and fixed

A prompt written the way many still are, checked by PromptForge’s X-ray against Google’s current guidance.

Before

<role>You are an expert travel planner.</role> ## Task Think step by step and plan a two-day trip to Jaipur for a family of four. Don't use bullet points.

What the X-ray says for Gemini 3.8 Flash

  1. Change"Think step by step" is now built in

    Google: Gemini generates internal reasoning, so it is generally not necessary to ask it to outline or plan its reasoning steps.

  2. ConsiderA "don't" with no "do"

    Tell the model what to do instead of what not to do: "Write in flowing prose paragraphs" works better than "Do not use markdown".

  3. ConsiderNo examples

    Google recommends always including a few examples, formatted the same way, for the output you want.

  4. ConsiderTwo kinds of section markers

    Google: choose one format for structure, XML tags or Markdown headings, and use it consistently within a prompt.

After one click on “Fix what can be fixed”

<role>You are an expert travel planner.</role>
## Task
Plan a two-day trip to Jaipur for a family of four. Write in full paragraphs rather than lists.

The rest of the notes need your judgement, such as what format you want back.

X-ray your own prompt for Gemini 3.8 Flash

A prompt to copy

Built by PromptForge in the structure Google recommends. Each part is labelled with the rule it follows.

Ready to pasteGemini 3.8 Flash, about 117 tokens
  1. Persona first
    You are an expert who gives specific, accurate and practical answers, and says plainly when something is uncertain.
  2. Constraints first
    ## Constraints - Keep travel between sights under 30 minutes. - Include one vegetarian lunch place each day.
  3. Format first
    ## Response format Present the result as a Markdown table.
  4. Few-shot examples
    ## Examples ### Example 1 Day | Time | Place | Why it is worth it 1 | 09:00 | Amber Fort | Best before the midday heat
  5. Task at the very end
    ## Task Plan a two-day trip to Jaipur for a family of four.
You are an expert who gives specific, accurate and practical answers, and says plainly when something is uncertain.

## Constraints
- Keep travel between sights under 30 minutes.
- Include one vegetarian lunch place each day.

## Response format
Present the result as a Markdown table.

## Examples
### Example 1
Day | Time | Place | Why it is worth it
1 | 09:00 | Amber Fort | Best before the midday heat

## Task
Plan a two-day trip to Jaipur for a family of four.

Settings for Gemini 3.8 Flash

  • Leave temperature, top_p and top_k out: Gemini 3.6 and later ignore custom values.

Which model to use

ModelBest forInput / output per million tokensAPI IDOpen
Gemini 4 ArgonGoogle's flagship reasoning model$2 / $10gemini-4-argonWrite for it
Gemini 3.8 FlashGoogle's recommended model for new projects$0.75 / $3.75gemini-3.8-flashWrite for it
Gemini 3.5 Flash-LiteFastest, lowest cost, high throughput$0.3 / $2.5gemini-3.5-flash-liteWrite for it

Prices from Google’s own page, checked on 18 October 2026.

Questions

Does Gemini need examples in the prompt?

Google recommends always including a few examples of the output you want, formatted the same way, and not so many that the model copies them.

Where do instructions go in a long Gemini prompt?

Put the persona, essential constraints and output format first; with long context, put the specific question at the very end, after the text.

Should I change Gemini’s temperature?

Gemini 4 and 3.6 and later ignore custom temperature, top_p and top_k, so remove them. On earlier Gemini 3 models, keep the defaults.

Can I mix XML tags and Markdown?

Google advises choosing one format for structure and using it consistently within a prompt.