How to authenticate to the API
The following document explains how to authenticate with NVIDIA Run:ai APIs.
NVIDIA Run:ai APIs are accessed using bearer tokens. A token can be obtained by creating an Application through the NVIDIA Run:ai user interface.
An application contains a client ID and a client secret. With the client credentials you can obtain a token and use it within subsequent API calls.
To create applications for your organization, see Applications.
To create your own user applications, see User Applications.
Request an API Token
Use the client credentials created to get a temporary token to access NVIDIA Run:ai as follows.
Example command to get an API token
Replace <runai_url>
below with:
For SaaS installations, use
<tenant-name>.run.ai
For self-hosted use the NVIDIA Run:ai user interface URL.
Response
The API response will look as follows:
To call NVIDIA Run:ai REST APIs, the application must pass the retrieved accessToken
as a Bearer token in the Authorization header of your HTTP request.
Last updated