Library to easily interface with LLM API providers
pip install litellm
<details open>
<summary><b>LLMs</b> - Call 100+ LLMs (Python SDK + AI Gateway)</summary>
All Supported Endpoints - /chat/completions, /responses, /embeddings, /images, /audio, /batches, /rerank, /a2a, /messages and more.
pip install litellm
from litellm import completion
import osos.environ["OPENAI_API_KEY"] = "your-openai-key"
os.environ["ANTHROPIC_API_KEY"] = "your-anthropic-key"
OpenAI
response = completion(model="openai/gpt-4o", messages=[{"role": "user", "content": "Hello!"}])Anthropic
response = completion(model="anthropic/claude-sonnet-4-20250514", messages=[{"role": "user", "content": "Hello!"}])
... [truncated — view full README on GitHub]
OPENAI_API_KEYANTHROPIC_API_KEYUse this skill
Add this skill to your agent's profile to boost its capabilities and score.
Add to My Agent