frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Building an agentic image generator that improves itself

https://simulate.trybezel.com/research/image_agent
67•palashshah•1y ago
Hey HN! We recently graduated from YC, and have been building customer personas for large e-commerce companies. We recently expanded into the image generation space, and have been working on research about how to automatically improve the quality of generated images.

Comments

average_r_user•1y ago
Quite interesting, do you have some documentation of your platform and capabilities? Your landing page is quite synthetic
palashshah•1y ago
hey! we're working with an initial set of customers, and plan to launch full capabilities soon. stay tuned :)
ramesh31•1y ago
This is a wonderful writeup of building a simple agentic system in general. What OP describes is more or less the bare minimum you should be doing at this point to get good (consistent) results from an LLM; single-shot prompting is a thing of the past.
palashshah•1y ago
appreciate the compliment! yep, it's definitely necessary and is the bare minimum for building image generation systems in production.
shmoogy•1y ago
I'm surprised you landed on using o3 as the judge - we found it way too expensive. I use llm as a judge for generating color variations of products, definitely hoping for some improvements - it can be brutal to get non hallucinated features along with proper final rendering.
omneity•1y ago
Have you tried open weights vision models such as Qwen VL, MiniCPM, PaliGemma...?

I'm also curious how usable are simpler vision models such as Florence in case you explored this direction.

palashshah•1y ago
we're currently in the process of doing this. i think something that could potentially work is to iterate upon the initial image composition / structure using cheaper models, and then upscale at the end. this way you're saving on that iteration cost, but eventually land on a higher-scale image.
shmoogy•1y ago
I actually haven't but nova from Amazon was surprisingly good at things like bounding boxes compared to some others You kind of have to test and measure so many different aspects to get the best at specific tasks Thanks for the idea
elif•1y ago
This is great and provides a good starting point for any similar efforts.

However I think the temptation to lean all tasks on AI is perhaps a little naive if not lazy.

For mask generation, there is really not much reason to use AI. In this example, simple stochastic blob detection, a trivial function you could get from openCV or ask a college sophomore to write would generate much better quality masks.

palashshah•1y ago
totally agreed here. i think my goal primarily with the mask generation was to test out how effective openai's capabilities were.

we're currently working on pipelines that limit the the involvement of AI to various tasks. for example, when generating an ad there's usually logo, some banner text, and background image.

we can use gpt-image-1 to generate the background image, another LLM to identify the coordinates of where we place the logo, and just add the logo onto the image. this is just one example!

jackphilson•1y ago
Why do you agree? I think we should outsource as much as we can to abstraction. We've been doing it forever.
dandelany•1y ago
"Simple stochastic blob detection" is an abstraction. You write (or import) a function where the the gnarly logic lives and call `detectBlobs()`. "Use an abstraction" doesn't mean you should use the same abstraction for every task, you should use the right tool for the job.
mentalgear•1y ago
Again another example of "the unreasonable effectiveness of LLMs in a loop". At with time, the tasks for loop become bigger and more complex, until we find ourselves "outlooped" at least job wise.
ramoz•1y ago
Nice retrospective but I guess this process is no longer needed as model's get better; esp as they start enabling features like consistent subjects. Seems like a lot of overhead to correct text for inspirational images, but I can imagine you need to always present some form of _quality_ to your clients.

Feel like control nets and some minimal photoshop work would've been better.

palashshah•1y ago
totally. it got to a point where most of the text generated in our images was incorrect, and so it wasn't a great look showing that to our clients.

we're actually working on some form of what you described where we take images generated from LLMs + add consistent logos discretely rather than generatively.

abshkbh•1y ago
Palash this is a great post, I learnt a lot as an image gen noob! Keep writing more :)
palashshah•1y ago
this is incredible to hear! i plan to keep writing on a weekly basis, and will be posting them on twitter.
t_mann•1y ago
I was kind of hoping this would be in the 'Dreambooth mold' of finetuning open weights models. I have used that with some success some ~2 years ago, does anyone know what improvements there have been in that direction since Dreambooth?
zahlman•1y ago
It's frankly amazing to me that "ask another LLM to evaluate the image" actually produces useful feedback that results in actual improvement from the first LLM.

But then, I guess it's not much different of an idea from the earlier use of GANs, or of telling LLMs to "stop hallucinating", etc.

palashshah•1y ago
totally. the way i think about it (purely based on intuition) is that asking an LLM to do understanding + image generation is too complex for it to be effective. if we separate out the tasks into discrete steps, the evaluation becomes better, and the generation simply becomes instruction following.
jacob019•1y ago
This is all edited with gpt-image-1? The revised images are amazing. Were example logos provided or is it just working off of it's knowledge of a well known brand?

Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

