Independent unofficial site. Not affiliated with Google, Google DeepMind, or Alphabet. Gemini is a trademark of Google.
The Hydrogen Brief An independent, unofficial guide EN · 中文

Best Gemini 4 Hydrogen prompts, by task

Last updated

Good Hydrogen prompts state the output format, the concrete requirements, what “done” means and what to do when information is missing, and set the thinking level per task: low for extraction, medium for documents and interactive UI, high for code, 3D and agents, xhigh only after high fails. Below are eight templates; five are based on prompts we ran ourselves.

Also see What Hydrogen is good for Which model for which task Our own tests

At a glance

1. Screenshot or design image to HTML

Thinking level: high

Template (ours)

Recreate the attached screenshot as one self-contained HTML file. Match layout, spacing, colours and type as closely as you can. Use only inline CSS, no external assets. If any text in the image is unreadable, use a clear placeholder and list it at the end instead of guessing.

Our 14 Nov test: Hydrogen's copy was close. The “list what you couldn't read” line follows Google's note that Hydrogen flags missing context instead of guessing.

Prompt we actually ran (14 Nov 2026) “The attached image is an original landing-page screenshot that we designed, named Cedar & Salt, a fictional neighborhood bakery. Recreate it as a single self-contained HTML file that matches the…” Full prompt and untouched output →

