Prerequisites
Before you start, make sure you have:- A Lilac account with credits loaded — sign up here
- A Lilac API key — create one in the dashboard
- A local coding tool that supports custom OpenAI-compatible API endpoints
Don’t have an API key yet? See the API keys page for instructions on creating and managing keys.
What you need to configure
Every tool that supports a custom API will ask you for three things. Here are the exact values to use:| Setting | Value |
|---|---|
| API endpoint / Base URL | https://api.getlilac.com/v1 |
| API key | Your Lilac API key (starts from the dashboard) |
| Model name | moonshotai/kimi-k2.5 |
Step-by-step setup
Find your tool's API settings
Open your coding tool and look for settings related to AI provider, API configuration, custom model, or OpenAI-compatible endpoint. This is usually in the tool’s settings or preferences menu.
Enter your API key
Paste your Lilac API key into the API key field. This is the key you copied when you created it in the dashboard.
Set the model name
Enter the model name exactly as shown:Do not omit or change any part of this string. The full identifier including the
moonshotai/ prefix is required.Test the connection
Send a test message to confirm everything is working. If you get a response, you’re all set.If you get an error, double-check:
- The base URL is exactly
https://api.getlilac.com/v1(with/v1) - Your API key is correct and hasn’t been revoked
- The model name is exactly
moonshotai/kimi-k2.5 - Your account has a positive credit balance
Common issues
401 Unauthorized
401 Unauthorized
404 Not Found
404 Not Found
The base URL is likely wrong. Make sure it is
https://api.getlilac.com/v1 — including the /v1 path.Model not found
Model not found
The model name must be the full identifier:
moonshotai/kimi-k2.5. Check for typos, extra spaces, or missing parts of the name.Connection timeout or refused
Connection timeout or refused
Confirm your machine has internet access and that no firewall or proxy is blocking requests to
api.getlilac.com.Insufficient credits
Insufficient credits
Your account balance is zero. Add credits in the dashboard billing page before making requests.
Quick reference
If your tool uses a config file or environment variables, here’s what to set:Variable names differ by tool. The examples above use common conventions — check your tool’s documentation for the exact names.

