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.
Navigate to Products, click Serverless, and then click Inference.
Click your target inference service to open its management page.
In the overview page, copy the API Key, API key is necessary to send any request to the inference endpoints.
Send a GET
request to the List Inference endpoint and note the target inference service's ID.
$ curl "https://api.vultr.com/v2/inference" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the Inference endpoint and note the target inference service's API key.
$ curl "https://api.vultr.com/v2/inference/<inference-id>" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all the inference services available and note the target inference service's ID.
$ vultr-cli inference list
Get the API key from the target service.
$ vultr-cli inference get <inference-id>