Cursor 2.4: Image Generation

New in Cursor! · Full changelog · Main announcement

You can now generate images directly from Cursor’s agent!

How it works

Describe the image in text or upload a reference to guide the underlying image generation model. Images are returned as an inline preview and saved to your project’s assets/ folder by default.

Useful for

  • Creating UI mockups
  • Generating product assets
  • Visualizing architecture diagrams

We’d love your feedback!

  • What kinds of images are you generating?
  • How does this fit into your design-to-code workflow?
  • What image generation improvements would be most helpful?

If you’ve found a bug, please post it in Bug Reports instead, so we can track and address it properly, but also feel free to drop a link to it in this thread for visibility.

3 Likes

my cursor said it dont have such ability to generate, but im in the new version. whats the reason?

4 Likes

@Zihan Please give it another try! It should be working again.

Has anyone done it successfully?

2 Likes

image
image
latest early access version

Seems a bit random right now whether or not it works, and local network conditions / our backend contributes to that randomness. We’re working on a fix.

Hi everyone,

I’m having a lot of trouble with the image_generator tool. It frequently times out, which causes the entire chat to freeze, and I’m also currently hitting 429 errors.

Even when it does work, there are persistent issues with saving files. The AI tries to specify the path manually—sometimes with a filename, sometimes without—but it results in very strange behavior.

I only managed to successfully create one test image, but it was saved with a bizarre filename that included the entire absolute path as part of the name:
"C:\Users\qwerty\.cursor\projects\c-Users-qwerty-folder-project\assets\diamond_icon.png"

Is anyone else experiencing this?

Did anyone actually manage to generate an image? I spent a ton of money on tokens trying to get it to generate some image, nothing works at all. Same as always, Cursor. Thanks for rolling out a broken build. same as always)

This would be nice if it would work :))) let us know when this will really work :slight_smile:

On the latest early access version, it works great for me, I have to explicitly ask for an image, but so far has worked every time. What model are you using? I did not find anything on image gen in docs, but for example sub agents require max mode on legacy pricing plans, could this possibly be the case for you?

Worked with Auto. Took 13 seconds.

Version: 2.4.23

2 Likes

version 2.4.23
:distorted_face:

3 Likes

yes, I’m on legacy pricing plan, but is this really a reason to disable some functions for me, why not spend 0.1 requests for example on image generation or something like that

1 Like

My opinion is harsh but honest - it’s a bells and whistles feature few asked for.

2.3 was the right direction fixing bugs and improving stability, please focus on fixing hooks, MCP issues and addressing all the agent view feedback and all the other various issues across the forum

I know it’s a Karen opinion but I pay $200 for this

1 Like

Hey all,

Just to keep you updated, we’ve been in talks with our provider to reduce 429 errors in image generation, and things are moving in the right direction!

2 Likes

Hey @Colin - thanks for keeping us up to date. Contrary to what someone said above - I think it’s a very useful feature - I don’t have to go elsewhere in my dev environment when I need to gen assets!

Just a +1 here that I’m on v 2.3.35 and my agent (auto, agent mode) isn’t aware of this skill/tool (even after I’ve sent it this URL :D)

Thanks @grokpot!

It’s only available in 2.4+, so that’s expected!

2 Likes

@Colin Oops :smiley:
Coincidentally, I got the update to 2.4.28 today. The skill looks like it executed, but I get this
I’m uploading in my normal root dir of a project where I normally work, and I already have an assets/ folder.

Hey @grokpot!

Images should be stored in ~/.cursor/projects/<project>/assets/, so having an /assets/ folder already shouldn’t be an issue.

The error you’re seeing typically occurs when you try to generate an image during a “quick chat” (i.e., Cursor is open but no project is loaded).

To troubleshoot:

  1. Check if you have a ~/.cursor/projects/ directory in your home directory.
  2. If so, try the following:
    • Quit Cursor
    • Restart Cursor
    • Open a folder or workspace (File → Open Folder)
    • Try generating the image again