How to Retrieve the API Key for Vultr Serverless Inference

Updated on September 23, 2024

To utilize the Vultr Serverless Inference subscription, 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 subscription are both authenticated and authorized.

Follow this guide to retrieve the API key for Serverless Inference subscription 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.

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

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

  1. Send a GET request to the List Serverless Inference endpoint and note the target inference subscription'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 Serverless Inference endpoint and note the target inference subscription'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 subscriptions available and note the target inference subscription's ID.

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

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

Comments

No comments yet.