---
title: Connection
url: https://docs.vultr.com/products/compute/serverless-inference/management/connection
description: Establish connectivity between your Vultr resources and external networks or services.
publish_date: 2024-09-23T20:20:47.691715Z
last_updated: 2026-05-26T19:10:33.549622Z
---

# How to Retrieve the API Key for Vultr Serverless Inference

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 Console, API, or CLI.

=== "Vultr Console"

    1. Navigate to **Products**, click **Serverless**, and then click **Inference**.

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

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

=== "Vultr API"

    1. Send a `GET` request to the [**List Serverless Inference** endpoint](https://www.vultr.com/api/#tag/serverless-inference/operation/list-inference) and note the target inference subscription's ID.

        ```console
        $ curl "https://api.vultr.com/v2/inference" \
            -X GET \
            -H "Authorization: Bearer ${VULTR_API_KEY}"
        ```

    1. Send a `GET` request to the [**Serverless Inference** endpoint](https://www.vultr.com/api/#tag/serverless-inference/operation/get-inference) 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}"
        ```

=== "Vultr CLI"

    1. List all the inference subscriptions available and note the target inference subscription's ID.

        ```console
        $ vultr-cli inference list
        ```

    1. Get the API key from the target subscription.

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