One Key. Every AI.
One API. Multiple AI providers.
Lykia is an AI gateway that puts models from many providers behind a single OpenAI-compatible API. Your app sends requests with one key; Lykia passes each one to a suitable provider, tries the next one if a provider fails, works out the cost and records it in your project's log. You pay from prepaid USD credits, or add your own provider key to a project.
Creating an account is free. To send requests, add credits or your own key for a provider.
curl https://api.getlykia.com/v1/chat/completions \
-H "Authorization: Bearer $LYKIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-3.5-turbo-0613",
"messages": [
{ "role": "user", "content": "Summarize this ticket in one sentence." }
]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.getlykia.com/v1",
api_key=os.environ["LYKIA_API_KEY"],
)
completion = client.chat.completions.create(
model="openai/gpt-3.5-turbo-0613",
messages=[{"role": "user", "content": "Summarize this ticket in one sentence."}],
)
print(completion.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.getlykia.com/v1",
apiKey: process.env.LYKIA_API_KEY,
});
const completion = await client.chat.completions.create({
model: "openai/gpt-3.5-turbo-0613",
messages: [{ role: "user", content: "Summarize this ticket in one sentence." }],
});
console.log(completion.choices[0].message.content);Switching models means changing this one string.
Some of the 7 model authors in the catalog, with model counts:
- openai62
- google29
- mistralai21
- anthropic16
- deepseek14
- moonshotai8
- x-ai6
One API for every model
Every model in the catalog has an author/model id. You change the model field in your request; the endpoint, the key and the response shape stay the same.
The catalog currently lists 156 models from 7 authors.
Recently added to the catalog
Claude Fable 5Only with your own provider key
anthropic/claude-fable-5Text, Image, File → Text
- Context
- 1M
- Input per 1M tokens
- $10.00
- Output per 1M tokens
- $50.00
Claude Fable 5.1Only with your own provider key
anthropic/claude-fable-5.1Text, Image, File → Text
- Context
- 1M
- Input per 1M tokens
- $10.00
- Output per 1M tokens
- $50.00
Claude Fable 5.2Only with your own provider key
anthropic/claude-fable-5.2Text, Image, File → Text
- Context
- 1M
- Input per 1M tokens
- $8.00
- Output per 1M tokens
- $40.00
Claude Haiku 4.5Only with your own provider key
anthropic/claude-haiku-4.5Text, Image, File → Text
- Context
- 200K
- Input per 1M tokens
- $1.00
- Output per 1M tokens
- $5.00
Claude Haiku 5.5Only with your own provider key
anthropic/claude-haiku-5.5Text, Image, File → Text
- Context
- 1M
- Input per 1M tokens
- $0.10
- Output per 1M tokens
- $0.50
Claude Opus 4.1Only with your own provider key
anthropic/claude-opus-4.1Image, Text, File → Text
- Context
- 200K
- Input per 1M tokens
- $15.00
- Output per 1M tokens
- $75.00
Claude Opus 4.5Only with your own provider key
anthropic/claude-opus-4.5File, Image, Text → Text
- Context
- 200K
- Input per 1M tokens
- $5.00
- Output per 1M tokens
- $25.00
Claude Opus 4.6Only with your own provider key
anthropic/claude-opus-4.6Text, Image, File → Text
- Context
- 1M
- Input per 1M tokens
- $5.00
- Output per 1M tokens
- $25.00
Images, video and voice with the same key
The same API key, project, budget and request log also cover media. Generate and edit images, run video jobs, turn text into speech and audio into text, each with its cost on the response.
Image
POST /images/generationsGenerate images or edit them with reference images. You get a signed link to the file, or the bytes inline.
57 modelsVideo
POST /videosStart a job from a prompt, a first frame or first and last frames; check its progress and download the result.
33 modelsSpeech
POST /audio/speechTurn text into audio with ready-made voices or your project's own voice clones, made with the speaker's consent.
8 modelsTranscription
POST /audio/transcriptionsUpload audio and get text back, with timestamps or subtitles where the model supports them.
7 models
Lykia connects to the providers directly, with no intermediary: OpenAI, Google, xAI, ByteDance, Black Forest Labs, Recraft, Kling, Alibaba (Wan), MiniMax, ElevenLabs and fal.ai.
Paying with Lykia credits depends on the provider being enabled on Lykia. With your own provider key (BYOK), every model from a supported provider works, including providers not yet offered on credits.
If a provider fails, the next one gets the request
For every request Lykia lines up candidate endpoints in two tiers: your project's own key for that provider first, then Lykia's direct connection to the provider. Within each tier, the providers serving the model are tried from the cheapest.
- Connection errors, timeouts, rate limits, server errors, rejected provider credentials and missing models move the request to the next candidate. Errors caused by the request itself are not retried.
- List backup models in the
modelsarray; if the first can't answer, the others are tried in order. - Use the
providerfield to set the provider order, leave providers out or keep a request on one provider. - Attempts that fail or fall back are not billed; you pay only for the run that answers.
Pay with credits, or bring your own keys
Both work side by side in the same project. When you have your own key for a provider, it is used first.
Lykia credits
You add USD credits to your company account. Each request's maximum cost is set aside before it runs, so usage can't overdraw the balance, and its actual cost comes off when it finishes. Inference is charged at the model's list price in the catalog; Lykia's fee is taken only when you buy credits.
- Auto top-up from a saved card below a threshold you set
- An emailed receipt for every payment
- Everything in USD
Your own provider key
Add a key you hold with a provider to a project, and that provider bills you for its inference directly. Usage above the monthly allowance carries a fee at your plan's rate, taken from credits.
- Stored encrypted and never returned by the API
- Checked with the provider when you save it
- Optionally, only your key is used for that provider
Every product gets its own project
Under your company account you open projects: a SaaS product, an environment, a client engagement. Each project has its own API keys, provider keys, budget and logs.
- A spending limit per key (lifetime, or resetting daily, weekly or monthly) and an optional expiry date.
- A project budget per day, week, month or in total. Spending can't go past it: a request it can't cover stops with a 402.
- Allowed models and excluded providers are project settings, applied without touching your code.
- Name your model choices once as presets, like
@textor@embedding, with fallbacks and defaults. Every product calls the name; a project can override it, and switching models is a settings change, not a deploy. - Team roles: owner, manager, project manager, accountant and viewer. Project managers only see the projects they're assigned to.
Requests are logged. Their content isn't, by default.
Each request that reaches a provider is recorded with its project, key, model, provider, token counts, cost and duration, plus the time to the first chunk for streams, and usage charts are drawn from those records. Prompt and response text is kept only if you switch it on in a project's settings.
- When a request falls back, the log shows which providers were tried and why each one failed.
- Tag requests with your end user and your own key-value metadata, then break spending down per product, customer, feature or preset. Tags stay with Lykia and are never sent to a provider.
- Logs are deleted automatically when the retention period ends.
- Owners, managers and assigned project managers can open request details; accountants and viewers see usage and cost.
Start from the OpenAI code you already have
Lykia speaks the OpenAI Chat Completions format, so streaming, tool calling and structured outputs work the same way wherever the model supports them. In the SDK you change the base URL and the key, and name the model by its author/model id.
- Responses keep the OpenAI shape and add the provider that served the request and a
usage.costfield in USD. - Errors share one shape: a code, a message and optional details.
client = OpenAI(
- api_key=os.environ["OPENAI_API_KEY"],
+ base_url="https://api.getlykia.com/v1",
+ api_key=os.environ["LYKIA_API_KEY"],
)
Your first request needs one key.
Create an account, then your first project and key. Add credits or your own provider key, and send your first request.