Log multimodal traces
Opik supports multimodal traces allowing you to track not just the text input and output of your LLM, but also images.

Log a trace with an image using OpenAI SDK
Images logged to a trace in both base64 encoded images and as URLs are displayed in the trace sidebar.
We recommend that you use the track_openai
wrapper to ensure the OpenAI API call is traced correctly:
Manually logging images
If you are not using the OpenAI SDK, you can still log images to the platform. The UI will automatically detect images based on regex rules as long as the images are logged as base64 encoded images or urls ending with .png
, .jpg
, .jpeg
, .gif
, .bmp
, .webp
:
Let’s us know on Github if you would like to us to support additional image formats or models.