lennxa

Unify.ai (and gemini) with open-webui

# | #tech, #projects, #opensource

I use unify.ai for API access to LLMs. They aggregate different API providers (like anthropic, openai, vertexai, together-ai, groq...). This way I only need to buy unify credits. This is a tutorial to set up open-webui to use unify.

Google provides a very generous free tier usage limits, so I have included that as well.

  1. Install and run open-webui. I first tried a normal pip install and it took a good 3 minutes and then I killed that did it using uv and it took about 3s:
uv pip install open-webui
open-webui serve
  1. Create an account and add an open-webui function for using unify and google.
    • go to admin-settings > functions > add function (+ button)
    • paste this function here and give it a name and save and enable the function
    • click on the settings button of the function and set the unify and/or google api keys

I built this with a lot of help from gemini-2.0-flash-thinking-exp-01-21. I tried using perplexity's (o3-mini) and grok's deep research to no real help. I ended up gathering documentation from open-webui and unify and feeding it in myself. 2-3 prompts and I had a working version real quick. Later added a few things:

Things to improve/fix:

#opensource #projects #tech