Quickstart
Install any-llm and make your first API call in 5 minutes
Requirements
Installation
pip install any-llm-sdk[all] # Install with all provider supportInstalling Specific Providers
pip install any-llm-sdk[mistral] # For Mistral provider
pip install any-llm-sdk[ollama] # For Ollama provider
# install multiple providers
pip install any-llm-sdk[mistral,ollama]Library Integration
APIs
Using the AnyLLM Class
API Call
When to Choose Which Approach
Streaming
Reasoning
Embeddings
Moderation
Tools
Exception Handling
Enabling Unified Exceptions
Basic Usage
Accessing Original Exceptions
Last updated