> For the complete documentation index, see [llms.txt](https://docs.macrocosmos.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.macrocosmos.ai/subnets/subnet-13-data-universe/readme/api-keys.md).

# API Keys

How to Create a Macrocosmos API Key

To interact with Macrocosmos subnets programmatically, you'll need a personal API key.

### Step 1: Organise your credits

1. Head to [app.macrocosmos.ai](https://app.macrocosmos.ai) and login.
2. Click to Macrocosmos logo icon at the top left corner of the screen\
   ![](https://1538249205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJDlWdmSC3GnzBPSkAiBM%2Fuploads%2FcXVo6i2WDG5K3seYmBSB%2FScreenshot%202025-09-16%20at%2017.24.24.png?alt=media\&token=b8266131-e12b-41ca-a45c-8ba82370ba14)
3. In the dropdown menu, select **`Payments and credit`.**
4. Provide your credit card details in order to access the account management and **Constellation API Key Dashboard.**

### Step 2: Generate Your Personal API Key

1. From the home menu and select **`Account Settings`.**

<figure><img src="https://1538249205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJDlWdmSC3GnzBPSkAiBM%2Fuploads%2F0b4ZwHmsDtXZg1hhlyfQ%2FScreenshot%202025-09-16%20at%2017.26.45.png?alt=media&amp;token=e2ddbb4b-5d92-4485-8495-91c11501418f" alt=""><figcaption></figcaption></figure>

2. Click to the API Keys tab and create a new key.
3. Copy the generated API key immediately and save it in a secure location , you **won’t be able to view it again**.

You can now use this key to interact with **all Macrocosmos services** from your preferred coding environment.

### You’re Ready!

With your API key and credits in place, you’re ready to build with Macrocosmos!
