Skip to main content
Use aisuite with Eden AI to call 500+ AI models through one unified, OpenAI-style interface.

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 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

Eden AI is OpenAI-compatible, so aisuite talks to it through the openai SDK — install both:

Quick Start

Set your key, then point aisuite at Eden AI by prefixing any model with edenai::
The 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 the edenai:<provider>/<model> format for any Eden AI model: OpenAI
  • edenai:openai/gpt-5.5
  • edenai:openai/gpt-5-mini
Anthropic
  • edenai:anthropic/claude-sonnet-5
  • edenai:anthropic/claude-opus-4-8
  • edenai:anthropic/claude-haiku-4-5
Google
  • edenai:google/gemini-2.5-pro
  • edenai:google/gemini-3.5-flash
Mistral
  • edenai:mistral/mistral-large-2512
  • edenai:mistral/mistral-small-2603

Passing configuration explicitly

Prefer not to use environment variables? Pass the key through the aisuite client config instead:

Environment Variables

Next Steps