# Images

Unspar can add a featured image to an article and images between its sections. Images are off until you turn them on, and each image you receive costs 1 credit.

Web version: https://www.unspar.com/docs/guides/images/

Unspar can illustrate the articles it writes. It creates the images once the text is finished, checks each one, and sends them along when you publish. You choose the style, and you can give a whole project one look with its own colors.

There are two kinds of images. The **featured image** is one picture for the top of the post. **Images in the article** are pictures between the sections, all in one style, placed where Unspar finds they fit. Unspar can also draw free charts from numbers in the research. You turn them on with **Data visualization prompts** under **Structural components** on the Create page's **Manual** tab.

## Turn images on for a project

Turning on images at the project level adds pictures between sections to every new article in that project, including articles from [ideas and Project Auto](https://www.unspar.com/docs/guides/project-auto-and-ideas/).

1. Open the project from [Projects](https://app.unspar.com/projects).
2. Open **More actions** (⋮) and choose **Edit**.
3. Turn on **Images in the article**.
4. Under **Up to**, set the most images an article should get. The default is 3.
5. Pick a style under **Image preset**.
6. Choose **Save**.

Articles that have already started keep their existing settings. There is no project-level setting for the featured image, so you turn it on for each article individually.

![Images in the article switched on in the project settings, with Plan the count, Up to 3 and Image preset](https://www.unspar.com/images/docs/images-project-setting.webp)

Images for all new articles in the project.

## Turn images on for one article

Use the Create page when you want images on a single article, or when you want different image settings than the project default.

1. Open [Create](https://app.unspar.com/articles/create) and switch to the **Manual** tab.
2. In the **Structure** group, turn on **Images in the article**.
3. Under **Plan the count**, keep **Automatic, up to the maximum**. Unspar then places as many images as fit, up to the number under **Up to**.
4. Pick a style under **Image preset**.
5. For a picture at the top of the post, turn on **Featured image** and pick its **Image preset**.

The cost box below the form now shows an **Image credit hold** line.

Turn on the featured image before you queue the article. You can't add one later.

Under **Approval and quality checks**, two boxes are checked by default: **Required before publishing** and **Review the image series together**. That means the article can't go live until its images are ready and approved. Uncheck them if the article can go out without its images.

## Pick a style and your project's look

The **Image preset** sets the style of the pictures. For images in the article, choose one of these: **Editorial photo**, **Clean editorial illustration**, **Monochrome graphic**, **Simple cartoon illustration**, **Magazine collage**, or **Diagram or infographic**. Diagrams wait for your approval before they are used.

A preset alone can still produce slightly different colors and details from one article to the next. Setting a visual identity for the project fixes that. It gives all new photos or illustrations in the project one consistent look using your colors.

1. Open the project from [Projects](https://app.unspar.com/projects).
2. On the **Visual identity** card, choose **Set up**.
3. Under **Choose a new look**, pick a **Style**.
4. If you have brand colors, tick **Use these colors** and set the five colors.
5. If you want, describe the look under **Notes (optional)**, for example "Soft daylight, muted colors".
6. Choose **Show 3 options**. The options take about a minute.
7. Under **Pick an option**, click the one you like.
8. Choose **Use this look**. The page says "Your look is saved."

New images follow that look from then on, while existing images stay as they are. Generating options is free, up to 5 rounds per project and 15 per team each day.

![Visual identity card on the project page with the Set up button](https://www.unspar.com/images/docs/images-1-visual-identity-card.webp)

Step 2: Start on the project page.

![Choose a new look with Style, Use these colors, Notes and Show 3 options](https://www.unspar.com/images/docs/images-2-visual-identity-page.webp)

Step 3–6: Pick a style, your colors and a note, then show three options. This is free.

## What do images cost?

Each image you receive costs 1 credit, whether it's the featured image or one in the article. Extra tries after a failed check cost nothing. Charts are free.

Before the article starts, Unspar holds 1 credit for each image it plans to make. With **Automatic, up to the maximum**, it holds the maximum amount, which is why the button reads **Queue article (up to N credits)**. Once the article is finished, you only pay for the images you receive, and any unused credits go back to your balance.

If an article has more than 3 images, or uses more than 30 image credits, the Create page asks you to check **Confirm up to N additional media credits.** before queuing the article. See [Credits and prices](https://www.unspar.com/docs/guides/credits-and-prices/).

## Check and regenerate images

Unspar checks every image before you see it, looking for things like broken details or stray text. If an image fails, it gets up to two more tries. If none of them pass, Unspar keeps the best one and marks it **Needs review**.

On the [finished article](https://www.unspar.com/docs/guides/the-article-page/), you'll find the images in the **Featured image** and **Inline media** panels.

- **Approve** accepts an image that's waiting for your review.
- **Remove** takes it out of the article.
- **Regenerate** makes a new image for 1 credit.
- **Correct and hold publication** lets you describe what should change in an image. **Regenerate this image** then makes it again for 1 credit. Publishing waits until you choose **Release correction**.
- **Edit details** changes the alt text and the caption. Alt text is the short description screen readers read aloud.

For the featured image, **Regenerate** doesn't include a field to describe what should change. If a required image is holding up publishing and you'd rather publish without it, choose **Remove** on that image.

## Where do the images go when you publish?

An outlet is a site or channel you've connected to Unspar. Not every outlet supports images.

| Outlet                                                                | What it gets                                                                                                                     |
| --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [WordPress](https://www.unspar.com/docs/guides/wordpress/)                                  | The images are uploaded to your media library, with alt text and captions. The featured image becomes the post's featured image. |
| Email                                                                 | The featured image at the top and the images in the text.                                                                        |
| [GitHub](https://www.unspar.com/docs/guides/github/) and [webhooks](https://www.unspar.com/docs/guides/webhooks/) | Links to the images, which stay on Unspar's server.                                                                              |
| Ghost                                                                 | No images.                                                                                                                       |

An image marked **Required before publishing** will block publishing to an outlet that can't accept it, like Ghost. See [Outlets and publishing](https://www.unspar.com/docs/guides/outlets-and-publishing/).

## For AI agents

An article created through the CLI or the API gets images when the project's image settings or the template turn them on. The estimate shows the credits for the images. Agents can set the project's visual identity and export an article with its approved images. Approving and correcting images only works in the web app.

```sh
unspar api get /image-presets
unspar projects visual-identity generate <project-id> --style image_preset:builtin:editorial_photo --notes "Soft daylight, muted colors" --wait
unspar projects visual-identity approve <project-id> --round <round-id> --candidate 2
unspar projects visual-identity show <project-id>
unspar api post /articles/estimate --field project=<project-id> --field "brief=How to choose a password manager"
unspar articles show <article-id> --json
unspar articles content <article-id> --with-images --output article.md
```
