Skip to content

EU Router 03 Serve

Anthropic-compatible API

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

  • GLM
  • DeepSeek
  • Qwen
  • Kimi
  • Mistral
  • Llama
  • gpt-oss
  • Gemma
  • Loes
  • Nemotron
  • Claude Code
  • Codex
  • OpenCode
  • Cursor
  • Cline
  • Loes
  • OpenAI SDK
  • Anthropic SDK

What it does EU Router

Anthropic SDK, EU models

Besides the OpenAI API, the Router also speaks the Anthropic API. Through /v1/messages you point your existing Anthropic client at HostYourAI with x-api-key authentication (an Authorization: Bearer header works too). You keep your tooling; inference runs on open models in the EU.

Read more

02 EU Router

What is supported?

  • The /v1/messages shape of the Anthropic API, including count_tokens
  • Authentication via x-api-key or Authorization: Bearer
  • True token-by-token streaming (SSE), in the Anthropic event format
  • Tool calling: agents such as Claude Code, Cline and opencode can call tools
  • 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.

03 EU Router

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.

04 EU Router

Example in code

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

python
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.

05 EU Router

Using it with Claude Code

Claude Code works directly on the Router. Set a few environment variables and pick a model from the catalog:

export ANTHROPIC_BASE_URL="https://hostyourai.com"
export ANTHROPIC_AUTH_TOKEN="hyai-rt-..."
export ANTHROPIC_MODEL="Qwen/Qwen3.6-27B-FP8"
export ANTHROPIC_SMALL_FAST_MODEL="Qwen/Qwen3.6-27B-FP8"
claude

Pick a model that supports tools, otherwise Claude Code cannot read files or run commands. GET /v1/models shows supports_tools per model and how much context is currently being served (served_context_length). Agentic coding uses a lot of context; if you want guaranteed large context for your coding sessions, email info@hostyourai.com. Other Anthropic tools such as Cline and opencode are set up the same way: base URL to HostYourAI, your own key and a model from the catalog. Everything about coding agents on our router is on HostYourAI Code.

06 EU Router

What is supported, honestly

Anthropic featureStatus at HostYourAI
/v1/messages request and responseSupported
/v1/messages/count_tokensSupported (fast estimate)
x-api-key and Bearer authenticationSupported
System and user messagesSupported
StreamingToken by token, Anthropic event format
Tool callingSupported on models with tool support (see catalog)
Images in messagesNot yet, text-only

If you need multimodal input, use the OpenAI-compatible route on the same Router.

Questions

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?

Yes, token by token. The Router translates the stream live into the Anthropic event format, so streaming clients such as Claude Code just work.

Does Claude Code work on this?

Yes. Set ANTHROPIC_BASE_URL to https://hostyourai.com, use your HostYourAI key and pick a model from the catalog. See the example above.

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.

EU-hosted

100%

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

Verified models, ready to serve

700+

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

OpenAI & Anthropic compatible

2 SDK

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.

01

Pick a model

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

02

Get your endpoint

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

03

Route and ship

Point your client at the Router. It auto-routes to a warm instance 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-hosted
  • GDPR-friendly
  • OpenAI-compatible
  • vLLM-powered
  • No lock-in

Full data sovereignty

EU

GPUs and data stay inside Europe, and so do your prompts.

Models you can audit

Open

Run open-weight models and see exactly what runs.

No monthly fee

€0

Prepaid credit per token or per minute, so you pay only for what you run.

Your keys, your models

Yours

Your keys, your models and your data. Move 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.

  • Docker
  • Anthropic
  • Hugging Face
  • LangChain
  • Python
  • Node.js
  • curl
  • Ollama
  • JetBrains
  • Jupyter
  • Vercel
  • Zapier
  • Postman
  • n8n
The platform

One platform, four layers

Start with one layer and add the others when the work asks for it. They share one key, one balance and one Activity view.

Code

Your coding agent on open models in Europe, set up with one command.

Open

Control

Keys, budgets and guardrails per team, and personal data stopped before any model sees it.

Open

Serve

Shared per token, or running for you alone, from European data centres.

Open

EU compute

Private GPUs in Europe, H100 to B300, sized for response time, generation speed and concurrent users.

Open

Related pages

Explore more about EU-hosted AI on HostYourAI.

OpenAI-compatible API

A drop-in OpenAI-compatible API on European GPUs. Change only the base URL and run open models, GDPR-friendly, without rewriting your code.

Read more

LLM Inference Hosting

LLM inference hosting with optimized latency. vLLM, continuous batching, streaming responses. For production AI applications.

Read more

Chatbot Hosting Platform

Host AI chatbots on European infrastructure. Customer service, internal assistants, and more with GDPR compliance.

Read more

Europe's AI infrastructure.
Come build with us.

Start with one key today. Add dedicated GPUs when your workload needs them.

  • Jantine
  • Hans
  • Sander
  • Jos
  • Daan
  • Kyra
  • Margriet
  • Stan
The team behind HostYourAI