> 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

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\
   ![](/files/saNmKah1qCCkWdzNDKU5)
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="/files/6j8LCMC3mZUeoaePZeVW" 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!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.macrocosmos.ai/subnets/subnet-13-data-universe/readme/api-keys.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
