# Lykia docs > Lykia is an AI gateway: one OpenAI-compatible API and one API key for models from many providers. This list links to the Markdown version of every documentation page. ## Getting started - [Lykia documentation](https://www.getlykia.com/en/docs.md): Everything you need to call models from many providers through one OpenAI-compatible API and a single API key. - [Quickstart](https://www.getlykia.com/en/docs/quickstart.md): Create an API key, send your first request with cURL, Python, TypeScript or Go, point the OpenAI SDK at Lykia and stream the response. - [How Lykia works](https://www.getlykia.com/en/docs/how-it-works.md): How companies, projects, API keys, credits and BYOK fit together on every request, what happens to a request inside Lykia, and how provider fallback works. - [Models](https://www.getlykia.com/en/docs/models.md): How model ids are written (author/model), listing and filtering the catalog with GET /models, the units prices are given in, and free models. ## Guides - [Authentication and API keys](https://www.getlykia.com/en/docs/guides/authentication.md): The API key format, how to send a key, spending limits and reset windows, expiry, disabling and archiving keys, and storing them safely. - [Projects](https://www.getlykia.com/en/docs/guides/projects.md): What projects are for, the Default project, project budgets and budget alerts, routing settings (default model, allowed models, ignored providers, BYOK only), prompt logging and archiving a project. - [Credits and billing](https://www.getlykia.com/en/docs/guides/credits-and-billing.md): Prepaid USD credits, buying them through Efespay with the platform fee on top, receipts, automatic top-up, promo codes, low-balance alerts, refunds and payment disputes, plans, how the cost of a request is calculated and reserved, and what is never billed. - [Bring your own key (BYOK)](https://www.getlykia.com/en/docs/guides/byok.md): Add your own provider key to a project so requests go out with it and the provider bills you directly; how the key is stored, validated, ordered and billed. - [Provider routing](https://www.getlykia.com/en/docs/guides/provider-routing.md): Use the provider object to choose which providers may serve a request and in what order, see how Lykia orders candidates, and how it all combines with your project's routing settings. - [Model fallbacks](https://www.getlykia.com/en/docs/guides/model-fallbacks.md): Use the models array so that a request moves on to the next model automatically when the first one cannot answer. - [Model presets](https://www.getlykia.com/en/docs/guides/model-presets.md): Name a model choice once, such as @text or @embedding, and call it from every product. Change the model, its fallbacks and defaults in the dashboard without touching code. - [Tags and usage breakdown](https://www.getlykia.com/en/docs/guides/tags-and-usage.md): Tag requests with your end user and your own key-value metadata, then break spending down per customer, feature or preset in the dashboard and through the API. - [Streaming](https://www.getlykia.com/en/docs/guides/streaming.md): Set stream to true to receive the response as Server-Sent Events while it is generated, and learn the chunk format, where usage arrives, how errors show up mid-stream and how to cancel. - [Tool calling](https://www.getlykia.com/en/docs/guides/tool-calling.md): Describe your own functions to the model, run the calls it asks for and send the results back; the OpenAI tools format works on Lykia as it is. - [Structured outputs](https://www.getlykia.com/en/docs/guides/structured-outputs.md): Use response_format to make the model answer with JSON that matches your schema, or with any valid JSON object, so your code can use the result directly. - [Reasoning and prompt caching](https://www.getlykia.com/en/docs/guides/reasoning-and-caching.md): Control how much a model thinks with one reasoning field across providers, keep its thinking intact in tool loops, and cut the cost of repeated prompts with prompt caching. - [File inputs](https://www.getlykia.com/en/docs/guides/file-inputs.md): Send PDFs and images inside a chat request as file parts. Which models read them, the size and count limits, and the errors to expect. - [Image generation](https://www.getlykia.com/en/docs/guides/image-generation.md): Generate and edit images with one request, choose size, aspect ratio and quality per model, get a signed link or the bytes, and read what each image cost. - [Video generation](https://www.getlykia.com/en/docs/guides/video-generation.md): Start a video job, follow it until it finishes, download the file, cancel it, and understand what a video costs, including failed and cancelled jobs. - [Speech and voices](https://www.getlykia.com/en/docs/guides/speech-and-voices.md): Turn text into speech in the format you need, list a model's voices, and clone a voice for your project with the speaker's consent. - [Transcription](https://www.getlykia.com/en/docs/guides/transcription.md): Turn audio files into text with timestamps or subtitles, send large files efficiently, and read the cost of each transcription. - [Compatibility](https://www.getlykia.com/en/docs/guides/compatibility.md): Which chat features work with which provider family behind Lykia, how each is translated, what is ignored, and how to use Lykia from the Vercel AI SDK. - [Limits](https://www.getlykia.com/en/docs/guides/limits.md): Key spending limits, project budgets and budget alerts, the company balance and low-balance alerts, the daily limit on free models, rate limits and concurrent requests (429) and the request body size limit; what happens when you hit each one and how to respond. - [Errors](https://www.getlykia.com/en/docs/guides/errors.md): Lykia's error body, what each status code it returns means, and which errors to retry versus which mean the request needs fixing. - [Privacy and logging](https://www.getlykia.com/en/docs/guides/privacy-and-logging.md): What Lykia stores for each request by default, why prompt and response text is only kept when a project opts in and how much of it is kept, how long records are kept, and how to pass app and user details. - [MCP: connect Lykia to your AI client](https://www.getlykia.com/en/docs/guides/mcp.md): Add Lykia to Claude, Claude Code, Cursor, VS Code or any MCP client as a remote connector or through the npm bridge, sign in in the browser, pick a project, and control spending and access. - [JavaScript / TypeScript SDK](https://www.getlykia.com/en/docs/guides/javascript-sdk.md): The @lykia/sdk client for Node.js, browsers and edge runtimes: setup, chat and streaming, errors, request tags, the Vercel AI SDK helper, a single-file build and a fake server for tests. - [Migrating from OpenAI](https://www.getlykia.com/en/docs/guides/migrate-from-openai.md): What to change when moving code that calls the OpenAI API over to Lykia; usually the base URL, the API key and the model id are enough. - [Migrating from OpenRouter](https://www.getlykia.com/en/docs/guides/migrate-from-openrouter.md): Moving code from OpenRouter to Lykia means changing the base URL and key, checking the model ids you use against Lykia's catalog, and checking the few responses that differ. ## API reference - [API reference](https://www.getlykia.com/en/docs/api-reference/overview.md): The base URL, authentication header, versioning, app attribution and response headers, and every endpoint of the Lykia API. - [Chat completions](https://www.getlykia.com/en/docs/api-reference/chat-completions.md): Generates a model response for a conversation. Accepts the OpenAI Chat Completions body plus Lykia's models and provider fields; set stream to receive the response as it is generated. - [Embeddings](https://www.getlykia.com/en/docs/api-reference/embeddings.md): Turns text into vectors for search, clustering and retrieval. OpenAI-compatible body and response, with the cost of the request in usage. - [Create images](https://www.getlykia.com/en/docs/api-reference/images-generations.md): Generate images from a prompt, or edit images you send with it. OpenAI Images compatible, with signed links or base64 output and the cost in usage. - [Create a video](https://www.getlykia.com/en/docs/api-reference/videos-create.md): Start a video generation job from a prompt, a first frame, a last frame or reference images. Returns the job right away. - [Get a video job](https://www.getlykia.com/en/docs/api-reference/videos-get.md): Read a video job's status, progress, cost and, once completed, a fresh one-hour link to the file. - [Download a video](https://www.getlykia.com/en/docs/api-reference/videos-content.md): Download a completed video, by redirect to a fresh signed link or as JSON with the link. - [Cancel a video job](https://www.getlykia.com/en/docs/api-reference/videos-cancel.md): Stop a video job that is waiting or running. A cancelled job is not charged. - [List video jobs](https://www.getlykia.com/en/docs/api-reference/videos-list.md): The project's video jobs, newest first, with cursor pagination and a status filter. - [Create speech](https://www.getlykia.com/en/docs/api-reference/audio-speech.md): Turn text into speech. OpenAI compatible, streamed audio, with the cost in a response header. - [List voices](https://www.getlykia.com/en/docs/api-reference/audio-voices-list.md): The voices of a speech model, ready-made ones and the voices your project has cloned. - [Clone a voice](https://www.getlykia.com/en/docs/api-reference/audio-voices-create.md): Create a cloned voice for your project from recordings of the speaker, with their consent. - [Delete a voice](https://www.getlykia.com/en/docs/api-reference/audio-voices-delete.md): Delete one of your project's cloned voices, at the provider and in Lykia. - [Create a transcription](https://www.getlykia.com/en/docs/api-reference/audio-transcriptions.md): Turn an audio file into text, timestamps or subtitles. OpenAI compatible multipart request, with the cost in usage and a header. - [Models](https://www.getlykia.com/en/docs/api-reference/models.md): The catalog of models your project can call through Lykia, with context length, supported parameters and per-token prices. - [Providers](https://www.getlykia.com/en/docs/api-reference/providers.md): The providers Lykia connects to directly, with the ids used in routing preferences and responses. - [API key](https://www.getlykia.com/en/docs/api-reference/key.md): Returns the label, spending limit, usage in the current window and remaining amount of the API key making the request. - [Credits](https://www.getlykia.com/en/docs/api-reference/credits.md): Returns your company's credit balance, its total usage to date, and the amounts reserved for requests in flight and available for new ones, in USD. - [Generation](https://www.getlykia.com/en/docs/api-reference/generation.md): Returns Lykia's record of a single request: model, provider, token counts, cost, timing and the providers that were tried. - [Generations](https://www.getlykia.com/en/docs/api-reference/generations.md): Lists the request records of the calling key's project, newest first, with cursor paging and filters for user, preset, model, metadata and time range. - [MCP tools reference](https://www.getlykia.com/en/docs/api-reference/mcp-tools.md): Every tool and ready-made workflow of the Lykia MCP server, with its inputs, its output, the scope it needs and whether it spends credits. ## Other language - [llms.txt (tr)](https://www.getlykia.com/docs/llms.txt)