A CLI tool to list available LLM models from various providers
Project description
llm_models
A simple command-line tool to list available LLM models from various providers (OpenAI, Google, Anthropic, xAI).
Installation
- Clone the repository:
$ git clone git@github.com:ljbuturovic/llm_models.git
$ cd llm_models
- Create a virtual environment:
$ python3 -m venv venv
$ source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
$ pip install -r requirements.txt
Usage
The tool requires API keys set as environment variables:
OPENAI_API_KEYfor OpenAIGOOGLE_API_KEYfor Google Gemini API, orGOOGLE_CLOUD_PROJECTfor Vertex AI APIANTHROPIC_API_KEYfor AnthropicXAI_API_KEYfor xAI
Examples
List OpenAI models:
$ ./llm_models.py --provider OpenAI
Listing available OpenAI models...
================================================================================
Model: babbage-002
Model: chatgpt-4o-latest
Model: codex-mini-latest
Model: dall-e-2
Model: dall-e-3
Model: davinci-002
Model: gpt-3.5-turbo
...
List Google models using Gemini API:
$ ./llm_models.py --provider GoogleAI
Listing available Google AI Studio models (auto-routed region)...
================================================================================
Model: models/embedding-gecko-001
Model: models/gemini-2.5-pro-preview-03-25
Model: models/gemini-2.5-flash
Model: models/gemini-2.5-pro-preview-05-06
Model: models/gemini-2.5-pro-preview-06-05
List Google models using Vertex AI API (with regional endpoint):
$ ./llm_models.py --provider VertexAI --region us-central1
List Anthropic models:
$ ./llm_models.py --provider Anthropic
Listing available Anthropic models...
================================================================================
Model: claude-haiku-4-5-20251001 (Claude Haiku 4.5)
Model: claude-sonnet-4-5-20250929 (Claude Sonnet 4.5)
Model: claude-opus-4-1-20250805 (Claude Opus 4.1)
Model: claude-opus-4-20250514 (Claude Opus 4)
Model: claude-sonnet-4-20250514 (Claude Sonnet 4)
Model: claude-3-7-sonnet-20250219 (Claude Sonnet 3.7)
Model: claude-3-5-haiku-20241022 (Claude Haiku 3.5)
Model: claude-3-haiku-20240307 (Claude Haiku 3)
Model: claude-3-opus-20240229 (Claude Opus 3)
List xAI models:
$ ./llm_models.py --provider xAI
Listing available xAI models (NOTE: xAI uses aliases, so grok-4 is an acceptable API name, resolving to grok-4-0709 as of Nov. 2025)...
================================================================================
Model: grok-2-1212
Model: grok-2-vision-1212
Model: grok-3
Model: grok-3-mini
Model: grok-4-0709
Model: grok-4-1-fast-non-reasoning
Model: grok-4-1-fast-reasoning
Model: grok-4-fast-non-reasoning
Model: grok-4-fast-reasoning
Model: grok-code-fast-1
Model: grok-2-image-1212
Requirements
- Python 3.7+
- See
requirements.txtfor package dependencies - tested on Ubuntu 24.04
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_models-0.1.0.tar.gz.
File metadata
- Download URL: llm_models-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1265d8933231f66fee79fb1c67a1a14e6f0ee5b8af59cfa0b3317535f824fa50
|
|
| MD5 |
ed63f51a3c1634ca8ec987274695ea83
|
|
| BLAKE2b-256 |
89f504191b54bb1b692b196d34b17cf2dce6c4059dae889e903df39c02c21280
|
File details
Details for the file llm_models-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llm_models-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fb477e57e6d9156e4c191bdc394817e44c1c4eca58b9b33eb3555d8a8c18683
|
|
| MD5 |
30b402ea8051f182506b7a28a5227df8
|
|
| BLAKE2b-256 |
e20e80992f4a568ee3c5e3c55a0d14c90f885412531fb33acdc215d34d059ec7
|