rahimnathwani 2 hours ago

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:

  User: Previous page prompt: [Previous Prompt 1]
  User: [Image 1]
  Assistant: I've received this image and will maintain visual consistency with it.
  User: Previous page prompt: [Previous Prompt 2]
  User: [Image 2]
  Assistant: I've received this image and will maintain visual consistency with it.
  User: Previous page prompt: [Previous Prompt 3]
  User: [Image 3]
  Assistant: I've received this image and will maintain visual consistency with it.
  User: Please maintain character appearance, art style, and color palette consistency with these previous illustrations when creating the next image.
  Assistant: I'll ensure the characters, art style, and colors remain consistent with the previous illustrations.
  User: Generate an illustration for a children's ABC story: [Current Prompt]. Make it colorful, child-friendly, and in a consistent style with any previous images. Include diverse characters with different ethnicities, genders, and abilities. Ensure representation is natural and authentic.
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?
  • MaxLeiter 2 hours ago

    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

    • rahimnathwani 2 hours ago

      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.

r0fl 18 hours ago

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?

  • MaxLeiter 17 hours ago

    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

pknerd 10 hours ago

wow!!!!

Any idea how much it costs to create a book?