Skip to main content
Lilac’s API is fully OpenAI-compatible, so you can use it with any local coding tool that supports a custom API endpoint — like OpenClaw, Continue, Cursor, or any other OpenAI-compatible client. This guide walks you through the setup step by step.

Prerequisites

Before you start, make sure you have:
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:
SettingValue
API endpoint / Base URLhttps://api.getlilac.com/v1
API keyYour Lilac API key (starts from the dashboard)
Model namemoonshotai/kimi-k2.5
You must use the exact model name moonshotai/kimi-k2.5. Shorthand names like kimi or k2.5 will not work. See the full list of available models on the models page.

Step-by-step setup

1

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.
2

Set the API endpoint

Enter the following as the base URL or API endpoint:
https://api.getlilac.com/v1
Make sure you include /v1 at the end. Omitting it will cause requests to fail.
3

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.
Store your API key as an environment variable (e.g., LILAC_API_KEY) rather than pasting it directly into config files that might get committed to version control.
4

Set the model name

Enter the model name exactly as shown:
moonshotai/kimi-k2.5
Do not omit or change any part of this string. The full identifier including the moonshotai/ prefix is required.
5

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:
  1. The base URL is exactly https://api.getlilac.com/v1 (with /v1)
  2. Your API key is correct and hasn’t been revoked
  3. The model name is exactly moonshotai/kimi-k2.5
  4. Your account has a positive credit balance

Common issues

Your API key is missing, incorrect, or has been revoked. Generate a new key from the dashboard and try again.
The base URL is likely wrong. Make sure it is https://api.getlilac.com/v1 — including the /v1 path.
The model name must be the full identifier: moonshotai/kimi-k2.5. Check for typos, extra spaces, or missing parts of the name.
Confirm your machine has internet access and that no firewall or proxy is blocking requests to api.getlilac.com.
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:
# Environment variables
export OPENAI_API_BASE=https://api.getlilac.com/v1
export OPENAI_API_KEY=your-lilac-api-key
{
  "apiBase": "https://api.getlilac.com/v1",
  "apiKey": "your-lilac-api-key",
  "model": "moonshotai/kimi-k2.5"
}
Variable names differ by tool. The examples above use common conventions — check your tool’s documentation for the exact names.