Skip to content

Obtaining API Keys

Urai Chat uses a “Bring Your Own Key” (BYOK) model. This means you need to provide your own API keys for the AI providers you want to use. This guide will help you find and generate these keys and configure them in your workspace.

Once you have your API keys, you need to add them to your Urai Chat workspace.

Go to the Credentials tab in the sidebar and click on the Add Credential button.

Empty Add Credential Modal

Select the provider you want to configure from the dropdown menu. We currently support Anthropic, Gemini, Vertex AI, OpenAI, and OpenRouter.

Choosing a Provider

Enter your API key (and any other required fields for that provider) and click Create.

Entering the Gemini API Key

After adding your credentials, you must select a default Summarizer Model. This model is used by Urai Chat to generate concise summaries and titles for the conversation.

  1. Navigate to Settings in the sidebar.
  2. Under the General tab, find the AI Models section.
  3. Choose a model from the Summarizer Model dropdown (e.g., Gemini 2.5 Flash Lite).
  4. Click Save Changes.

Setting the Summarizer Model


Below are the steps for each provider.

  1. Login to the OpenAI Platform.
  2. Navigate to the Dashboard and select API Keys from the sidebar (or click on your profile icon and find “View API keys”).
  3. Click + Create new secret key.
  4. Give your key a name and click Create secret key.
  5. Copy and save your key immediately. You will not be able to see it again.

Google AI Studio is the easiest way to get an API key for Gemini models.

  1. Go to Google AI Studio.
  2. In the left sidebar, click on Get API key.
  3. Click Create API key in new project or select an existing project.
  4. Copy the generated API key.
  1. Login to the Anthropic Console.
  2. Navigate to Manage > API Keys.
  3. Click Create Key.
  4. Provide a name for the key and click Create Key.
  5. Copy and save your key securely.

OpenRouter provides a unified interface for many different models.

  1. Login to OpenRouter.
  2. Navigate to the Dashboard and select Keys.
  3. Click Create.
  4. Provide a name and (optional) a credit limit.
  5. Copy your new API key.

Vertex AI is Google’s enterprise AI platform. Authentication usually requires a Service Account.

  1. Go to the Google Cloud Console.
  2. Select or create a project.
  3. Enable Vertex AI API: Search for “Vertex AI API” in the search bar and click Enable.
  4. Navigate to IAM & Admin > Service Accounts.
  5. Click + Create Service Account.
  6. Follow the steps to name and create it. Grant it the role Vertex AI User.
  7. Once created, click on the service account’s email address.
  8. Go to the Keys tab and click Add Key > Create new key.
  9. Select JSON and click Create.
  10. A JSON file will be downloaded to your computer. Depending on the Urai Chat integration, you may need to provide the contents of this file or specific fields (Project ID, Client Email, Private Key).