base_url change, and hands you per-response carbon, water, and energy telemetry alongside every completion.
Quickstart
Make your first API call in under five minutes using the OpenAI SDK.
API Reference
Explore every endpoint, parameter, and response shape in detail.
Routing
Learn how flavors like
:speed, :eco, and :price shape model selection.Models
Browse the full catalog of 60+ open-weight models available on Meliai.
What makes Meliai different
Most inference APIs treat sovereignty, sustainability, and compatibility as trade-offs. Meliai treats them as defaults.European-only infrastructure
Every request is routed exclusively to data centres inside the European Union. Meliai is GDPR-compliant by design: your prompts and completions never leave EU jurisdiction, and your data is never used for model training.
Per-response environmental impact
Every API response includes an
environment_impact block reporting exact energy consumption (kWh), carbon emissions (g CO₂), water usage (litres), renewable energy percentage, and the PUE of the serving facility — so you can track and report your AI footprint at the request level.Drop-in OpenAI and Anthropic compatibility
Meliai speaks OpenAI’s
/v1/chat/completions and /v1/responses shapes, as well as Anthropic’s /v1/messages shape. Swap base_url and your API key — the rest of your code stays exactly as it is, including streaming, tool calling, vision, and structured output.Migrate in three lines
If you’re already using the OpenAI Python SDK, pointing it at Meliai takes three lines:Where to go next
Concepts
Understand routing flavors, model selection, and auto-failover.
Guides
Step-by-step walkthroughs for streaming, embeddings, batching, and more.
Integrations
Connect Meliai to LangChain, LlamaIndex, Vercel AI SDK, and other tools.
API Reference
Full reference for every endpoint, request field, and response field.