https://jointhefreeworld.org/blog/articles/emacs/emacs-eglot-scala-kotlin/index.html
64•jjba23•2d ago•25 comments

Terence Tao's ChatGPT conversation about the Jacobian Conjecture counterexample

https://chatgpt.com/share/6a5fdc7a-d6f8-83e8-bbea-8deb42cfed56
884•gmays•16h ago•510 comments

Cruller: Bun's Zig Runtime, Continued on Zig 0.16

https://ziggit.dev/t/cruller-buns-zig-runtime-continued-on-zig-0-16/16734
56•Erenay09•4h ago•23 comments

git's –end-of-options Flag

https://nesbitt.io/2026/07/21/end-of-options.html
148•Erenay09•1d ago•72 comments

Quality non-fiction books are the antithesis of AI slop

https://resobscura.substack.com/p/quality-non-fiction-books-are-the
364•benbreen•19h ago•120 comments

ANSI escape injection in MCP servers: Hidden from humans, visible to AI

https://brightsec.com/research/detecting-ansi-escape-sequence-injection-in-mcp-servers-with-dast/
16•xgpyc2qp•2d ago•6 comments

GigaToken: ~1000x faster Language model tokenization

https://github.com/marcelroed/gigatoken/
507•syrusakbary•16h ago•107 comments

Show HN: Bento - An entire PowerPoint in one HTML file (edit+view+data+collab)

https://bento.page/slides/
846•starfallg•18h ago•187 comments

Everyone should know SIMD

https://mitchellh.com/writing/everyone-should-know-simd
435•WadeGrimridge•16h ago•159 comments

Are AI labs pelicanmaxxing?

https://dylancastillo.co/posts/pelicanmaxxing.html
539•dcastm•16h ago•208 comments

Amiga 1000: Ten years ahead of its time

https://dfarq.homeip.net/amiga-1000-ten-years-ahead-of-its-time/
85•giuliomagnifico•4h ago•55 comments

So Reddit has decided that plain HTML is unsafe

https://www.cole-k.com/2026/07/21/reddit/
470•montroser•21h ago•476 comments

Show HN: Cactus Hybrid: We taught Gemma 4 to know when it's wrong

https://github.com/cactus-compute/cactus-hybrid
137•HenryNdubuaku•16h ago•25 comments

Making

https://beej.us/blog/data/ai-making/
363•erikschoster•18h ago•142 comments

Making ASCII Art in Vim

https://alexyang.dev/vim-ascii-art/
66•evakhoury•2d ago•6 comments

The startup's Postgres survival guide

https://hatchet.run/blog/postgres-survival-guide
413•abelanger•21h ago•192 comments

Medici family mystery may be solved after more than 400 years

https://www.cnn.com/2026/07/15/science/medici-family-mystery-dna-malaria
125•effects•12h ago•33 comments

Frequently Asked Questions on Expertise

https://jtpeterson.substack.com/p/faq-on-expertise
5•surprisetalk•2d ago•0 comments

Why malloc always does more than I asked for?

https://ssenthilnathan3.github.io/blog/malloc/
36•nathaah3•2d ago•26 comments

Protecting our FLOSS commons from LLMs

https://blog.codeberg.org/protecting-our-floss-commons-from-llms.html
61•acmnrs•8h ago•12 comments

John C. Dvorak has died

https://twitter.com/na_announce/status/2079952538040672302
752•coleca•14h ago•247 comments

Malleable Computing, Emacs, and You

http://yummymelon.com/devnull/malleable-computing-emacs-and-you.html
112•kickingvegas•12h ago•31 comments

Businesses with ugly AI menu redesigns

https://blog.fiddery.com/businesses-with-ugly-ai-menu-redesigns/
301•speckx•21h ago•203 comments

Fairphone 6 wide camera experimental Linux support

https://nondescriptpointer.com/articles/fairphone-6-wide-camera-linux/
123•helonaut•13h ago•33 comments

Nobody knows what a used GPU cluster is worth

https://ciphertalk.substack.com/p/nobody-knows-what-a-used-gpu-cluster
233•rbanffy•1w ago•212 comments

ascdraw: Editor for ASCII/UTF-8 diagrams (in 144FPS)

https://github.com/exlee/ascdraw
45•xlii•2d ago•8 comments

Restructuring GitHub's bug bounty program

https://github.blog/security/next-chapter-restructuring-githubs-bug-bounty-program/
46•soheilpro•7h ago•20 comments

Back to Kagi

https://blog.melashri.net/micro/back-to-kagi/
272•speckx•20h ago•201 comments

Computing Camera Rays

https://momentsingraphics.de/CameraRays.html
4•ibobev•1w ago•0 comments

Ghost Cut – Or why Cut and Paste is broken everywhere

https://ishmael.textualize.io/blog/ghost-cut/
169•willm•19h ago•112 comments