class RubyLLM::Image

An Image is the result of an image generation request. It holds either a hosted URL or inline Base64 data, depending on the provider, along with the model id and token usage of the call.

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