Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
on GPT-4o-mini

Stop guessing. See how professional prompt engineering transforms GPT-4o-mini's output for specific technical tasks.

The "Vibe" Prompt

"Write a creative story about a lost astronaut."
Low specificity, inconsistent output

Optimized Version

STABLE
As a highly creative and imaginative storyteller, your task is to generate a short story (approximately 500 words) about a lost astronaut. **Thought Process for Story Generation:** 1. **Character Conception:** Develop a unique name, background, and motivation for the astronaut. What makes them human and relatable, even in extreme circumstances? 2. **Setting the Scene:** Establish the initial situation – how did they get lost? Where are they? Focus on sensory details (sight, sound, touch, smell) to immerse the reader. 3. **Developing Conflict/Challenge:** Introduce a primary obstacle or series of challenges they face. This could be environmental, psychological, or external (e.g., equipment failure, alien encounter, existential dread). 4. **Emotional Arc:** Map out the astronaut's emotional journey. Start with initial fear/despair, move through determination/resourcefulness, and culminate in a resolution (hope, acceptance, defiance, or discovery). 5. **Introduction of a Unique Element:** Incorporate one unexpected twist, discovery, or character interaction that adds originality to the 'lost in space' trope. 6. **Thematic Resonance:** What underlying message or theme do you want to convey (e.g., resilience of the human spirit, vastness of the universe, power of hope)? 7. **Word Choice and Imagery:** Use evocative language, metaphors, and similes to paint vivid pictures in the reader's mind. 8. **Concluding Thought/Resolution:** Craft an ending that provides a sense of closure, even if not explicitly 'happy'. **Story Structure:** * **Beginning (approx. 100 words):** Introduce astronaut, their predicament, and initial sensory details. * **Middle (approx. 300 words):** Describe challenges, internal struggles, and unique element. * **End (approx. 100 words):** Conclude with emotional arc resolution and thematic resonance. **Constraint:** The story must contain at least one instance of synesthesia (e.g., 'the silence tasted metallic').
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages Chain-of-Thought (CoT) prompting by breaking down the creative writing task into a series of logical steps, guiding the model through character development, plot points, emotional arcs, and stylistic choices. It specifies desired structure (beginning, middle, end) and length. By providing concrete instructions for generating a 'unique element' and 'thematic resonance,' it encourages originality beyond a generic 'lost astronaut' story. The explicit 'Constraint' also adds a specific creative challenge, pushing the model's literary capabilities. This structured approach helps GPT-4o-mini generate a more detailed, coherent, and higher-quality creative output.

0%
Token Efficiency Gain
The optimized_prompt will generate a story with a discernible character arc, unlike the vibe_prompt.
The optimized_prompt will include specific sensory details and evocative language, whereas the vibe_prompt is unlikely to.
The story from the optimized_prompt will demonstrate a clear understanding of story structure (beginning, middle, end).

Ready to stop burning tokens?

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

Optimize My Prompts