OpenRouter Free Scanner
A simple command-line tool and Python library to fetch, filter, and save a list of free models from OpenRouter.ai.
Installation
pip install .
Command-Line Usage
To display the list of free models in the console:
openrouterfreescanner
To save the list of free models to a JSON file named free_models.json:
openrouterfreescanner -o
Advanced Usage
--limit <N>: Limit the number of models returned.--name <string>: Filter models by name.--min-context-length <N>: Filter by minimum context length.--provider <string>: Filter by provider.--sort-by <field>: Sort models by a specific field (e.g.,name,context_length).--reverse: Reverse the sort order.
Example: Get the top 5 free models with the longest context length:
openrouterfreescanner --limit 5 --sort-by context_length --reverse
Programmatic Usage
You can also use this package as a library in your Python code:
import openrouterfreescanner
# Get only free models
free_models = openrouterfreescanner.get_free_models()
# Get free models, including routers
free_models_with_routers = openrouterfreescanner.get_free_models(exclude_routers=False)
# Filter free models by name
gemma_models = openrouterfreescanner.filter_models(free_models, name="gemma")
# Filter free models by provider and context length
filtered_models = openrouterfreescanner.filter_models(free_models, provider="google", min_context_length=8000)
# Sort free models by context length in descending order
sorted_models = openrouterfreescanner.sort_models(free_models, sort_by="context_length", reverse=True)
Metadata
Release files for openrouterfreescanner 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openrouterfreescanner-1.0.1.tar.gz | 4.5 kB | Without provenance | Details for openrouterfreescanner-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openrouterfreescanner-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for openrouterfreescanner-1.0.1-py3-none-any.whl |
Total release size: 9.9 kB
Release files / openrouterfreescanner-1.0.1.tar.gz
| Download URL | openrouterfreescanner-1.0.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4763e7b8e822ca94b7ac05376405587b5417d501ec243bb33c08bb27bf9d6434
|
|
BLAKE2b-256 checksum How to use checksums |
d78e047b413c50ee0dc797698f7ac89ef6b9b31de82a85644b1dd25364c19d08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / openrouterfreescanner-1.0.1-py3-none-any.whl
| Download URL | openrouterfreescanner-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc0890aff9aa721eba3aba8a4bc8a578a1fdbe966cf83853a01a4d49a974bd21
|
|
BLAKE2b-256 checksum How to use checksums |
43aa4d6212927e41c879aa19752b3f0b9a48be10f74a357e18ce4f124823e70e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for openrouterfreescanner 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.