mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-11 06:00:15 -07:00
1.6 KiB
1.6 KiB
OpenRouter
OpenRouter is an independent, premium service granting access to exclusive models such as GPT-4 32k, Claude, and more, typically unavailable to the public. This page explains how to link OpenRouter to big-AGI.
1. Sign up for OpenRouter and generate an API key
- Sign up for OpenRouter at openrouter.ai > Sign In > Continue with Google
- Add funds to the account (minimum $5) - openrouter.ai/account > Add Credits > Pay with Stripe
- Generate an API key - openrouter.ai/keys > API Key > Generate API Key
- copy and save your API key - the key will not be shown again, and will be in the format
sk-or-v1-... - keep the key secret, as it can be used to spend your credits
- copy and save your API key - the key will not be shown again, and will be in the format
2. Add the API key to big-AGI
- Launch big-AGI, and go to the AI Models settings
- Add a Vendor, and select OpenRouter

- Enter the API key in the OpenRouter API Key field, and load the Models

- OpenAI GPT4-32k and other models will now be available and selectable in the app
Pricing
OpenRouter provides the service and pricing, and it is not affiliated with big-AGI. Please see this page for more information details.
Note that large models such as GPT-4 32k are very expensive to run, and may consume credits very quickly - one prompt may cost $1 or more, at the time of writing.