Using litellm with openai.com

Python integration

Install
pip install litellm
Quick start
import litellm

client = litellm.Client("YOUR_API_KEY")
Returns a list of files that belong to the user's organization.
curl \
  https://api.openai.com/v1/files
Lists the currently available models, and provides basic information about ea…
curl \
  https://api.openai.com/v1/models
Lists the currently available (non-finetuned) models, and provides basic info…
curl \
  https://api.openai.com/v1/engines
SDK on GitHub 📄 API Docs
SDK
litellm
Python
API
openai.com
openai.com
At a glance
Language Python
Endpoints28
Base URLhttps://api.openai.com/v1