Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 21, 2026·3 min de lecture

AISuite — Unified Interface to Multiple Generative AI Providers

AISuite provides a simple, consistent Python API for calling large language models from OpenAI, Anthropic, Google, Mistral, and other providers. Switch between models by changing a single string parameter without rewriting application logic.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Stage only · 29/100Stage only
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
AISuite Overview
Commande CLI universelle
npx tokrepo install f992e8bc-54ae-11f1-9bc6-00163e2b0d79

Introduction

AISuite is a lightweight Python library created by Andrew Ng that standardizes the interface for calling generative AI models across multiple providers. It follows the OpenAI chat completions API pattern, making it trivial to swap providers during development, testing, or production without altering application code.

What AISuite Does

  • Provides a unified chat completions API across OpenAI, Anthropic, Google, AWS Bedrock, Mistral, and more
  • Uses a provider:model string format for instant model switching
  • Handles provider-specific authentication and request formatting transparently
  • Supports streaming responses and function calling where providers allow
  • Maintains minimal dependencies to avoid version conflicts

Architecture Overview

AISuite implements a thin adapter layer where each AI provider has a corresponding provider class that translates the unified API calls into provider-specific HTTP requests. The Client object routes requests based on the provider prefix in the model string, loads credentials from environment variables, and returns responses in a normalized format matching the OpenAI response schema.

Self-Hosting & Configuration

  • Install via pip with optional provider extras: pip install aisuite[anthropic]
  • Set API keys as environment variables (OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.)
  • Configure custom base URLs for self-hosted or proxy endpoints
  • No server component needed; runs entirely as a client library
  • Compatible with Python 3.9+ and integrates with existing async frameworks

Key Features

  • Single import replaces multiple provider SDKs in your codebase
  • Provider:model string notation makes A/B testing across models straightforward
  • Automatic retry and error handling with provider-specific rate limit awareness
  • Extensible provider system for adding custom or local LLM endpoints
  • Lightweight with no heavy ML framework dependencies

Comparison with Similar Tools

  • LiteLLM — more comprehensive proxy server with 100+ model support; AISuite is lighter and library-only
  • LangChain — full application framework with agents and chains; AISuite focuses solely on the model call interface
  • OpenRouter — hosted routing service; AISuite runs locally without external dependencies
  • Portkey — enterprise gateway with caching and fallbacks; AISuite is a simpler client-side abstraction

FAQ

Q: Does AISuite add latency to API calls? A: No, it adds negligible overhead since it only translates parameters and passes through to the provider SDK or HTTP client.

Q: Can I use it with local models like Ollama? A: Yes, AISuite supports custom endpoints so you can point it at any OpenAI-compatible API server.

Q: Is streaming supported for all providers? A: Streaming is supported where the underlying provider API offers it. Check provider-specific documentation for availability.

Q: Who maintains AISuite? A: The project was created by Andrew Ng and is maintained as an open-source community project.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires