EU Router

OpenAI-compatible API

Keep your OpenAI client and SDK. Change the base URL and run open models on EU GPUs.

On this page

Drop-in compatible with OpenAI

HostYourAI exposes an OpenAI-compatible endpoint (/v1/chat/completions). Your existing OpenAI SDK keeps working: point the base URL at our Router and use your HostYourAI API key. Streaming, system prompts and parameters behave the way you expect.

What changes in your code?

Only the base URL and the API key. The rest of your integration stays identical, whether you use Python, Node or another language. You migrate in minutes instead of weeks.

  • Same request and response format as OpenAI
  • Streaming over server-sent events
  • Open models such as Llama, Qwen, Mistral and DeepSeek
  • Optional RAG context injection when you link a knowledge base
Je app
OpenAI · Anthropic
EU Router
één base URL
Qwen3-8B
warm
Loes (NL)
soeverein
Llama-3.3
warm

EU-hosted and privacy-first

The models run on European GPUs you control. Your data never leaves the EU, a Data Processing Agreement (DPA) is available and the subprocessor list is public. Open weights also mean no training on your data.

Example in code

Here is what a request looks like with the OpenAI SDK. Only the base URL and the key change, and streaming behaves the way you expect:

from openai import OpenAI

client = OpenAI(
    base_url="https://hostyourai.com/api/v1",
    api_key="hyai-...",
)

resp = client.chat.completions.create(
    model="llama-3.3-70b",
    messages=[{"role": "user", "content": "Hello"}],
    stream=True,
)
for chunk in resp:
    print(chunk.choices[0].delta.content or "", end="")

Want a full step-by-step? Read the guide Migrate your OpenAI client to the EU Router.

What stays the same, what changes

PartWith OpenAIWith HostYourAI
Endpoint/v1/chat/completions/v1/chat/completions, identical
Base URLapi.openai.comhostyourai.com/api/v1
API keysk-...hyai-...
Model namegpt-4o, gpt-4o-minillama-3.3-70b, qwen3-8b and more
StreamingServer-sent eventsServer-sent events, identical
Data processingUnited StatesGPUs in the EU

Frameworks built on the OpenAI API, such as LangChain and LlamaIndex, work as well: you just hand them a different base URL and key.

Questions about the OpenAI-compatible API

Does this work with LangChain, LlamaIndex and other frameworks?

Yes. Anything that accepts an OpenAI-compatible base URL works directly. You configure the base URL and your hyai- key, nothing else.

Which model replaces gpt-4o?

For general tasks Llama 3.3 70B is the common pick; for speed and low cost a smaller model such as Qwen3 8B. Compare models in the catalog or test them side by side in the Playground.

Does streaming work?

Yes, over server-sent events, exactly like OpenAI. Your existing streaming code stays unchanged.

Can I ground answers in my own documents?

Yes. Link a knowledge base and the Router automatically injects relevant context into your requests. Read the guide Build RAG on EU GPUs.

What does a request cost?

You pay per token, per model class, from one prepaid credit balance. Rates are on the pricing page.

Is this GDPR-proof?

Processing happens on European GPUs, a Data Processing Agreement is available and there is no training on your data. For regulated sectors see healthcare, finance and government.

Everything you need for AI

From model hosting to a customer-facing API, it is built for developers and businesses who want their AI running on infrastructure they actually control, inside the EU.

100%
EU-hosted

Your data and your models stay on European GPUs. GDPR-friendly by design.

200+
Verified models, ready to serve

Llama, Qwen, DeepSeek, Mistral, FLUX and plenty more. Pick one and it is warm in minutes, with no DevOps on your end.

2 SDK
OpenAI & Anthropic compatible

Point your existing client at the Router and keep your tools. No rewrite, no lock-in.

From zero to a warm endpoint in minutes

No infra to manage. Pick a model, get an OpenAI-compatible URL, ship.

1

Pick a model

Choose from the Model Garden or paste any HuggingFace ID. Set the VRAM and pick an EU GPU.

2

Get your endpoint

We deploy vLLM, run readiness probes, and hand you a warm OpenAI- and Anthropic-compatible URL plus an API key.

3

Route and ship

Point your client at the Router. It auto-routes to a warm instance, idles GPUs when nobody is online, and logs every request.

Built for teams that can't send data away

If a US cloud is off the table, HostYourAI gives you the same developer experience on European infrastructure.

Public sector & government

Citizen data that legally has to stay in the EU, with full auditability.

Regulated enterprise

Finance, healthcare and legal teams under GDPR, DORA and the AI Act.

EU SaaS & scale-ups

Ship AI features your customers trust, without a US sub-processor.

Agencies & integrators

Deliver private AI for clients on infrastructure you can stand behind.

Private by Default

HostYourAI keeps your models, prompts and data on European GPUs. It is built for teams that care about compliance, reliability and real control.

EU-hostedGDPR-friendlyOpenAI-compatiblevLLM-poweredNo lock-in
EU
Full data sovereignty

GPUs and data residency inside Europe. Your prompts never leave the EU.

Open
Models you can audit

Run open-weight models with no black boxes or hidden telemetry.

€0
Scale to zero

GPUs idle when nobody is online, so you only pay for what you run.

Yours
No vendor lock-in

Your infra, your keys, your models. Leave whenever you want.

Model garden

Works with 390+ open models

Text and image models on dedicated EU GPUs. Every model tested on our own hardware.

Related pages

Explore more about EU-hosted AI on HostYourAI.

Host. Route. Ship.

No credit card required. Pay as you go, cancel anytime.

Start Hosting Free Today