Simple Flow:
Install ➜ Add API Key ➜ Type one line ➜ Talk to any AI like a pro.
What Is AiSuite?
It’s the universal remote for all AI models.
One tiny tool to control OpenAI, Claude, LLaMA, Mistral, Hugging Face, Groq, Azure, and even your uncle’s old ThinkPad (just kidding… maybe).
No more downloading 8 SDKs just to say “Hi” to a chatbot.
No more APIs throwing tantrums every Tuesday.
No more wondering, “Wait, which wrapper did I install again?”
- Free and open-source
- One function to rule them all:
ai.chat("Tell me a joke.") - Easy to install
- Works on Windows, Mac, Linux, or even from a school Chromebook (via Google Colab)
How to Use AiSuite Without Losing Your Mind
Option A – Install on Your Own Computer
-
Check if Python is working
Open terminal or CMD and type:
python --version
If it gives a number like 3.8+, you’re good. If it says “not found,” go get Python from the official site. -
Open a folder (any folder)
You can even create one just for this:
mkdir ai-stuff
cd ai-stuff
- Optional but smart: make a safe zone (virtual env)
python -m venv venv
venv\Scripts\activate ← Windows
source venv/bin/activate ← Mac/Linux
- Install AiSuite and all its brainy friends
pip install aisuite\[all]
- Tell AiSuite your secret key
If you’re using OpenAI, type this:
- Windows:
set OPENAI_API_KEY=your_key_here - Mac/Linux:
export OPENAI_API_KEY=your_key_here
- Write your first chat bot (tiny file)
Make a file calledtalk.pywith this magic inside:
from aisuite import AI
ai = AI(model=“openai:gpt-4o”)
print(ai.chat(“Tell me a weird fact about spiders.”))
- Run it
python talk.py
Boom. The AI talks. You are now officially “the tech friend” in your group.
Option B – Google Colab (No Install, Just Vibes)
- Open this site: https://colab.research.google.com
- Start a new notebook
- Paste this to install AiSuite:
!pip install aisuite[all]
- Paste this to add your key:
import os
os.environ[“OPENAI_API_KEY”] = “your_key_here”
- Paste this to talk to the AI:
from aisuite import AI
ai = AI(model=“openai:gpt-4o”)
print(ai.chat(“Is cereal soup? Defend your answer.”))
That’s it. No drivers, no downloads, no updates, no excuses.
Want to Try Other AIs?
Just swap the model name in this part:
ai = AI(model=“openai:gpt-4o”)
Try any of these:
"anthropic:claude-3-5-sonnet""groq:llama3-70b-8192""huggingface:mistralai/Mixtral-8x7B-Instruct-v0.1""ollama:llama3"(only works if you’re running it locally)
Yes, you can switch models faster than switching Netflix shows.
No, it won’t judge you for talking to three AIs at once.
Warnings (AKA, What Could Explode)
- It doesn’t store your API key. If you close the window, it’s gone.
- If any provider changes their rules, AiSuite might yell at you until it’s updated.
- No built-in live streaming yet—just one reply per request.
What Might Go Wrong
- If Colab acts weird after install, restart the runtime. It’s not you. It’s them.
- If you see an error about “missing key,” double-check you typed the environment variable.
- If your AI replies are boring, that’s your fault. Ask better questions.
Want to Make Money With It?
- Build a website that switches between AI models for people too lazy to read docs.
- Sell “premium access” to a free API (shhh).
- Offer fallback chat: if Claude fails, GPT jumps in like a backup singer.
- Start an “Ask Me Anything” service powered by 4 bots pretending to be you.
Useful Links
- GitHub: https://github.com/andrewyng/aisuite
- Install command:
pip install aisuite[all] - Dotenv for storing keys: https://pypi.org/project/python-dotenv
Final Thought
Everyone else: writing wrappers to make money.
Andrew Ng: drops the final boss of wrappers… and makes it free.
Just use it. Call it innovation. Hope no one asks questions.

!