LlamaIndex integration for OpenRouter API, providing access to over 200 LLMs through a unified interface. Current version 0.5.0, actively maintained with monthly releases. Requires Python >=3.10.
pip install llama-index-llms-openrouterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: initialize OpenRouter with API key and model, then call complete() or chat().
Use the 'model' parameter instead of 'model_name'.
Ensure OPENROUTER_API_KEY is set and has sufficient credits.
Check model documentation on OpenRouter for supported parameters.
Change 'model_name' to 'model' when instantiating OpenRouter.
Install llama-index: pip install llama-index
Set the OPENROUTER_API_KEY environment variable or pass api_key parameter.
No dependency data recorded yet.
No resource links recorded.