class RubyLLM::Image

An Image is a generated or edited image. Save it to a file with save or read its bytes with to_blob. Both handle hosted URLs and inline data.

image = RubyLLM.paint("a sunset over mountains in watercolor style")
image.save("sunset.png")