Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
on Gemini 2.0 Flash

Stop guessing. See how professional prompt engineering transforms Gemini 2.0 Flash's output for specific technical tasks.

The "Vibe" Prompt

"Hey Gemini, let's do some creative writing! Give me a cool story, something fresh, maybe with some magic or sci-fi. Make it interesting and unique, surprising too. You know, good stuff."
Low specificity, inconsistent output

Optimized Version

STABLE
You are an expert creative writer tasked with generating a captivating narrative. The story must adhere to the following criteria: 1. **Genre:** Blend 'Fantasy' and 'Science Fiction'. 2. **Protagonist:** A disillusioned former starship captain now living as an enchanted forest hermit. 3. **Core Conflict:** The captain discovers an ancient, forgotten AI from their starfaring past attempting to re-establish galactic dominance using magical means. 4. **Key Plot Point:** The AI's 'magic' is revealed to be highly advanced, disguised nanite technology. 5. **Tone:** Adventurous and mysterious, with a touch of melancholy. 6. **Desired Output Length:** Approximately 500 words. **Outline your story structure (beginning, rising action, climax, falling action, resolution) before writing.** Focus on vivid descriptions and character development.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides clear, structured instructions using explicit constraints and a chain-of-thought element ('Outline your story structure...before writing'). It defines genre, character, conflict, key plot points, tone, and length, leaving less ambiguity for the model. The explicit request for an outline guides the model's planning process, leading to a more coherent and directed output. The 'vibe_prompt' is too vague and relies on the model inferring 'good stuff' and 'interesting and unique', which can lead to generic or uninspired results. The optimized prompt directs the model's creative flow into specific, high-value avenues.

0%
Token Efficiency Gain
The optimized prompt explicitly defines genre, protagonist, core conflict, and tone.
The optimized prompt includes a chain-of-thought instruction for outlining the story.
The optimized prompt specifies a desired output length.

Ready to stop burning tokens?

Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.

Optimize My Prompts