JabRef
v6
v6
  • JabRef Bibliography Management
  • Installation
  • Getting started
  • Collect
    • Add entry manually
    • Add entry using an ID
    • Add entry using reference text
    • Searching externally using Online Services
    • Add entry using PDFs
    • Add PDFs to an entry
    • Browser Extension
    • Import
      • Custom import filters
      • Import inspection window
  • Organize
    • Edit an entry
    • Groups
    • Keywords
    • Mark and grade
    • Comment on an entry
    • Searching within the library
    • Complete information using online databases
    • Manage associated files
    • Manage field names and their content
    • Best practices
    • Check consistency
    • Cleanup entries
    • Check integrity
    • Find duplicates
    • Merge entries
    • Save actions
  • Cite
    • BibTeX and biblatex
    • Pushing to external editor application
    • Export to Microsoft Word
    • OpenOffice/LibreOffice integration
  • Share
    • Sharing a Bib(la)TeX Library
    • Shared SQL Database
      • Migration of pre-3.6 SQL databases into a shared SQL database
    • Export
      • Custom export filters
    • Send as email
  • AI functionality
    • AI providers and API keys
    • AI preferences
    • AI troubleshooting
    • Running a local LLM model
  • Configuration
    • Customize the citation key generator
    • Customize entry types
    • Customize general fields
    • Customize key bindings
    • Library properties
    • Entry preview setup
    • Manage external file types
    • Manage protected terms
    • The string editor
  • Advanced information
    • Main Window
    • Entry Editor
      • Links to other entries
      • The Bibtex / Biblatex source tab
      • The 'owner' field
      • Time stamp field
      • LaTeX Citations Tab
    • About BibTeX and its fields
    • Strings
    • Field content selector
    • URL and DOI links in JabRef
    • Command line use and options
    • Automatic Backup (.sav and .bak) and Autosave
    • XMP metadata support in JabRef
    • Remote operation
    • Custom themes
    • Journal abbreviations
    • New subdatabase based on AUX file
    • How to expand first names of an entry
    • Debugging your library file
    • Resources
    • License
    • Knowledge
      • MS Office Bibliography XML format
      • Comparison of the Medline (txt), Medline (xml), and RIS format
      • EndNote Export Filter
  • Frequently Asked Questions
    • Linux
    • Mac OS X
    • Windows
  • JabKit
  • Discussion Forum
  • Contribute to JabRef
    • How to Improve the Help Page
    • How to translate the JabRef User Interface
Powered by GitBook
On this page
  • What is an AI provider?
  • Which AI provider should I use?
  • Why do I need an API key?
  • What is an API key?
  • How to get an API key?
  • How to get an OpenAI API key?
  • How to get a Mistral AI API key?
  • How to get a Hugging Face API key?
  • What should I do with the API key and how can I enter it in JabRef?
  • How to increase the money balance for an API key?
  • OpenAI
  • Mistral AI
  • Hugging Face

Was this helpful?

Edit on GitHub
Export as PDF
  1. AI functionality

AI providers and API keys

PreviousAI functionalityNextAI preferences

Last updated 2 months ago

Was this helpful?

What is an AI provider?

An AI provider is a company or a service that gives you the ability to send requests to and receive responses from an artificial intelligence. At date of writing, the most capable AI systems are based on Large Language Model (LLM) architectures.

Here is the list of AI providers currently supported by JabRef:

  • OpenAI

  • Mistral AI

  • Google

  • Hugging Face.

  • GPT4All

  • Ollama

You can find more information about providers in the . This is the framework that we use in JabRef. This page lists available integrations. It should be noted that JabRef is compatible with any provider that itself is compatible with the OpenAI API.

Which AI provider should I use?

We cannot give a clear recommendation. Providers change their service and their prices regularly and our documentation page is too static to keep up with daily changes. It is recommended to look up LLM benchmarks on the internet or to use the trial and error method. To date, remote AI providers like OpenAI, Google, Mistral and others offer state of the art quality.

If you want to , choose GPT4All or Ollama. In comparison to remote AI providers, open weight local models that are compatible with average consumer devices offer less capabilities. There are state of the art local models available, but they are very large (in terms of number of parameters) and the higher the number of parameters, the more memory is needed. To run the largest models, very expensive and capable hardware (preferably VRAM in GPU's or ASICs) is required. That said, even small models can be sufficient for the workflow. Hugging Face is a special case. One the one hand, it serves as a free hosting platform from where you can download numerous models to host them yourself locally. On the other hand Huggingface also is a remote AI provider that offers running numerous large and small open weight models for you.

Why do I need an API key?

In order to use any of the (proprietary) remote services and to receive a response, you always need an API key to authenticate and manage billing. The following sections down below teach you how to receive a key and where to enter it in the preferences.

What is an API key?

An API key or API token is like a password that lets an app or program access information or services from another app or website, such as an LLM service. It ensures that only authorized users or applications can use the service. For example, when an app uses an LLM service to generate text or answer questions, it includes its unique API key in the request. The LLM service checks this key to make sure the request is legitimate before providing the response. This process keeps the data secure and helps track how the service is being used.

How to get an API key?

How to get an OpenAI API key?

To get an OpenAI API key, follow these steps:

  1. Go to the "API" section

  2. Go to the "Dashboard" (upper-right corner)

  3. Go to the "API keys" (left menu)

  4. Click "Create new secret key"

  5. Click "Create secret key"

  6. OpenAI will display the key

How to get a Mistral AI API key?

  1. There you will find a button "Create new key". Click on it

  2. You can optionally set up a name for the API key and its expiration date

  3. After the creation, you will see "Your key is:" with a string of random characters after that

How to get a Hugging Face API key?

Hugging Face refers to an "API key" as an "Access Token". It does not make much difference, you can interchangeably use either "API key", or "API token", or "access token".

  1. Set "Token Type" to "Read"

  2. Name a token

  3. After you click "Create token", a popup will be shown with the API key

What should I do with the API key and how can I enter it in JabRef?

Do not share the key with anyone, it is a secret that was created only for your account. Do not enter this key into unknown or unverified services.

Now you need to copy and paste it into JabRef preferences. To do this:

  1. Launch JabRef

  2. Go "File" -> "Preferences" -> "AI"

  3. Check "Enable AI functionality"

  4. Paste the key into the "API key" field

  5. Click "Save"

If you have some money on your credit balance, you can chat with your library!

How to increase the money balance for an API key?

OpenAI

To increase your credit balance on OpenAI, follow these steps:

Mistral AI

Hugging Face

Log in or create an account on the

Login or create an account on the

Go to the

or on Hugging Face

Go to

Add payment method .

Add credit balance on page.

Make the subscription on .

You do not have to pay anything for Hugging Face in order to send requests to LLMs. Though, the speed is very slow by default. It may take a long time to allocate free compute resources to your instance, resulting in longer response times. You can switch to faster inference by or by .

langchain4j documentation
run a model locally
add entry using refrence text
OpenAI website
Mistral AI website
dashboard -> API keys
Login
create account
create access token
here
this
their website
upgrading your user account
running a space on GPU