Using Prompt Templates

Modified on Fri, 23 Aug at 11:31 AM

Prompt templates can be used to quickly produce assets in a pre style using commonly-used style keywords, letting you focus on subject and composition in your prompts - but you can use them in other creative ways.


Getting started with Prompt Templates

Using a default prompt template is the easiest way to get started. You can search for default templates in using the search bar within the 'Choose Prompt Template' dropdown that is located above the 'Positive Prompt' field.


Preview selected Prompt Template

Use the Preview button to see the prompt that will be used for generation.


The subject of your prompt will appear in bolded text, while the prompt template style language will appear in lighter grey text.


Flatten selected Prompt Template

Flattening the selected prompt template into your current prompt gives you the ability to edit prompt template style language as a standard prompt for asset generation without modifying the prompt template.



After flattening the prompt template, you will see all of the prompt language (including subject and style language) displayed in the main prompt fields.


Creating a Prompt Template

If you are looking for prompt template styles not included in default templates, you can create and save your own prompt templates using styles from existing images or from scratch.


Creating Prompt Templates from existing images

You can create prompt templates from an existing images generated with Invoke. Positive and negative prompts will be added to the template from the image's metadata, and the original image will be used as a cover image for the template.


To create a prompt template from an existing image, right-click the image and select 'Use for Prompt Template.' 


Enter a name for the template and save for the template to appear under 'My Templates' in the 'Choose Prompt Template' dropdown.


Creating Prompt Templates from scratch

To create a prompt template from scratch using your own style language, select the 'Create Prompt Template' icon located on the 'Choose Prompt Template' dropdown.


Write your desired positive and negative prompts using the syntax detailed in the next section, name your prompt template, and upload a cover image


How to write a Prompt Template

Add a positive and/or negative prompt to your template. Use the {prompt} placeholder in the template to indicate where your prompt should be inserted into the template:


Template: highly detailed photo of {prompt}, award-winning, nikon dslr

Prompt: a super cute fennec fox cub

Result: highly detailed photo of a super cute fennec fox cub, award-winning, nikon dslr

If you omit the placeholder, the template will be appended to the end of your prompt:


Template: turtles

Prompt: i like

Result: i like turtles


Accessing your Prompt Templates

You can find your saved prompt templates and associated cover images in the 'My Templates' section of the 'Choose Prompt Template' dropdown.


Using with Prompt Templates with Dynamic Prompts

You can create prompt templates that incorporate dynamic prompt language to produce multiple style variations of your prompt.


Prompt templates can also incorporate dynamic prompts from the positive prompt box, using the same process / syntax as standard dynamic prompts. You can read more about dynamic prompting on the Dynamic Prompting page.


Importing and exporting Prompt Templates

You can import templates from other SD apps. We support CSV and JSON files with these columns/keys:

  • 'name'
  • 'prompt' or 'positive_prompt'
  • 'negative_prompt'


Export your prompt templates to share with others. Private and shared prompt templates can be exported, excluding Invoke default templates.






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article