HostYourAI

phi 2 hosting in the EU — OpenAI-compatible API

Instantly via the EU router or as a dedicated GPU deployment. Data stays in Europe.

Phi-2 is a Transformer with 2.7 billion parameters. It was trained using the same data sources as Phi-1.5, augmented with a new data source that consists of various NLP synthetic texts and filtered websites (for safety and educational value). When assessed against benchmarks testing common sense, language understanding, and logical reasoning, Phi-2 showcased a nearly state-of-the-art performance a...

Specifications

Parameters2.8B
Context window2,048 tokens
Minimum VRAM8 GB
ArchitecturePhiForCausalLM (vLLM)
Licensemit
Modalitytext->text
ReleasedDecember 2023
Publishermicrosoft (Hugging Face)

Pricing

Input (per 1M tokens)€ 0.03
Output (per 1M tokens)€ 0.06

Shared EU router, pay-per-token, scale-to-zero. Dedicated GPU deployments are billed hourly — see pricing.

Call it now

Drop-in replacement for OpenAI: change only the base URL and API key. The Anthropic format (/v1/messages) is supported too.

curl https://hostyourai.com/api/v1/chat/completions \
  -H "Authorization: Bearer hyai-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "microsoft/phi-2",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Frequently asked questions

Can I run phi 2 in the EU?

Yes. HostYourAI runs phi 2 on GPUs in European datacenters via vLLM. Prompts and outputs never leave the EU and there is no US cloud provider in the chain.

Is hosting phi 2 GDPR-compliant?

Yes. All processing happens inside the EU, a Data Processing Agreement (DPA) is available and the subprocessor list is public. Open-source weights also mean: no training on your data.

How much does phi 2 cost?

Via the shared EU router you pay €0.03 per million input tokens and €0.06 per million output tokens, with no fixed costs. For high volume or isolation you can also run phi 2 as a dedicated hourly GPU instance.

Is the API OpenAI-compatible?

Yes. You use the standard OpenAI SDKs with a custom base URL (https://hostyourai.com/api/v1). The Anthropic Messages API is supported as a drop-in as well.

Try phi 2 for free

Creating an account takes a minute. Test phi 2 straight away in the playground.

Start for free

← All models