A helper library providing a way to work with the lists of generation models, utility models, and any other related files required for the AI-Horde ecosystem.
Project description
Horde Model Reference
Horde Model Reference is the authoritative source for AI model metadata in the AI-Horde ecosystem: download URLs, SHA-256 checksums, baselines, NSFW flags, and capabilities for image generation, text generation, and utility models used by workers, clients, and services.
It is three things in one package: a set of JSON reference files, a Python library, and a FastAPI service.
Install
pip install horde-model-reference
Quick try
from horde_model_reference import ModelReferenceManager, MODEL_REFERENCE_CATEGORY
manager = ModelReferenceManager() # auto-fetches from the PRIMARY server, caches in memory
models = manager.get_model_reference(MODEL_REFERENCE_CATEGORY.image_generation)
for name, model in models.items():
print(f"{name}: {model.baseline}, NSFW={model.nsfw}")
No configuration needed -- the defaults work out of the box. The library runs in read-only REPLICA mode, fetching from models.aihorde.net with automatic fallback to the original GitHub repositories if the PRIMARY server is unreachable.
For the fluent query API (filter, sort, aggregate, merge sources), HTTP API access, deploying your own server, or contributing model data, see the full documentation.
Documentation
Full docs at horde-model-reference.readthedocs.io/en/latest/. Build locally with mkdocs serve.
- Getting Started -- first query, singleton pattern, prefetch strategies
- Querying Models -- filter, sort, aggregate with the fluent API
- Using the HTTP API -- call the live service over HTTP
- Filter Models for a Worker -- narrow the reference to what your node should serve
- Configuration & Troubleshooting -- env vars, debugging, common issues
- Deployment Guide -- run your own PRIMARY server
Runnable examples live in the examples/ directory.
Contributing
Contributions are welcome. Read CONTRIBUTING.md for setup and guidelines, and see the open issues.
Community
- Discord: AI Horde Discord --
#horde-model-referencechannel - Bug reports: GitHub Issues
- Feature requests: GitHub Discussions
License
Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See LICENSE for the full text. If you run a modified version as a network service, you must make your source code available to users. See the GNU AGPL FAQ for details.
Related Projects
- AI-Horde -- main AI-Horde API server
- horde-worker-reGen -- official image generation worker
- horde-sdk -- Python SDK for the AI-Horde API
- hordelib -- library wrapper around ComfyUI
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 horde_model_reference-5.1.1.tar.gz.
File metadata
- Download URL: horde_model_reference-5.1.1.tar.gz
- Upload date:
- Size: 780.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ccf1cba234d8d90cb49941e586e8a57cbc40abefc414f0b9773c1c6fd84e8de
|
|
| MD5 |
930797253d5baafbd3c3583858ac8f09
|
|
| BLAKE2b-256 |
138e6e30ba3f90f55a0d89fb58a754cebf411e66bb9f826b66ea9f8ef7d78b96
|
Provenance
The following attestation bundles were made for horde_model_reference-5.1.1.tar.gz:
Publisher:
release.yml on Haidra-Org/horde-model-reference
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
horde_model_reference-5.1.1.tar.gz -
Subject digest:
0ccf1cba234d8d90cb49941e586e8a57cbc40abefc414f0b9773c1c6fd84e8de - Sigstore transparency entry: 1819100663
- Sigstore integration time:
-
Permalink:
Haidra-Org/horde-model-reference@137213ad593b5ce970344f74db0b331c9031c966 -
Branch / Tag:
refs/tags/v5.1.1 - Owner: https://github.com/Haidra-Org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@137213ad593b5ce970344f74db0b331c9031c966 -
Trigger Event:
push
-
Statement type:
File details
Details for the file horde_model_reference-5.1.1-py3-none-any.whl.
File metadata
- Download URL: horde_model_reference-5.1.1-py3-none-any.whl
- Upload date:
- Size: 354.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02f5ce55611a3fddd1b202bdd026d14f7795f30f5bbd90dcb7da1035b53e54ec
|
|
| MD5 |
24a16640ed9323e42b98e784b936f438
|
|
| BLAKE2b-256 |
8bdb5b66c28dc1273e9662a725a2e8ab0d7fd1ca6bc7999d6daf506f2ada8e0e
|
Provenance
The following attestation bundles were made for horde_model_reference-5.1.1-py3-none-any.whl:
Publisher:
release.yml on Haidra-Org/horde-model-reference
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
horde_model_reference-5.1.1-py3-none-any.whl -
Subject digest:
02f5ce55611a3fddd1b202bdd026d14f7795f30f5bbd90dcb7da1035b53e54ec - Sigstore transparency entry: 1819100719
- Sigstore integration time:
-
Permalink:
Haidra-Org/horde-model-reference@137213ad593b5ce970344f74db0b331c9031c966 -
Branch / Tag:
refs/tags/v5.1.1 - Owner: https://github.com/Haidra-Org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@137213ad593b5ce970344f74db0b331c9031c966 -
Trigger Event:
push
-
Statement type: