Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.71 KB

api_key.md

File metadata and controls

46 lines (32 loc) · 1.71 KB

Preview and Set Up an API Key

Optional

If you do not want to follow a custom workflow and wish to simply run the application, please skip this section and go to Run the Application

NIM APIs can be found on the NVIDIA API Catalog.

Follow this example to generate an API key from the API Catalog Preview for the optionally desired NIMs as they appear throughout this guide.

Get API Key

  1. Get your NVIDIA API key.
    1. Go to the NVIDIA API Catalog.
    2. Select any model.
    3. Click Get API Key.

Add API Key

The following instructions create a temporary environment variable to store your API key. Environment variables set with this method are only stored for a single session. Once a given CMD/PowerShell/Terminal window is closed, these values are no longer stored.

Windows CMD

  1. Open Command Prompt.

    1. Enter the following command:
    2. set NVIDIA_API_KEY="<YOUR_API_KEY>"
  2. Windows PowerShell

    1. Open PowerShell.
    2. Enter the following command:
    3. $env:NVIDIA_API_KEY="<YOUR_API_KEY>"

    Note - If the two commands above are not working, you can add API key to Windows System Environment Variables.

    Key: NVIDIA_API_KEY

    Value: <YOUR_API_KEY>

  3. Linux Terminal

    1. Open Terminal.
    2. Enter the following command:
      export NVIDIA_API_KEY="<YOUR_API_KEY>"  
      

← Back to Guide ___________________________________________________________________________ Next (Create your Own App) →