# Meliai > Meliai documentation, API reference, and integration guides. - [Quickstart](https://docs.meliai.app/quickstart.md): Get started with Meliai - [Meliai – European Sovereign AI Inference API Platform](https://docs.meliai.app/introduction.md): Access 60+ open-weight models via OpenAI- and Anthropic-compatible APIs on sovereign EU infrastructure, with per-response carbon and energy tracking. - [Authenticate Requests to the Meliai API with API Keys](https://docs.meliai.app/concepts/authentication.md): Meliai uses API keys prefixed with sk-mel-. Authenticate via Authorization Bearer or x-api-key — both headers work on every endpoint. - [Migrate from OpenAI to Meliai – Two-Line Change Required](https://docs.meliai.app/get-started/from-openai.md): Migrate from OpenAI to Meliai by changing base_url and your API key. All existing OpenAI SDK code continues to work without further changes. - [Switch from Anthropic Claude SDK to Meliai Inference](https://docs.meliai.app/get-started/from-anthropic.md): Point the Anthropic SDK at Meliai by setting ANTHROPIC_BASE_URL and your API key. Claude model names are mapped to open-weight equivalents automatically. - [Available Models on Meliai — 60+ Open-Weight Models](https://docs.meliai.app/concepts/models.md): Browse Meliai's catalog of 60+ open-weight models — Llama, Mistral, DeepSeek, Qwen, FLUX, Whisper, and more, all on European infrastructure. - [How Meliai Routes Your Requests to EU Inference Providers](https://docs.meliai.app/concepts/routing.md): Meliai picks the best European provider for each request using configurable routing flavors: balanced, speed, price, eco, and batch. - [Meliai Pricing: Energy-Based and Credit-Based Billing](https://docs.meliai.app/concepts/pricing.md): Meliai bills per request: energy consumption (kWh) or credits, depending on the model. Every response includes a billing_cost field with exact charges. - [Stream Chat Responses in Real Time with Meliai API](https://docs.meliai.app/guides/streaming.md): Enable Meliai streaming to receive chat completion tokens as they are generated via server-sent events, fully compatible with the OpenAI SDK interface. - [Tool Calling and Function Calling with Meliai Models](https://docs.meliai.app/guides/tool-calling.md): Define functions for Meliai models to call, then handle tool_call messages to build agents and structured workflows with any OpenAI-compatible model. - [Structured Outputs and JSON Schema Mode with Meliai](https://docs.meliai.app/guides/structured-outputs.md): Use response_format to enforce valid JSON or a strict JSON schema in Meliai chat completions for data extraction, classification, and automated pipelines. - [Process Requests in Bulk with the Meliai Batch API](https://docs.meliai.app/guides/batch-processing.md): Use the Meliai Batch API to run thousands of inference requests asynchronously at lower cost. Upload a JSONL file, submit the batch, and poll for results. - [Analyze and Describe Images with Meliai Vision Models](https://docs.meliai.app/guides/vision.md): Send images alongside text prompts to Meliai vision-capable models using the image_url content part format, compatible with the OpenAI multimodal API. - [Track the Environmental Impact of Every AI Request](https://docs.meliai.app/guides/environmental-impact.md): Every Meliai response includes an environment_impact field with carbon grams, energy kWh, water liters, renewable percentage, and the datacenter PUE. - [EU Data Residency, Privacy, and GDPR Compliance on Meliai](https://docs.meliai.app/concepts/privacy.md): Every Meliai request stays within the EU — no US or APAC fallbacks. Your data is end-to-end encrypted, GDPR-compliant, and never used for model training. - [Meliai API Reference: Endpoints and Response Schemas](https://docs.meliai.app/api-reference/overview.md): All 19 Meliai API endpoints — OpenAI, Anthropic, Batch, and Files — plus routing flavors and the environment_impact and billing_cost response fields. - [Meliai API Authentication — Keys and Header Formats](https://docs.meliai.app/api-reference/authentication.md): Meliai accepts API keys as a Bearer token or x-api-key header. Both formats work on every endpoint. Keys are created in the Meliai dashboard. - [Meliai API Errors: Codes, Messages, and Retry Logic](https://docs.meliai.app/api-reference/errors.md): Meliai API errors include a stable code field for programmatic handling. Covers AUTH_1001, RATE_2001, INFERENCE_3103, and exponential backoff retry logic. - [POST /v1/chat/completions — OpenAI-Compatible Chat](https://docs.meliai.app/api-reference/chat-completions.md): Send chat requests with tools, streaming, and structured output via POST /v1/chat/completions. OpenAI-compatible, EU-routed, with impact and cost fields. - [POST /v1/messages — Anthropic-Compatible Chat API](https://docs.meliai.app/api-reference/messages.md): Use the Anthropic SDK with Meliai via POST /v1/messages. Point any Anthropic-compatible client at Meliai's base URL with your sk-mel- API key. - [POST /v1/embeddings — Generate Vector Embeddings](https://docs.meliai.app/api-reference/embeddings.md): POST /v1/embeddings converts text into vectors for semantic search, RAG, and similarity tasks. OpenAI-compatible and runs on European infrastructure. - [POST /v1/rerank — Reorder Documents by Relevance](https://docs.meliai.app/api-reference/rerank.md): POST /v1/rerank — rerank a list of documents by relevance to a query using a cross-encoder model. Returns documents sorted by relevance score. - [POST /v1/images/generations — Generate Images from Text](https://docs.meliai.app/api-reference/images.md): POST /v1/images/generations — generate images from text prompts using Meliai image generation models like FLUX, running on European infrastructure. - [POST /v1/audio/transcriptions — Speech-to-Text API](https://docs.meliai.app/api-reference/audio.md): POST /v1/audio/transcriptions — transcribe audio files to text using Whisper and Voxtral models on Meliai's European infrastructure. - [Meliai Batch API — Async Bulk Inference at Scale](https://docs.meliai.app/api-reference/batches.md): POST /v1/batches creates asynchronous batch inference jobs on Meliai. Upload a JSONL input file, submit the batch, poll status, and download results. - [Files API — Upload and Manage Files for Batch Jobs](https://docs.meliai.app/api-reference/files.md): POST /v1/files uploads files for Meliai's Batch API. List, retrieve, download content, and delete files — all stored exclusively on EU infrastructure. - [GET /v1/models — List and Retrieve Meliai Models](https://docs.meliai.app/api-reference/models.md): GET /v1/models returns the full catalog of models available on Meliai. Use query parameters to filter by capability and sort by price, speed, or recency. - [Integrate Meliai into Your Existing AI Tools Stack](https://docs.meliai.app/integrations/overview.md): Meliai works with any tool that speaks OpenAI or Anthropic. Connect LangChain, Vercel AI SDK, n8n, and more with a single configuration change. - [Use Meliai with LangChain for Sovereign AI Projects](https://docs.meliai.app/integrations/langchain.md): Connect LangChain to Meliai using the ChatOpenAI class with a custom base_url. All LangChain chains, agents, and memory features work without modification. - [Use Meliai with the Vercel AI SDK for Next.js Apps](https://docs.meliai.app/integrations/vercel-ai-sdk.md): Integrate Meliai into Next.js and other Vercel applications using the AI SDK's OpenAI provider with a custom baseURL pointing to the Meliai API. - [Automate Sovereign AI Workflows with Meliai in n8n](https://docs.meliai.app/integrations/n8n.md): Connect Meliai to n8n using the OpenAI Chat Model node. Set your API key and base URL once, then use any Meliai model in your n8n AI workflows.