Skip to main content

A unified source of truth for LLM providers, models, pricing, and capabilities.

Project description

LLM Providers (Python)

A unified source of truth for LLM providers, models, pricing, and capabilities.

Build Status PyPI License

Installation   •   Usage   •   Supported Providers   •   Contributing

Overview

Python bindings for the LLM Providers registry. Provides zero-latency access to a curated dataset of LLM providers, models, pricing, and capabilities — powered by Rust via PyO3.

The registry is embedded in the native extension at build time from data/providers.json via build.rs (no runtime JSON parsing).

Features

  • 🚀 Zero-Latency: Data is compiled into the binary; no runtime I/O or API calls.
  • 🐍 Pythonic API: Simple functions and typed objects.
  • 🔄 Unified Schema: Consistent data structure across all providers (OpenAI, Anthropic, DeepSeek, etc.).
  • 📦 Rich Metadata: Includes pricing, context length, and tool support flags.

Installation

pip install llm-providers-list

Usage

import llm_providers_list

# 1. List all provider families
print(llm_providers_list.list_providers())
# Output: ['aliyun', 'anthropic', 'deepseek', 'openai', ...]

# 2. List all endpoint IDs (for direct configuration)
print(llm_providers_list.list_endpoints())
# Output: ['aliyun:cn', 'anthropic:global', 'moonshot:cn', 'moonshot:global', ...]

# 3. Get endpoint details by ID
family_id, ep = llm_providers_list.get_endpoint("moonshot:global")
print(f"Family: {family_id}, Base URL: {ep.base_url}, Region: {ep.region}")

# 4. Get specific model details
model = llm_providers_list.get_model("openai", "gpt-4o")
print(f"Model: {model.name}, Price: ${model.input_price}/1M tokens")

Supported Providers

  • OpenAI (GPT-4o, GPT-3.5, o1)
  • Anthropic (Claude 3.5 Sonnet, Haiku, Opus)
  • DeepSeek (Chat, Reasoner)
  • Aliyun (Qwen Max, Plus, Turbo)
  • Tencent (Hunyuan)
  • Moonshot (Kimi)
    • Moonshot AI (CN)
    • Moonshot AI Global
  • MiniMax
    • MiniMax (CN)
    • MiniMax Global
  • Zhipu (GLM-4)
    • BigModel (Zhipu CN)
    • Z.ai (Zhipu Global)
  • Volcengine (Doubao)
  • LongCat

Contributing

Contributions are welcome! See the main repository for details.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_providers_list-0.6.0.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_providers_list-0.6.0-cp38-abi3-macosx_11_0_arm64.whl (249.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file llm_providers_list-0.6.0.tar.gz.

File metadata

  • Download URL: llm_providers_list-0.6.0.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.3

File hashes

Hashes for llm_providers_list-0.6.0.tar.gz
Algorithm Hash digest
SHA256 270d73db0c5abdd764773e275bb91bfc0a391be2dab355e10086dc508464628d
MD5 67cbf17458f0bf49e72fe57f6b73c116
BLAKE2b-256 4d636bac8f49d186c53a50203732846d01edea2058046fff1e970cd856f1ffab

See more details on using hashes here.

File details

Details for the file llm_providers_list-0.6.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for llm_providers_list-0.6.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ccea8c76380c883ec2a82fb8f0569d34100f51e44a0da2886d60608e1dd4232
MD5 5c8a7646bac8e5fbab69b1b4c36d706c
BLAKE2b-256 affcf56f83610fd1d1367a800e714696044b0e974838266dd26933061b8964c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page