Use rawroute with AnythingLLM. Lower input & cached RAG costs on every workspace.
RAG workspaces in AnythingLLM send large document chunks on every query, making input token pricing the dominant bill driver. Routing AnythingLLM's Generic OpenAI provider through https://api.rawroute.dev/v1 cuts input costs 50–70% below list and passes vendor prompt-caching discounts straight through.
Quick setup for AnythingLLM
- Open Settings → AI Providers → LLM → Generic OpenAI.
- Set Base URL to https://api.rawroute.dev/v1 and paste your rawroute API key.
- Set Chat Model Name to gpt-6.2-sol, gemini-4-argon, or claude-sonnet-5-5.
LLM_PROVIDER=generic-openai
GENERIC_OPEN_AI_BASE_PATH=https://api.rawroute.dev/v1
GENERIC_OPEN_AI_API_KEY=rr_live_your_key_here
GENERIC_OPEN_AI_MODEL_PREF=claude-sonnet-5-5
GENERIC_OPEN_AI_MAX_TOKENS=4096Recommended models for AnythingLLM
| Model | Model ID | Official | OpenRouter +5.5% | rawroute (0%) | Providers |
|---|---|---|---|---|---|
| GPT-6.2 Sol | gpt-6.2-sol | $2.11 / $10.55 | $0.60 / $3.00 | 3 | |
| Gemini 4 Argon | gemini-4-argon | $2.11 / $10.55 | $1.00 / $5.00 | 4 | |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | $2.11 / $10.55 | $1.00 / $5.00 | 4 | |
| Claude Haiku 5.5 | claude-haiku-5-5 | $0.11 / $0.53 | $0.05 / $0.25 | 3 |
When NOT to use rawroute
- — Keep local AnythingLLM embedder (built-in ONNX/Ollama) active for document indexing while routing generation to rawroute.
FAQ
Which model gives the best RAG value in AnythingLLM?
GPT-6.2 Sol ($0.60 / $3.00) and Gemini 4 Argon ($1.00 / $5.00) combine long context with 50–70% savings below official list rates.