docs/usage/providers/openrouter.mdx
<Image alt={'Using OpenRouter in LobeHub'} cover src={'/blog/assets34400653/40520a43-ac03-4954-8a4d-282fbb946066.webp'} />
OpenRouter is a platform that provides access to a wide range of high-quality large language model APIs. It supports models from OpenAI (including GPT-3.5/4), Anthropic (Claude2, Instant), LLaMA 2, PaLM Bison, and more.
This guide will walk you through how to use OpenRouter in LobeHub:
<Steps> ### Step 1: Register and Log In to OpenRouter<Image alt={'Register on OpenRouter'} height={457} inStep src={'/blog/assets34400653/a024af40-e1d9-4df0-b998-0e6e87cebe5b.webp'} />
Keys section or visit OpenRouter Keys directly.Create Key to begin.Credit limit field blank if you don’t want to set a spending cap.<Image alt={'Create OpenRouter Key'} height={460} inStep src={'/blog/assets34400653/094d701f-ce80-464a-bbbc-0a5ecc8d08e3.webp'} />
<Image alt={'Retrieve OpenRouter Key'} height={519} inStep src={'/blog/assets34400653/7a012a11-87bd-4366-a567-0ebf6d12ae10.webp'} />
<Callout type={'warning'}> Make sure to store your API key securely, as it will only be shown once. If you lose it, you’ll need to generate a new one. </Callout>
Credit section or visit OpenRouter Credit.Manage Credits to add funds. You can view model pricing at https://openrouter.ai/models.<Image alt={'Add Credit to OpenRouter'} height={385} inStep src={'/blog/assets34400653/50b73232-01fc-4ef0-939a-3e06354d1b5a.webp'} />
Settings panel in LobeHub.AI Providers, find the OpenRouter section.<Image alt={'Configure OpenRouter in LobeHub'} height={518} inStep src={'/blog/assets34400653/5c3898ab-23d7-44c2-bbd9-b255e25e400c.webp'} />
<Image alt={'Using OpenRouter Models'} height={518} inStep src={'/blog/assets34400653/77b5feee-3f46-486d-9a36-31ff60efa5e9.webp'} />
<Callout type={'warning'}> You may incur charges when using API services. Please refer to OpenRouter’s pricing policy for more details. </Callout> </Steps>
You’re now ready to start using OpenRouter’s models in LobeHub for conversations.