Skip to main content

Step 1: Account Setup

1.1 Register

Visit Nebula Lab to register:
  • Sign up with email
  • Verify your email address
  • Log in to the console

1.2 Add Credits

Top up in the console:
  1. Click “Recharge” menu
  2. Select amount
  3. Complete payment (Alipay, WeChat supported)
New users get bonus credits on first top-up

Step 2: Create API Key

2.1 Generate Key

  1. Click “Tokens” in the navigation
  2. Copy the default token to use directly
  3. Or click “Add” to create a new token
Save your API key safely - it will only be shown once

Step 3: Start Calling

3.1 Connection Info

ConfigValue
API URL (Base URL)https://llm.ai-nebula.com/v1
API KeyYour created key
Request FormatFully OpenAI API compatible

3.2 Test Call

Quick test with curl:
curl https://llm.ai-nebula.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

3.3 Code Examples

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.ai-nebula.com/v1"
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

Next Steps

Congratulations! You’ve successfully set up Nebula Lab. Next you can:

FAQ

Just change the model parameter in your request:
{
  "model": "gpt-4o",
  "model": "claude-sonnet-4-20250514",
  "model": "gemini-2.5-pro"
}
Nebula Lab is OpenAI API compatible, supporting all OpenAI SDK languages:
  • Python
  • JavaScript/TypeScript
  • Java
  • C#/.NET
  • Go
  • Ruby
  • PHP
Log in to the console to view:
  • Account balance
  • Usage history
  • Consumption statistics
  1. Check API documentation
  2. Review common errors
  3. Contact support: mla@nebula-data.com
Save your API key safely and regularly check usage logs in the console to optimize costs. Happy coding~