Comparison
g4f vs hanzoai vs model-library vs portkey-ai
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
The official gpt4free repository | various collection of powerful language models
Actively maintained. Last release 3 days ago, commits in 23 of the last 26 weeks. A safe choice.
pip install g4fThe official Python library for the Hanzo API
Actively maintained. Last release 5 days ago, commits in 24 of the last 26 weeks. A safe choice.
pip install hanzoaiModel Library for vals.ai
Actively maintained. Last release 13 days ago, commits in 13 of the last 26 weeks. A safe choice.
pip install model-libraryPython client library for the Portkey API
Actively maintained. Last release 4 months ago, commits in 5 of the last 26 weeks. A safe choice.
pip install portkey-aiIn short
- portkey-ai is the most used: 4.7M downloads a month, 29× more than model-library.
- model-library is better maintained: Pythie’s Index 92 against 71.
- portkey-ai is growing fastest: downloads +25% over the last month.
- model-library is the newcomer: first released Nov 2025.
- Safe default for a new project: portkey-ai, or model-library if active maintenance matters most.
Side by side
| Metric | g4f | hanzoai | model-library | portkey-ai |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 90 | Pythie’s Index: 85 | Pythie’s Index: 92 | Pythie’s Index: 71 |
| Verdict | Actively maintained | Actively maintained | Actively maintained | Actively maintained |
| Downloads / month | 88.5K | 31.3K | 160.9K | 4.7M |
| Downloads, month over month | -1% | -59% | -19% | +25% |
| GitHub stars | 67.1K | 12 | 32 | 120 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 0 | 0 | 0 | 12 |
| Last release | Nov 30, 2026 | Nov 28, 2026 | Nov 20, 2026 | Jul 23, 2026 |
| Releases, 12 months | 235 | 141 | 39 | 6 |
| Weeks with commits | 23 / 26 | 24 / 26 | 13 / 26 | 5 / 26 |
| Recent contributors | 8 | 5 | 8 | 9 |
| First release | Jul 2023 | Mar 2025 | Nov 2025 | Sep 2023 |
| Python versions | – | 3.12 – 3.13 | – | – |
| License | GPL-3.0 | Apache-2.0 | MIT | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.