Skip to main content

Provider value

Use openrouter in llm.profiles.<name>.provider.

Model IDs

model is passed through to OpenRouter unchanged, for example openai/gpt-5, anthropic/claude-opus-5, or google/gemini-2.5-flash-lite. Hyperlocalise does not maintain its own catalogue of OpenRouter models; any model ID your OpenRouter account can access will work.

Example profile

Required environment variable

Optional environment variable

OPENROUTER_BASE_URL defaults to https://openrouter.ai/api/v1.

Attribution headers

OpenRouter supports optional HTTP-Referer and X-OpenRouter-Title request headers (X-Title is accepted as an alias for the latter) to attribute usage to your app on OpenRouter’s leaderboards. Hyperlocalise does not set these today; there is no per-provider custom-header configuration yet.