Artificial Intelligence
Advanced
80 mins
Teacher/Student led
+75 XP
What you need:
Chromebook/Laptop/PC or iPad/Tablet

Advanced Prompt Engineering

In this lesson, you'll build on basic prompt engineering to master advanced techniques for AI image creation. Explore multi-prompt chaining, style fusion, camera perspectives, and negative prompts. Experiment creatively with tools like Canva AI to refine your skills as a digital artist.
Learning Goals Learning Outcomes Teacher Notes

Teacher Class Feed

Load previous activity

    1 - Introduction

    In this lesson, we're building on basic prompt engineering for creating images. You might have tried making prompts using things like the subject, setting, style, mood, and lighting. For instance, you might have seen how a simple prompt like 'a cat' differs from a detailed one like 'a fluffy black cat in a sunny garden, in a realistic style, with a playful mood under bright daylight'. Today, we're advancing to professional-level techniques to give you even more control over AI image generation. You'll explore tools like multi-prompt chaining, style fusion, camera perspectives, negative prompts, iterative refinement, and addressing bias. This lesson will turn you into a digital artist mastering AI. Get ready to experiment creatively and safely using tools such as Canva AI, Bing Image Creator, or Craiyon.

    Lesson Objectives

    • Explore advanced prompt structures like multi-prompt chaining and negative prompts.
    • Practise style fusion by combining multiple artistic styles.
    • Experiment with camera perspectives and technical terms.
    • Learn how negative prompts prevent unwanted results.
    • Use iterative refinement to improve images step by step.
    • Understand bias in AI outputs and how to counter it with prompts.
    • Complete a mini-project demonstrating these techniques.
    Approach this with curiosity – you're the director of your AI creations!
    Quick Activity (5 minutes): If you've explored the basics, jot down one thing you remember, like how specificity improves results. Otherwise, think about how adding details might enhance an image. Now, consider: how might advanced techniques make your images even better?

    2 - Multi-Prompt Chaining

    Introduction to Multi-Prompt Chaining

    Multi-prompt chaining is an advanced technique in prompt engineering that involves constructing a sequence of prompts to refine an AI-generated image progressively. This approach enables you to commence with a broad, general concept and then incorporate increasingly specific details in subsequent prompts. It is analogous to the process of editing and revising a draft document, providing you with enhanced control over the AI's output. As a result, you can transform a simple initial idea into a detailed and professionally polished visual creation.

    This method is particularly useful because it allows the AI to build upon previous generations, thereby reducing randomness and ensuring a more coherent evolution of the image. By chaining prompts, you can systematically address aspects such as composition, style, mood, and lighting, leading to superior results.

    Key Benefits

    • Greater precision and control over the final output.
    • Reduction in unexpected or undesired elements in the generated images.
    • Opportunity to experiment with incremental changes and observe their impact.

    Example of Multi-Prompt Chaining

    Consider the following sequence, starting with a basic prompt and refining it step by step:

    1. Initial prompt: 'a forest'.
    2. First refinement: 'a mystical forest with ancient trees'.
    3. Second refinement: 'a mystical forest with ancient trees, in a fantasy style'.
    4. Final refinement: 'a mystical forest with ancient trees, in a fantasy style, with a foggy mood and dim lighting'.

    In this example, each subsequent prompt adds layers of detail, enhancing the overall quality and specificity of the image.

    Tip: When using AI tools that do not retain memory of previous prompts, generate the image for each step and use the output as a reference to inform the next prompt in the chain. This ensures continuity in your refinements.
    Activity (10 minutes): Select a starting concept, such as 'a mountain'. Develop a chain of four prompts, with each one building upon and refining the previous prompt. Input them sequentially into an AI image generation tool, such as Bing Image Creator or a similar platform. Observe the generated images and make notes on how the output improves with each refinement, paying attention to changes in detail, coherence, and overall quality.

    3 - Style Fusion

    Introduction to Style Fusion

    Style fusion is an advanced technique in prompt engineering that involves combining multiple artistic styles within a single prompt to produce unique and creative images. This method allows you to move beyond using just one style by blending elements from different artists, genres, or artistic movements. For example, you might merge the swirling brushstrokes of a famous painter with the vibrant animation of a modern film studio, resulting in a hybrid artwork that is both innovative and visually striking.

    By employing style fusion, you gain greater control over the aesthetic qualities of your AI-generated images, enabling you to experiment with combinations that can lead to unexpected and inspiring outcomes. This technique is particularly valuable for creating original content that stands out from standard single-style generations.

    Key Benefits

    • Encourages creativity through the blending of diverse influences.
    • Produces distinctive images that combine the strengths of multiple styles.
    • Allows for exploration of artistic possibilities not achievable with individual styles alone.

    Example of Style Fusion

    Consider the prompt: 'A dragon in a castle, in the style of Van Gogh and Pixar animation'. This fuses the expressive, starry-night qualities of Van Gogh's work with the colourful, three-dimensional animation style of Pixar. To understand the difference, compare it to single-style prompts such as 'A dragon in a castle, in the style of Van Gogh' or 'A dragon in a castle, in the style of Pixar animation'. The fused version creates a unique blend that incorporates elements from both.

    Tip: When crafting fused prompts, specify the styles clearly and separate them with words like 'and' or 'fused with' to guide the AI effectively.
    Activity (10 minutes): Create three prompts that incorporate style fusion. For instance, 'A cityscape in the style of Impressionism and cyberpunk'. Use a tool such as Canva AI to generate the images. Then, generate versions using each style separately and compare them. Reflect on which fused image is your favourite and why it appeals to you.

    4 - Camera & Technical Language

    Introduction to Camera Perspectives and Technical Language

    Incorporating camera perspectives and technical terminology into your prompts enables you to create more cinematic and professionally refined AI-generated images. This technique provides greater control over the composition, viewpoint, and overall quality of the output. By using terms such as 'wide-angle shot', 'macro photography', 'fisheye lens', 'isometric view', '4K render', or 'cinematic', you can direct the AI to emulate specific photographic or filmmaking styles, resulting in images that are more dynamic and visually compelling.

    This approach is particularly effective because it allows the AI to interpret your prompts through the lens of professional visual arts, transforming simple descriptions into sophisticated visuals. For instance, specifying a 'wide-angle shot' can expand the scene's scope, while 'macro photography' focuses on intricate details.

    Key Benefits

    • Enhanced control over the image's perspective and composition.
    • Improved quality and realism, mimicking high-end production techniques.
    • Opportunity to experiment with cinematic effects that alter the mood and impact of the image.

    Example of Camera Perspectives and Technical Language

    Consider the following comparisons to observe the impact:

    • Basic prompt: 'A flower' versus refined prompt: 'A flower in macro photography, cinematic 4K render' – the latter produces a close-up, high-resolution image with a film-like quality.
    • Basic prompt: 'A city' versus refined prompt: 'A city from a fisheye perspective, isometric view' – this creates a distorted, three-dimensional representation that emphasises depth and structure.
    Tip: These terms encourage the AI to adopt the mindset of a photographer or filmmaker, leading to more precise and artistic results. Experiment with combining them to achieve unique effects.
    Activity (10 minutes): Test 2-3 examples of your own, such as 'A beach in a wide-angle shot, 4K render' or 'A forest through a fisheye lens, cinematic style'. Use Craiyon to generate the images and observe how the perspectives and technical terms change the overall feel and quality of the outputs. Make notes on the differences you notice.

    5 - Negative Prompts

    Introduction to Negative Prompts

    Negative prompts are an advanced technique in prompt engineering that allows you to specify elements or characteristics that you wish to exclude from AI-generated images. This method helps to prevent unwanted features, such as blurriness, text overlays, distortions, or additional objects, thereby ensuring cleaner and more precise results. In tools that support a dedicated negative prompt field, you can enter these exclusions separately. Alternatively, you can incorporate them directly into your main prompt using phrases like 'no [element]', 'without [element]', or 'avoid [element]'.

    By using negative prompts, you gain greater control over the AI's output, addressing common issues that arise from the model's interpretations of ambiguous instructions. This technique is especially useful for refining images to match your exact vision, reducing the need for multiple generations.

    Key Benefits

    • Increased precision by eliminating undesired elements.
    • Improved image quality and relevance to your intended concept.
    • Efficiency in the creative process by minimising trial-and-error adjustments.

    Example of Negative Prompts

    Consider the basic prompt: 'A portrait of a knight'. This might result in an image with blurriness, added text, or extra figures. Now, refine it with negatives: 'A clear portrait of a knight, no blur, without text, no extra people'. The revised prompt guides the AI to produce a focused, solitary, and sharp image of the knight.

    Tip: Negative prompts are effective for correcting frequent AI errors, such as unintended artefacts or inconsistencies. Start with common issues like 'no low resolution' or 'no deformed features' to see immediate improvements.
    Activity (10 minutes): Begin with a simple prompt such as 'a landscape'. Generate an image using a tool like Bing Image Creator. Then, refine it by adding negative elements, for example: 'a landscape, no buildings, no distortion, without people'. Generate the updated image and compare the two. Make notes on the improvements you observe, such as clearer details or better composition.

    Unlock the Full Learning Experience

    Get ready to embark on an incredible learning journey! Get access to this lesson and hundreds more in our Digital Skills Curriculum.

    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more