Source: This site: original same-prompt tests (14 Nov 2026) (This site's own test or template) · Google AI Studio docs: What's new in Gemini 4 Hydrogen (Google page, no reuse licence shown: paraphrased, see original)

2. Three.js 3D scene

Thinking level: high (xhigh only if high fails)

Template (ours)

Build a single-file Three.js scene of [scene]. Requirements: [3–5 concrete objects], [lighting / time of day], [one motion that must happen, e.g. the boat rocks on the waves]. Before finishing, list each requirement and say how the code meets it.

Naming the required motion and checking it addresses the most common slip in public tests (polish around the scene, missing motion). Expect to ask for a second pass on looks; authors rate Neon higher on polish.

Prompt we actually ran (14 Nov 2026) “Write a single self-contained HTML file that renders an interactive Three.js 3D scene: a small floating harbor island at dusk, a lighthouse with a rotating beam, bobbing boats, and a low-poly town.…” Full prompt and untouched output →

Source: EvoLink AI: awesome-gemini-4-hydrogen-use-cases (CC BY 4.0: translated and shortened (changes made)) · This site: Hydrogen vs Neon, 19 public same-prompt tests (This site's own test or template)

3. Small playable browser game

Thinking level: medium or high

Template (ours)

Make a playable [genre] game in one HTML file. Controls: [keys]. Win/lose rules: [rules]. Show score and a restart button. Keep numbers bounded (no score or damage overflow). Add a short comment block at the top listing the rules you implemented.

Our playable 3D game test ran on the first try. The bounded-numbers line comes from a public roguelike test where a model's late-game numbers overflowed.

Prompt we actually ran (14 Nov 2026) “Write a complete playable single-file HTML 3D game using Three.js. Title it Pier Dash. The player runs along a wooden pier collecting lanterns and jumping gaps (space, click, or tap to jump). Include…” Full prompt and untouched output →

Source: This site: original same-prompt tests (14 Nov 2026) (This site's own test or template) · This site: Hydrogen vs Neon, 19 public same-prompt tests (This site's own test or template)

4. Interactive explainer

Thinking level: high

Template (ours)

Create an interactive single-page explainer of [mechanism] for a beginner. Include an animated diagram with labelled parts, a play/pause control and a step-by-step caption. Make sure the key physical step ([e.g. combustion]) is clearly visible.

Our four-stroke engine test worked; the “key step visible” line comes from community engine animations where combustion was hard to see.

Prompt we actually ran (14 Nov 2026) “Write a single self-contained HTML page that interactively explains how a four-stroke engine works. Show a labeled animated cross-section of the intake, compression, power, and exhaust strokes. The…” Full prompt and untouched output →

Source: This site: original same-prompt tests (14 Nov 2026) (This site's own test or template) · cheercheung: awesome-gemini-4-carbon-guide-and-use-cases (CC BY 4.0: translated and shortened (changes made))

5. Answer only from a document

Thinking level: medium

Template (ours)

Use only the attached document. Answer: [question]. Quote or cite the section for every claim. If the document does not answer part of the question, write “not in the document” for that part. If two figures conflict, give both and say which is newer.

Mirrors the instruction in dm2's blind test (write “unknown” where unclear), where Hydrogen scored 97.5 and 3.8 Flash lost points for skipping it. Medium is Google's suggested level for document Q&A.

Source: This site: good at / slips on, comparison hub (This site's own test or template) · Google Cloud docs: Gemini 4 Hydrogen model guide (Google page, no reuse licence shown: paraphrased, see original)

6. Coding task in an agent

Thinking level: high

Template (ours)

Goal: [change]. Done means: [tests / command that must pass]. First list the files you plan to touch and any question you need answered. Then make the change, run [command], and repeat until it passes. Stop and ask before deleting files or changing public interfaces.

Follows the pattern in Google's Gemini 4 developer guides: agree on success criteria first, give a pass/fail check, pause before irreversible steps.

Source: Google AI Studio: Gemini 4 Argon developer guide (13 Oct 2026) (Google page, no reuse licence shown: paraphrased, see original) · Google AI Studio: Gemini 4 Carbon developer guide (10 Nov 2026) (Google page, no reuse licence shown: paraphrased, see original)

7. Extraction or classification at scale

Thinking level: low

Template (ours)

Classify each item into exactly one of: [labels]. Return JSON matching the provided schema. Use “unknown” if none fits.

Use structured outputs (a response schema) rather than asking for JSON in prose. Low is Google's level for this; for very high volume Google suggests 3.5 Flash-Lite.

Source: Google AI Studio docs: What's new in Gemini 4 Hydrogen (Google page, no reuse licence shown: paraphrased, see original) · Google Cloud docs: Gemini 4 Hydrogen model guide (Google page, no reuse licence shown: paraphrased, see original)

8. Large SVG illustration

Thinking level: high

Template (ours)

Draw [scene] as one SVG. Keep it under about [N] elements: reuse shapes with <defs>/<use>, prefer simple paths, and close the </svg> tag. If you are running long, simplify detail rather than stopping mid-file.

Our SVG test was cut off at the output limit. Also raise max_output_tokens (default 65,536).

Prompt we actually ran (14 Nov 2026) “Create a single standalone SVG illustration (viewBox="0 0 800 500"). Do not use external fonts, images, scripts, or CSS files. Scene: a night market alley in a small harbor city. Paper lanterns hang…” Full prompt and untouched output →

Source: This site: original same-prompt tests (14 Nov 2026) (This site's own test or template) · Google AI Studio docs: What's new in Gemini 4 Hydrogen (Google page, no reuse licence shown: paraphrased, see original)

Quick answers

What is a good prompt for Gemini 4 Hydrogen?

State the output format (one HTML file, JSON schema), the concrete requirements, what “done” means, and what to do when information is missing. Name any motion or rule that must happen, and ask it to check each requirement before finishing.

Should I set temperature for Hydrogen?

No. Gemini 4 models ignore temperature, top_p and top_k (out-of-range values return an error). Control depth with thinking_level instead.

Are these prompts tested?

Five are based on prompts we ran ourselves on 14 Nov 2026 (linked to the full prompt and untouched output); the others are templates that follow the cited guidance and have not been benchmarked by us.

Sources and licences

How we reuse material: Google's pages show no reuse licence, so we paraphrase facts and link. Apache-2.0, MIT and CC BY 4.0 repositories are translated or adapted with credit and a note of changes. Repositories and blogs without a licence get a one-line summary and a link. Public posts are quoted briefly and linked.