EU Router

Anthropic-compatible API

Use your Anthropic SDK unchanged and run open models on EU infrastructure.

On this page

Anthropic SDK, EU models

Besides the OpenAI API, the Router also speaks the Anthropic API. Through a /v1/messages shim you point your existing Anthropic client at HostYourAI with x-api-key authentication. You keep your tooling; inference runs on open models in the EU.

What is supported?

  • The /v1/messages shape of the Anthropic API
  • Authentication via x-api-key
  • Text conversations with system and user messages
  • The same open models as the OpenAI route

This lets you use one platform for both OpenAI- and Anthropic-based applications, without two separate vendors.

Je app
OpenAI · Anthropic
EU Router
één base URL
Qwen3-8B
warm
Loes (NL)
soeverein
Llama-3.3
warm

One Router, two APIs

Whether your team uses the OpenAI or the Anthropic SDK, both point at the same Router and the same EU GPUs. That simplifies your stack and keeps all your inference inside Europe.

Example in code

With the Anthropic SDK you set the base URL to the Router and use your key as x-api-key:

from anthropic import Anthropic

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

msg = client.messages.create(
    model="llama-3.3-70b",
    max_tokens=512,
    messages=[{"role": "user", "content": "Hello"}],
)
print(msg.content[0].text)

Prefer the OpenAI SDK? The same Router also runs our OpenAI-compatible API.

What is supported, honestly

Anthropic featureStatus at HostYourAI
/v1/messages request and responseSupported
x-api-key authenticationSupported
System and user messagesSupported
StreamingBuffered: the answer returns in one piece
Images in messagesNot yet, text-only

If you need true token-by-token streaming or multimodal input, use the OpenAI-compatible route on the same Router; it supports both fully.

Questions about the Anthropic-compatible API

Why use this instead of the Claude API?

Because your code is already built on the Anthropic SDK and you want to move processing to the EU. You change the base URL and the key; your application stays the same. See also the Claude API alternative.

Am I running Claude models then?

No. You call open models such as Llama, Qwen and Mistral, served on European GPUs. The API shape is Anthropic; the models are open weights from the catalog.

Does streaming work?

Streaming requests are accepted but answered buffered: you receive the full answer in one piece. For token-by-token streaming, use the OpenAI route.

Can I mix OpenAI and Anthropic clients?

Yes. Both routes run over the same Router, the same API key and the same credit balance. Useful when different teams use different SDKs.

Where does my data run?

On GPUs in European datacenters. Your prompts never leave the EU, a Data Processing Agreement is available and there is no training on your data.

What does it cost?

The same as the OpenAI route: per token, per model class, from one prepaid balance. See the pricing page.

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.

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.

Works with the tools you already use

The Router speaks the OpenAI and Anthropic APIs, so it drops straight into the clients and SDKs your team already runs. Just change the base URL.

Try HostYourAI for free
docker
anthropic
huggingface
langchain
python
nodedotjs
curl
ollama
jetbrains
jupyter
vercel
zapier
postman
n8n
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