# How to Get an API Key on NGC

NVIDIA GPU Cloud (NGC) is a cloud-based platform developed by NVIDIA that provides access to GPU-optimized software for various Artificial Intelligence (AI) learning tasks. To make it easier for you to enjoy the services available on NGC, you need to have an API Key. This guide explains how to get an API Key on NGC.

### Create API Key

In the first step, click [this link ](https://ngc.nvidia.com/signin)to go to the NGC site. Press Welcome Guest on the right and select Sign In/Sign Up.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcV1KHJ6LZfYLHFYd6LMqnR3ryk6Cw8wYPwM1HuJVCahVudw5fb7hGilWmAgq06KdFVh9xa7A5bRsO_vtcD1-YRUD65bTjlU0cAzx4JQmqT36gEUXM-PQXXVZ6fTC9HKGF8nIJD?key=uZw7Ciu7pZmmC8Wc1kuhRFnS" alt=""><figcaption><p>Sign In</p></figcaption></figure>

To log in to NGC, you have an NVIDIA account and password that you have, if you don't have an account, you can create an account first and follow the steps until finished.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdnAPcXfsxsHt6N65SDlPD6_oKpjfbMjr3-J1rB69MxpmC6DIGf04J5GThQknaYDdErftmPwdiPoHhpz-HSBaWS1PP8cSv2z7p-juVCfNRl-L4Z2MjOJbPjQAeEMDXaOqgaMpYSvw?key=uZw7Ciu7pZmmC8Wc1kuhRFnS" alt=""><figcaption><p> Sign In NGC</p></figcaption></figure>

Tap Your Profile and select Setup.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcev9dSrYjTzIUIclVNtEpdlJn7d8O7U3T6ZfA-p72SCRkSlPDuQQXX515E_tlKu1WQNT21TfSdCY06u4wxmjiBYa5Ed6W_Gw5LRyjJLHKexV4IIk1pR5QW9mmsOZcff-vZwi1E5A?key=uZw7Ciu7pZmmC8Wc1kuhRFnS" alt=""><figcaption><p>Setup</p></figcaption></figure>

The Setup page appears, click the Generate API Key button.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdoLROGJDyGHzhn13ONzMkQ7rjeNSRt3bAxmjNt0SSjEgWX1TVxO__rGiqkoqEmD0djQcPkKber3M4-QxrHLZeR1dXuMCzXOt-BnqdY1sLnQ6eqf5xfurm2vMeZGTlBSk4b8IvI1A?key=uZw7Ciu7pZmmC8Wc1kuhRFnS" alt=""><figcaption><p>Setup </p></figcaption></figure>

The API Key page appears, click the Generate API Key button.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfagvSwZEiPr4jnc2uPBO_0HPdJ7UdnS8JUBwABBOoIqqxM2VwWjPhcLD_gAlhOKnG9ta4pQkXunSk0DbRXPiUaEf95wx814NxAuE6LJog3FJeoWoPNs0aLwWtHazjIdSWsZYl8EA?key=uZw7Ciu7pZmmC8Wc1kuhRFnS" alt=""><figcaption><p>Setup</p></figcaption></figure>

Click Confirm button.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdv8fXEWa85QMo9SIFkXp_BoFVXUXUbymgbFjFfuzkcb5WL9Qk7DgqKNwSg-GDvimzp8qxMmHPfr2BDgYivH2D1_47pUbiJPFZpcpLlkbyet7IvraUo_lTpcZWgH0iLl_cysYpBPA?key=uZw7Ciu7pZmmC8Wc1kuhRFnS" alt=""><figcaption><p>Create token</p></figcaption></figure>

After the API Key is successfully generated, copy the API Key token.

{% hint style="warning" %}
Make sure you don't share or store it in a place where others can see or copy it.
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdCxSE-Q5os7HGqCBgkKSHeZwR4RHP76XHfVwjyXil21q2Bzwu_YiG025ctsqBeoUiPVrwaRocTbmEhSzDmugL9AWbKOvV19MkmKBcC14f7wFUoNMkBfuQc1NSpYfEZETbbTuFRLA?key=uZw7Ciu7pZmmC8Wc1kuhRFnS" alt=""><figcaption><p>Token</p></figcaption></figure>

### Test API Key with Docker&#x20;

Use the Docker to test API Key tokens that you have obtained. Run the following command to log in to the Docker.

```bash
docker login nvcr.io
```

Enter Username with $oauthtoken and Password with the token you previously copied.&#x20;

<figure><img src="/files/fik1qMOUQfWPRUFQNgxh" alt=""><figcaption></figcaption></figure>

If the login succeeds, you can try pulling one of the Docker images by running this syntax.

```bash
docker pull nvcr.io/nvidia/tritonserver:24.12-trtllm-python-py3
```

<figure><img src="/files/qC5bnDdVkcvbrvPUCm5K" alt=""><figcaption><p>Pull Image</p></figcaption></figure>

Wait for all Complete and if you have successfully pulled the image, the API Key can be used.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/reference/how-to-get-an-api-key-on-ngc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
