Lykia documentation
Everything you need to call models from many providers through one OpenAI-compatible API and a single API key.
MarkdownOn this page
Lykia is an AI gateway. Your application sends requests to one address with one API key. Lykia forwards each request to a provider that serves the model you asked for, returns the response, works out what it cost and records it. The API follows the OpenAI Chat Completions format, so if you already use the OpenAI SDK or any OpenAI-compatible library, switching is a matter of changing the base URL and the key.
Every request goes to this base URL:
https://api.getlykia.com/v1Start here
Core concepts
- Company: your Lykia account. Team members, the credit balance and payments live at company level.
- Project: one of your products or environments (for example
web-apporstaging). API keys, provider keys, budgets, routing settings and request logs belong to a project. - API key: starts with
lyk-v1-and is tied to a single project. It identifies, bills and limits every request. - Credits: a prepaid balance in USD, held by the company. Each request's cost is deducted from it at the model's list price.
- BYOK: add your own provider key (an OpenAI or Anthropic key, say) to a project, and requests to that provider's models go out with your key; the provider bills you directly.
Guides
For machines
Every page is also available as Markdown: add .md to its URL (for example /docs/quickstart.md). /docs/llms.txt lists every page with a one-line summary, which makes it a handy context file for AI assistants.