Files
big-agi/docs/config-openrouter.md
T
2023-09-18 23:13:23 -07:00

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

  1. Sign up for OpenRouter at openrouter.ai > Sign In > Continue with Google
  2. Add funds to the account (minimum $5) - openrouter.ai/account > Add Credits > Pay with Stripe
  3. 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

2. Add the API key to big-AGI

  1. Launch big-AGI, and go to the AI Models settings
  2. Add a Vendor, and select OpenRouter feature-openrouter-add.png
  3. Enter the API key in the OpenRouter API Key field, and load the Models feature-openrouter-configure.png
  4. 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.