Skip to main content

Step 1: Account Setup

1.1 Register

Visit Nebula Api to register:
  • Sign up with your mobile number and verify
  • Log in to the console

1.2 Add Credits

Top up in the console:
  1. Click “Personal Center”
  2. Click “Billing Recharge” to pay (Alipay, WeChat supported)
New users receive a $1 bonus upon registration

Step 2: Create API Key

2.1 Generate Key

  1. Click “Model Center” in the navigation
  2. Click “API Keys”
  3. Click “Create New” to generate a key

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-5.2",
    "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-5.2",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

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

Next Steps

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

FAQ

Just change the model parameter in your request:
{
  "model": "gpt-5.2",
  "model": "claude-sonnet-4-5-20250929",
  "model": "gemini-2.5-pro"
}
Nebula Api 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~