Overview
aisuite is a lightweight Python library (from Andrew Ng’s team) that gives you a single, OpenAI-style Chat Completions interface across many providers — swap providers by changing one string. Eden AI is a built-in aisuite provider, so you reach models from OpenAI, Anthropic, Google, Mistral, Cohere, Meta and more behind one key, with EU-based, GDPR-aligned inference. You select a model with theprovider:model_id syntax. For Eden AI, the provider is edenai and the model id follows Eden AI’s provider/model scheme — for example edenai:vertex/gemini-flash-latest.
Installation
Eden AI is OpenAI-compatible, so aisuite talks to it through theopenai SDK — install both:
The Eden AI provider is on aisuite’s
main branch but has not made it into a
PyPI release yet, so install from the repository. Once aisuite publishes a
release that includes it, pip install aisuite openai is enough.Quick Start
Set your key, then point aisuite at Eden AI by prefixing any model withedenai::
edenai provider automatically uses the Eden AI base URL (https://api.edenai.run/v3) and reads your key from the EDENAI_API_KEY environment variable.
Switching models
aisuite’s core benefit: change providers by changing one string. Every Eden AI model is reachable the same way — no per-provider SDKs, no code changes:Available Models
Use theedenai:<provider>/<model> format for any Eden AI model:
OpenAI
edenai:openai/gpt-5.5edenai:openai/gpt-5-mini
edenai:anthropic/claude-sonnet-latestedenai:anthropic/claude-opus-latestedenai:anthropic/claude-haiku-latest
edenai:vertex/gemini-2.5-proedenai:vertex/gemini-flash-latest
edenai:mistral/mistral-large-latestedenai:mistral/mistral-small-latest
Passing configuration explicitly
Prefer not to use environment variables? Pass the key through the aisuite client config instead:Environment Variables
Next Steps
- Chat Completions - Core LLM endpoint
- List LLM Models - Browse available providers and models
- OpenAI SDK (Python) - Direct SDK usage