How to Retrieve the API Key for Vultr Serverless Inference

Updated on September 25, 2024

To utilize the Vultr Serverless Inference service, users must obtain an API key. This key is essential for secure access to the inference capabilities, enabling efficient integration and management of AI workloads. Having the API key ensures that your interactions with the Vultr Serverless Inference service are both authenticated and authorized.

Follow this guide to retrieve the API key for the Serverless Inference service on your Vultr account using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products, click Serverless, and then click Inference.

    Serverless Inference option in products menu

  2. Click your target inference service to open its management page.

    Selection of a target serverless inference service

  3. In the overview page, copy the API Key, API key is necessary to send any request to the inference endpoints.

    View the service API key in the overview page

  1. Send a GET request to the List Inference endpoint and note the target inference service's ID.

    console
    $ curl "https://api.vultr.com/v2/inference" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a GET request to the Inference endpoint and note the target inference service's API key.

    console
    $ curl "https://api.vultr.com/v2/inference/<inference-id>" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  1. List all the inference services available and note the target inference service's ID.

    console
    $ vultr-cli inference list
    
  2. Get the API key from the target service.

    console
    $ vultr-cli inference get <inference-id>