Skip to main content
Get up and running with Lilac’s inference API in four steps.
1

Create an account

Sign up at console.getlilac.com with your email or Google account. Create an organization to manage your team’s API keys and billing.
2

Add credits

Lilac uses prepaid credits. Navigate to Billing in the dashboard, click Add Credits, and complete the Stripe checkout to load your account. You need a positive credit balance before you can make API requests.
You can add as little as $5.00. See Pricing for per-token rates.
3

Generate an API key

Go to API Keys in the dashboard and create a new key. Copy it — you won’t be able to see it again.
Keep your API key secret. Do not commit it to version control or share it publicly.
4

Make your first request

Point any OpenAI-compatible SDK at api.getlilac.com and use your Lilac API key:
from openai import OpenAI

client = OpenAI(
    base_url="https://api.getlilac.com/v1",
    api_key="your-lilac-api-key",
)

response = client.chat.completions.create(
    model="moonshotai/kimi-k2.5",
    messages=[
        {"role": "user", "content": "Hello!"}
    ],
)

print(response.choices[0].message.content)
That’s it. Your requests are now routing to idle enterprise GPUs at a fraction of the cost of dedicated providers.

Next steps

Supported Models

See available models and their pricing.

Pricing & Credits

Understand per-token pricing and manage your credits.

OpenAI Compatibility

Learn what’s supported from the OpenAI API spec.