Getting started

Quickstart

From sign-in to your first API call.

1. Sign in#

Open the dashboard and sign in with your wallet. Your account is created on the first sign-in.

2. Get ENERGY#

Free models need you to hold at least 5,000 ENERGY (wallet, vault and liquidity pool together). Paid models spend Energy from your vault. There are two ways to get it:

3. Deposit into your vault#

ENERGY in your wallet is not spendable by the API yet. Open Energy Vault and deposit what you want to use. See Energy Vault.

4. Create an API key#

Go to API keys and create a key. It starts with sd_live_ and is shown once, so store it somewhere safe. You can have up to 10 active keys.

5. Make your first request#

curl https://api.stardustllm.xyz/v1/chat/completions \
  -H "Authorization: Bearer $STARDUST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-flash-free",
    "messages": [{ "role": "user", "content": "Explain SSRF in two sentences." }]
  }'

The API is OpenAI-compatible, so any OpenAI SDK works: just change the base URL and the key.