aisuite
UNIFIED GENERATIVE-AI INTERFACE

One interface for every model provider.

Simple, unified interface to multiple Generative AI providers.

quickstart.py
import aisuite as ai
client = ai.Client()

# swap providers by changing one string
models = ["openai:gpt-4o", "anthropic:claude",
          "groq:llama-3"]

for m in models:
    r = client.chat.completions.create(
        model=m,
        messages=msgs,
    )
    print(r.choices[0].message.content)
SWAP ANY PROVIDER WITH A STRING — NO REWRITE
OpenAIAnthropicGoogle MistralGroqAWS Bedrock AzureOllamaHugging Face
01

One call signature

The same chat.completions.create shape across providers. Learn it once.

02

Provider as a string

Switch from a frontier model to a local one by editing a single identifier.

03

Thin by design

A small wrapper over official SDKs — no lock-in, no heavy abstraction tax.