Overview
any-llm is a lightweight Python library from Mozilla AI that lets you talk to any LLM provider through a singlecompletion() interface — swap providers by changing one string. Eden AI is a built-in any-llm provider, so you reach models from OpenAI, Anthropic, Google, Mistral and 500+ more behind one key, with EU-based, GDPR-aligned inference.
You select a model with the provider:model_id syntax. For Eden AI, the provider is edenai and the model id follows Eden AI’s provider/model scheme — for example edenai:anthropic/claude-sonnet-5.
Installation
Install any-llm with the Eden AI provider extra:Quick Start
Set your key, then point any-llm 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
any-llm’s core benefit: change providers by changing one string. Every Eden AI model is reachable the same way:Streaming
Eden AI supports streaming through any-llm — passstream=True:
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-5edenai:anthropic/claude-opus-4-8edenai:anthropic/claude-haiku-4-5
edenai:google/gemini-2.5-proedenai:google/gemini-3.5-flash
edenai:mistral/mistral-large-2512edenai:mistral/mistral-small-2603
Embeddings
The Eden AI provider also supports embeddings:Environment Variables
Next Steps
- Chat Completions - Core LLM endpoint
- List LLM Models - Browse available providers and models
- aisuite - Another unified LLM interface
- OpenAI SDK (Python) - Direct SDK usage