edenai provider, so one Eden AI key gives client.chat.completions.create access to the whole catalog.
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 and more behind one key. 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
The Eden AI provider ships in aisuite 0.2.0 and later. It talks to Eden AI through theopenai SDK, which aisuite does not install for you, so install both:
Quick Start
Set your key, then point aisuite at Eden AI by prefixing any model withedenai::
edenai provider uses the Eden AI base URL (https://api.edenai.run/v3) and reads your key from the EDENAI_API_KEY environment variable. The base URL is fixed in the provider: a base_url you put in the client config is ignored.
In aisuite 0.2.0, the
edenai provider does not support streaming. Calling it with stream=True raises an LLMError.Model naming
Useedenai:<provider>/<model>. Everything after the first colon is passed to Eden AI unchanged, for example edenai:anthropic/claude-sonnet-latest or edenai:mistral/mistral-small-latest. To browse every id, see List LLM Models.
Switching models
aisuite’s core benefit: change providers by changing one string. Every Eden AI model is reachable the same way, with no per-provider SDKs and no code changes:Passing configuration explicitly
Prefer not to use environment variables? Pass the key through the aisuite client config instead:Environment Variables
Theedenai provider reads EDENAI_API_KEY. There is no variable for the base URL.
Next Steps
- Chat Completions - Core LLM endpoint
- List LLM Models - Browse available providers and models
- OpenAI SDK (Python) - Direct SDK usage