RavenRouter × LlamaIndex

LlamaIndex Integration

Use the OpenAI LLM class with a custom api_base.

Before you start

  • Create an API key in Console → API Keys.
  • Pick a model from GET /v1/models that your plan allows.

API base URL: https://api.ravenrouter.ai/v1

Setup steps

  1. Install openai and llama-index packages.
  2. OpenAI(api_key=..., api_base="https://api.ravenrouter.ai/v1") or Settings.llm.
  3. Use RavenRouter model names for the model parameter.

Configuration example

from llama_index.llms.openai import OpenAI

llm = OpenAI(
    model="DeepSeek-V3.2",
    api_key="<YOUR_RAVENROUTER_TOKEN>",
    api_base="https://api.ravenrouter.ai/v1",
)

Notes

  • Pair with /v1/embeddings for RAG pipelines.