Python SDK
Use one Python function for 100+ LLM providers.
The completion() function uses the same arguments for OpenAI, Anthropic, Bedrock, and 100+ other providers. It always gives the result in the OpenAI format. To use a different model, you replace one string. The SDK also gives streaming, retries, fallbacks, and the cost of each call.
from litellm import completion
messages = [{"role": "user", "content": "Hello"}]
completion(model="openai/gpt-5.6-terra", messages=messages)
completion(model="anthropic/claude-sonnet-5", messages=messages)

