Written By Afonso Carvalho
Last updated 18 days ago
Adding Images to Custom Templates
This guide walks you through the required setup to successfully include and position images inside your custom templates.
Overview
Custom templates support embedded images if the generation prompt and markdown outline are properly configured. To ensure image generation works:
You must define the number of images in the generation prompt.
You can control image placement using instructions inside the markdown outline.
Configuring Your Template for Images
Generation Prompt
To generate images, you need to tell the AI how many images to include. This is done by explicitly writing the number of images you want in the prompt field.
❗️This step is required. If you don’t specify a number, no images will be generated.
Example Prompt:
ExampleInclude 3 images in the articles
Markdown Outline
The markdown outline allows you to define the structure of the article and include image instructions at the exact positions where you’d like images to appear.
Example Outline:
Example## Section 1: Introduction
Some text content here.
{# include one image here #}
## Section 2: Key Insights
More content...
If you don’t specify where to add the images in the outline, we’ll automatically distribute them across the article based on its structure and length.