The Image class is designed to create and handle image elements to be sent and displayed in the chatbot user interface.You must provide either an url or a path or content bytes.
import chainlit as cl@cl.on_chat_startasync def start(): image = cl.Image(path="./cat.jpeg", name="image1", display="inline") # Attach the image to the message await cl.Message( content="This message has an image!", elements=[image], ).send()