Common Error
When you see an error like this:What is Base URL?
Base URL is the target server address for API requests. Different providers use different Base URLs.Base URL and API Key Must Match
| Provider | Base URL | API Key Format | Match? |
|---|---|---|---|
| Nebula Lab | https://llm.ai-nebula.com | sk-xxxx… | ✅ Correct |
| OpenAI Official | https://api.openai.com | sk-xxxx… | ✅ Correct |
| ❌ Nebula Key | https://api.openai.com | sk-xxxx… | ❌ Wrong |
| ❌ OpenAI Key | https://llm.ai-nebula.com | sk-xxxx… | ❌ Wrong |
Key principle: Use the provider’s Base URL that matches your API Key
Correct Configuration
Method 1: Modify Base URL (Recommended)
- Python
- Node.js
- cURL
Method 2: Environment Variables
- Linux/macOS
- Windows PowerShell
- Windows CMD
Supported URL Formats
| Format | URL | Use Case |
|---|---|---|
| With /v1 (recommended) | https://llm.ai-nebula.com/v1 | Most libraries |
| With trailing slash | https://llm.ai-nebula.com/v1/ | Some frameworks |
| Full path | https://llm.ai-nebula.com/v1/chat/completions | cURL requests |
Troubleshooting
Changed Base URL but still getting errors
Changed Base URL but still getting errors
Possible causes:
- Multiple configurations: Check config files, env vars, code initialization
- Proxy or middleware: Some tools may redirect requests
- Cache issues: Restart program or clear cache
- Typos: Verify the URL spelling
How to verify Key is valid?
How to verify Key is valid?
Check in Nebula Lab console:
- Login to Nebula Lab
- Go to “Tokens” page
- Check if Key status is “Enabled”
- Confirm account balance is sufficient
How to configure third-party tools?
How to configure third-party tools?
Most tools have “Custom API” options:
- API URL / Base URL:
https://llm.ai-nebula.com/v1 - API Key: Copy from Nebula Lab console
- Model name: Refer to model list
Wrong vs Correct Examples
❌ Wrong Configuration
✅ Correct Configuration
Quick Test
Verify configuration with cURL:- API Key copied correctly (no extra spaces)
- Network connection is working
- Account balance is sufficient
