# Generate images

> Describe an image, compare the variations, and publish the image that you keep to your asset library or straight to an asset parameter.

Source: https://docs.uniform.app/docs/apps/asset-studio/generate-images

A single image starts with a prompt. Asset Studio makes some variations, you select the best one, and you publish it. This page shows how to do this in the studio, in the asset selector of a parameter, and with the AI button.

- An administrator [set up](https://docs.uniform.app/docs/apps/asset-studio/set-up) Asset Studio in the project. If the studio says **Asset Studio needs a moment of setup**, the AI Gateway key or the image model is missing.
- You can add files and assets in the project.

## Make and publish an image

You can do these steps in the project tool (**Tools > Asset Studio**) or in the asset library (**Experience > Assets**, source **Asset Studio**).

1. Under **What are you making?**, select **Single image**.
2. In **Prompt**, describe the image. Tell the model the subject, the setting, the mood, and the light.
3. Optional: in **Style**, select a style. For the list, see [styles](#styles).
4. Optional: in **Size**, select a size. **Use the model default** lets the model select.
5. In **Variations**, select how many images to make, from 1 to 4. The default is 2.
6. Select **Generate**.

   > **Info:**
   >
   > Each variation is a separate request, and AI Gateway bills each one. Under the controls, Asset Studio shows an estimate of the cost in credits, if the model has a price per image.
7. When the variations show, select the one that you want to keep. To see a variation at full size, select the zoom icon on it.
8. In **Asset title**, type the name for the asset library. Each time that you generate, Asset Studio fills in a title from the prompt, and you can change it.
9. Select **Publish to asset library**.

![Asset Studio with Single image selected. The prompt describes a hiker crossing a wooden bridge, Style is Editorial photography, Size is Landscape 1536 by 1024, and Variations is 2. Below are two generated images, Option 1 is selected, and the Asset title is Hiker on a mountain bridge, above the Publish to asset library button.](https://docs.uniform.app/images/apps/asset-studio/studio-single-results.png)

Asset Studio shows **Published** when the image is in the asset library. The asset gets the title that you typed. The prompt becomes the description of the asset, so your team can see how the image was made.

### Try again

- To make new variations of the same prompt, select **Regenerate**. The earlier variations stay on the page, under **Earlier**, so you can still select one of them.
- To change the prompt, edit **Prompt** and select **Regenerate**.
- To remove all variations from the page, select **Clear all**. This button shows after you generate a second time.

Asset Studio keeps the variations only while the page is open. If you close the page before you publish, the variations are gone.

## Styles

A style adds instructions about the look of the image to your prompt. You can select a style in the studio, and an administrator can set a style for a [prompt of the AI button](https://docs.uniform.app/docs/apps/asset-studio/set-up#set-up-the-ai-button).

| Style | What the image gets |
| --- | --- |
| **Abstract gradient** | Broad fields of color, soft light, and fine grain. No objects that you can recognize. |
| **Geometric** | Layered planes and arcs with precise edges, in two or three colors. |
| **Isometric 3D** | A 3D illustration seen from an angle, with matte surfaces and soft light, on a plain background. |
| **Editorial photography** | Natural light, shallow depth of field, and muted colors, like a documentary photograph. |
| **Flat vector** | A flat illustration with solid fills and bold, simple shapes. |
| **Duotone** | Exactly two colors, high contrast, and simple forms. |

## Make an image in an asset parameter

When you edit a composition or an entry, you can make the image in the asset parameter. Asset Studio publishes the image to the asset library and puts it in the parameter.

1. Open the composition or entry, and select the component.
2. Open the [asset selector](https://docs.uniform.app/docs/guides/composition/manage-assets/asset-parameter#asset-selector) of the asset parameter.
3. Select **Asset Studio** as the source.
4. Make the image. The steps are the same as in [make and publish an image](#make-and-publish-an-image).
5. Select **Use this image**. If the parameter can hold more than one asset, the button is **Add this image**.

![Asset Studio in the asset selector of a parameter. The prompt describes a red kayak on a calm lake, one variation is generated and selected, the Asset title is Kayak at sunrise, and the button says Use this image.](https://docs.uniform.app/images/apps/asset-studio/asset-picker.png)

If the parameter can hold one asset, the new image replaces the old one. If the parameter can hold more than one asset, Asset Studio adds the new image. When the parameter is full, the oldest image goes out.

Asset Studio makes only images. If the parameter does not accept images, Asset Studio tells you and does not show the studio.

## Use the AI button

The AI button runs a prepared prompt. You fill in some values, and Asset Studio does the rest with the model, size, and style that an administrator [set for the prompt](https://docs.uniform.app/docs/apps/asset-studio/set-up#set-up-the-ai-button).

1. On the asset parameter, select the AI icon.
2. Select an Asset Studio prompt, such as **Generate image from a description** or **Generate image in a specific style**.
3. Fill in the values of the prompt, such as the description, or the subject and the style.
4. In the Asset Studio panel, look at the prompt under **Prompt**. You cannot edit the prompt here. If an administrator set a style for the prompt, Asset Studio adds the style when you generate.
5. Select **Generate**.

   > **Note:**
   >
   > Asset Studio does not start by itself when the panel opens. This prevents costs if you open the panel by accident.
6. Select the variation that you want to keep.
7. Optional: change the **Asset title**.
8. Select **Use this image**. The image replaces the value of the parameter, also if the parameter can hold more than one asset.

![The Asset Studio panel for the prompt Generate image in a specific style. The prompt asks for a trail runner on a forest path in editorial photography at golden hour. One variation is selected, the Asset title is Trail runner at golden hour, and the button says Use this image.](https://docs.uniform.app/images/apps/asset-studio/ai-drawer.png)

The AI button cannot read the other content of the composition. It uses only the values that you type into the prompt.

## Next steps

- To put your copy on an image, make an [Open Graph card](https://docs.uniform.app/docs/apps/asset-studio/open-graph-cards).
- To find the images that you published, go to the [asset library](https://docs.uniform.app/docs/guides/composition/manage-assets/asset-library).
