{"id":27149,"library":"model-library","title":"Model Library","description":"A Python SDK for interacting with the vals.ai model catalog. Provides model discovery, retrieval, and metadata utilities. Current version 0.1.23, updated irregularly.","status":"active","version":"0.1.23","language":"python","source_language":"en","source_url":"https://github.com/vals-ai/model-library","tags":["vals.ai","model catalog","SDK"],"install":[{"cmd":"pip install model-library","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"hyphens not allowed in Python imports","wrong":"from model-library import Model","symbol":"Model","correct":"from model_library import Model"}],"quickstart":{"code":"from model_library import Model\n\nmodel = Model(name='gpt-4o-mini', api_key=os.environ.get('VALS_API_KEY', ''))\nprint(model.id)","lang":"python","description":"Create a model instance using the SDK, fetching metadata from vals.ai."},"warnings":[{"fix":"Import with underscores: `from model_library import ...`","message":"Library name uses a hyphen on PyPI but underscores in imports. Use `from model_library import ...` not `from model-library import ...`.","severity":"gotcha","affected_versions":"all"},{"fix":"Set environment variable `VALS_API_KEY` or pass `api_key` argument.","message":"API keys must be passed explicitly or set via `VALS_API_KEY` environment variable. No default sandbox key.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install model-library` and then import as `from model_library import ...`","cause":"The package is installed as `model-library` but Python import uses underscores.","error":"ModuleNotFoundError: No module named 'model_library'"},{"fix":"Set VALS_API_KEY environment variable or pass api_key='sk-...' to Model constructor.","cause":"No API key provided or set in environment.","error":"ValueError: Missing API key"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}