# API Reference

This guide will help you get set up with the Nebula Block APIs.

## Getting Your API Key

API keys are automatically generated for each user upon account creation. You can view, renew, or revoke your API key in the Nebula Block user dashboard:

* **View/Renew API Key:** Log in to your [user dashboard](https://console.nebulablock.com/home) to view or renew your API key. If you renew your key, the old one will be invalidated.
* **Security Note:** Keep your API key secure. If you suspect it has been compromised, renew it immediately.

## Adding an SSH Key

To access GPU instances securely, you need to add your SSH public key:

* **Add SSH Key:** Log in to your [user dashboard](https://console.nebulablock.com/home) and navigate to the SSH Keys section to add or manage your SSH public keys.
* **API Management:** You can also use the [Create SSH Key](/overview/platform_api/create_ssh_key.md) endpoint to register your SSH public key with your account, or [List SSH Keys](/overview/platform_api/create_ssh_key/list_ssh_keys.md) and [Delete SSH Key](/overview/platform_api/create_ssh_key/delete_ssh_key.md) for management.

## API Types

Nebula Block provides two main APIs:

### Platform API

* For managing GPU instances, object storage, billing, and account resources.
* **BASE URL:** `https://api.nebulablock.com`
* **BASE PATH:** `/api/v1`
* **API\_URL:** `https://api.nebulablock.com/api/v1`

### Inference API (OpenAI Compatible)

* For running inference (text, vision, image, embeddings) using serverless endpoints.
* **BASE URL:** `https://inference.nebulablock.com/v1`
* **OpenAI compatible**: Use OpenAI SDKs and tools.

> **Note:** This section provides detailed reference for all API endpoints, including authentication, usage, and request/response formats.

## See Also

* [Glossary](/glossary.md)
* [Overview](https://github.com/Nebula-Block-Data/docs/blob/main/Overview.md)


---

# 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.nebulablock.com/overview.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.
