Comment by MaxLeiter
19 hours ago
For those interested in building something similar, I prompted a story book generator using v0 and Gemini’s image generation a few weeks ago:
Demo: https://v0-story-maker.vercel.app/
The chat: https://v0.dev/chat/ai-story-book-creator-zw7TrmkN2Eb
I love the method you used to get image consistency: construct a conversation history with the model where it explicitly accepts each image and agrees to use it:
I'm curious: did you settle on this after trial and error? I mean, did having the assistant explicitly agree increase consistency, compared with just asking nicely at the end?
I didn’t write that - v0 did. You can see it all in the chat
I noticed it wasn’t passing the image back and forth so I asked it to, and it wrote that prompting
BTW - thanks for sharing the chat. I'm going to study it for prompting tips. It's good to learn from other people's iterations using coding agents, and not just my own.
The quality of the images is incredible! Great job
How much does the api cost to run? Do you have any safe guards in place in case bots try to build 1000 stories?
That’s all Gemini, I did very little prompting
I’m just using Geminis rate limits, because its pretty ridiculously cheap. You can get pretty far on just their free tier last I checked (when I made this the image model was 100% free)
I wrote about it a little bit here: https://x.com/max_leiter/status/1906492622551884187
wow!!!!
Any idea how much it costs to create a book?