any-llm
Use one Python interface across model providers.
Tool
Models & inference · Documentation reviewed 2026-11-10. Not independently tested.
When it helps
Trying different model backends without rewriting all request plumbing.
What to consider
Provider capabilities and billing still differ; a shared interface cannot make them equivalent.
Getting started
Install only the provider extras you need and try the documented completion example.
Repository evidence
Stars: 2,268 · License: Apache-2.0
Last code push: 2026-11-21
Statistics retrieved: 2026-11-23T00:42:59+00:00
Counts are snapshots, not live rankings. Review the repository license and any hosted-service terms before adopting it.
Adding model calls?
Plan the tokens, retries, and fallback costs before connecting your tools.