---
title: "Use the AI Agent on your canvas"
description: "Ask the AI Agent to make, edit and organise pixel art in your project, see the price before images, and learn what Undo does and doesn't bring back."
source: https://makepixel.ai/guide/using-the-agent/
language: en
updated: 2026-11-25
---

# Use the AI Agent on your canvas

The **Agent** is an AI assistant that works inside your project. Tell it "make four enemies for the forest level" or "turn this cape red", and it looks at your canvas, proposes images, edits pixels and tidies things up. It makes still images, and works only in the project you have open.

Two things to know before you start:

- **Its thinking uses credits as it goes**, including before you confirm anything.
- **It can't make an image until you confirm the price** on a card.

## Start a conversation

1. Open a project and select **AI** in the left sidebar.
2. In the corner of the text box, open the **Mode** menu and choose **Agent**.
3. Optional: select the images you're talking about. Up to 12 selected items go with your message, and the box shows how many.
4. Write what you want in any language, up to 2,000 characters, and select **Send**.

You need at least 1 available credit. If you don't have one, the credits window opens and your message stays in the box. The Agent replies in the language you write in, and keeps working if you collapse the panel or open an image.

## What it can do

| Ask it to | For example | Credits |
| --- | --- | --- |
| **Make new images** | "Four enemies for a forest level" | Thinking, plus 1 per image you approve |
| **Redraw an image** | "Give this knight red armour" | Thinking, plus 1 |
| **Edit pixels** | "Remove those two stray pixels" | Thinking only |
| **Draw by hand** | "Draw a 16 × 16 heart yourself, pixel by pixel" | Thinking only |
| **Organise** | "Sort these into characters, props and scenes" | Thinking only |
| **Answer questions** | "How do I export to Godot?" | Thinking only |

It can look at everything in the project, including layers, palettes and the pictures themselves, so you rarely need to explain what's there. New things are placed in open space near where you're looking. To organise, it can add notes and sections, rename, and move items, up to 30 changes per request.

**What it can't do:** make animations (walks, idles, attacks), turn a character to a new angle, make tilesets or seamless tiles, delete anything, export, or work across projects. When you ask for one of these, it tells you. If it's something you'd like, **Tell the team** sends the request once you press it.

## How credits work

There are two separate costs.

**Thinking** covers reading your project, planning and replying. It's counted by actual use and charged each time it adds up to a whole credit, so a short request may show 0. It's spent whether or not you go on to make an image, so a request you **Skip** at the card can still have used some.

**Images** cost 1 credit each, the same as Generate. The price is on the button, and nothing is charged for images until you press it.

At the bottom of each request you'll see a line such as **Used 3 credits**. Hover over it for the split between **Thinking** and **Images**. Your [usage history](https://makepixel.ai/account/usage) keeps the full record.

To keep thinking small, be specific, select what you mean, and ask for one job at a time.

## Approve new images

When the Agent wants to make an image, a card appears in the conversation. Nothing has been generated yet.

1. Check the description. You can rewrite it.
2. Adjust **How many**, **Style** and **Background**. The price updates as you go.
3. Select **Generate**, or **Skip** to pass.

Different subjects get separate cards, so you can approve the goblin and skip the bat. For what each setting does, see the [AI pixel art generator](https://makepixel.ai/features/ai-pixel-art-generator/).

## Change an existing image

There are two ways, and the Agent picks based on what you ask.

**Small fixes are edited directly.** "Make the cape red" or "clean up these stray pixels" changes just those pixels. Other frames, other layers and your palette order stay exactly as they were, and any new colours are added to the end of the palette. This works on images up to 128 × 128. Locked layers and auto layers are left alone.

**Bigger changes are redrawn.** Attach or select an image and describe the change. You get a card with **Replace**, and the new version lands in the same spot on your canvas, so nothing needs repositioning. Turn on **Keep original** to get a new image beside it instead.

After a redraw, a bar appears under the image. Hold **Compare** to see the old version, or select **Undo** to switch back.

**Don't redraw animations or layered images.** A redraw produces one layer and one frame, so it replaces all the frames and layers with a single still picture. If that happens, select **Undo** to get them back. To change an animation, ask for a direct pixel edit instead.

## Queue, stop and carry on

You don't have to wait for it to finish. Keep typing while it works and select **Queue**, up to 5 messages.

Each queued message remembers **what was selected and where you were looking when you wrote it**. So you can select a character, queue a request, select another and queue the next, and each one acts on the right thing.

The next message sends when the previous one finishes normally. If you stop it, something fails or it asks you a question, the queue waits for you. You can **Send now**, **Edit** or **Remove** any message in it.

To stop it, select **Stop** or press **Esc**. Anything already finished is kept. The same is true if your connection drops or you run out of credits.

## What Undo does and doesn't do

Each request has an **Undo** at the bottom. It's free on every plan and can be used once per request.

**It puts back:**

- Images it changed, to how they were before its first change
- Images it redrew, to the original
- Names and positions
- Notes, sections and hand-drawn images it created, which go to the trash

**It doesn't:**

- **Refund credits.** Anything spent on thinking or images stays spent.
- **Remove generated images.** New images from a card stay on your canvas. Delete any you don't want.
- **Keep your later edits to those images.** If you drew on an image after the Agent changed it, Undo takes it back to before the Agent, and **your own strokes go with it**.

If you want to keep working on something the Agent changed, decide on Undo first, or duplicate the image before you continue.

## Common problems

**It says "Used 0 credits".** Thinking is added up and charged a whole credit at a time, so small requests can show 0 for now.

**It stopped with "Out of credits".** What it finished is kept. Add credits and ask it to carry on.

**It won't edit my image.** The layer may be locked or an auto layer, or the image may be larger than 128 × 128. Unlock the layer, or ask for a redraw on a still image.

**My animation became one frame.** It was redrawn. Select **Undo** on that request or under the image.

**It misunderstood.** Select the exact image, say what should change and what should stay, and send it again. If it needs more detail, it may ask you a question with a few answers to pick from.

## Where to go next

To make images yourself with full control, use [Generate](https://makepixel.ai/features/ai-pixel-art-generator/). To connect your code to MakePixel, read the [pixel art API](https://makepixel.ai/guide/pixel-art-api/) guide.
