bitsrun

Run Phi-4 14B as a private API

Microsoft's 14B model, trained with a large share of curated and synthetic data and known for reasoning and math. Its context window is 16,384 tokens.

Made by
Microsoft
Parameters
14.7B
Licence
MIT
Context
16,384 tokens
Tool calling
No (Ollama version)
Cheapest GPU
NVIDIA L4, $0.95/h

Deploy Phi-4 14B in one command

Install the bitsrun command line, sign in, then:

bitsrun deploy phi4:14b --key

BitsRun picks the NVIDIA L4, starts the model on the first request and puts it back to sleep after 2 minutes without requests. Prefer clicks? Paste the same name into New endpoint in the dashboard and select Check model.

Then call it like any OpenAI-compatible API, with the URL and key the command prints:

bash
curl https://<endpoint-id>.endpoint.bitsrun.com/v1/chat/completions \
  -H "Authorization: Bearer $BITSRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "phi4:14b", "messages": [{"role": "user", "content": "Hello"}]}'

How much VRAM Phi-4 14B needs

Memory needed is what the runtime must have free to start: the weights, the working memory for the conversation and the runtime itself. We use the same rules as the model sizer in the dashboard.

Versions of Phi-4 14B with their memory needs and GPU
VersionWeightsMemory neededCheapest GPUContext thereSpeed (est.)
Ollama phi4:14b (Q4)phi4:14b9.1 GB12 GBNVIDIA L4, $0.95/h16,384 tokensabout 20 tok/s
GGUF Q8_0hf:unsloth/phi-4-GGUF:Q8_016 GB20 GBNVIDIA L4, $0.95/h16,384 tokensabout 12 tok/s
Original BF16 (safetensors on vLLM)hf:microsoft/phi-4about 29 GB38 GBNVIDIA L40S, $3.20/h16,384 tokensabout 18 tok/s

File sizes read from the Ollama library and Hugging Face on 2026-11-14; "about" means estimated from the parameter count. Context is for one request at a time. Speed is a single-request estimate from GPU memory bandwidth; serving several requests at once raises total throughput. Try other sizes in the VRAM calculator.

Measured on BitsRun

We have not benchmarked Phi-4 14B on our GPUs yet, so the speeds above are estimates. We publish measured numbers here once we have them.

What it costs to run Phi-4 14B

You pay $0.95 an hour for the NVIDIA L4, counted per second, only while the endpoint is awake: answering requests and during the idle time you choose (60 seconds to 1 hour). Starting up is free.

Monthly cost by busy hours a day
Busy each dayPer month (30 days)
1 hour$28.51
3 hours$85.54
8 hours$228.10
24 hours (all day)$684.29

Busy all day? Always-on keeps the GPU ready with no cold starts for $1,180 a month. See pricing.

Good to know

Frequently asked questions

How much GPU memory does Phi-4 14B need?
Ollama phi4:14b (Q4) has 9.1 GB of weights and needs about 12 GB of GPU memory to start, so it fits an NVIDIA L4 (24 GB).
How much does it cost to run Phi-4 14B as an API?
On BitsRun it runs on an NVIDIA L4 at $0.95 an hour, billed per second only while it is awake. At 3 busy hours a day that is about $85.54 a month. Waking up is never billed.
Can Phi-4 14B call tools?
Not with the Ollama version: its chat template has no tool format. It still serves normal chat.
Is my data private when I run Phi-4 14B on BitsRun?
Yes. Each endpoint is yours alone, and prompts and outputs are never logged or stored.

Run Phi-4 14B on your own endpoint

Sign up with your email, add $10 of credit and deploy from an Ollama name or a Hugging Face repo. An L4 costs $0.95 an hour, billed per second only while your model is awake. Waking up is never billed, and credit you buy does not expire.