Skip to content

Where to run Microsoft: Phi 4

microsoft/phi-4 · microsoft/phi-4 on Hugging Face (opens in a new tab)

  • Open weights
  • 16,384-token context
  • Text in · Text out
  • OpenRouter default route $0.07 in / $0.14 out per 1M tokens

Prices checked on OpenRouter

API providers
2
Routes listed on OpenRouter
Cheapest input / 1M tokens
$0.056
DeepInfra · $0.112 output
Self-hosting
Possible
Open weights on Hugging Face

API providers

Each provider route OpenRouter sells for this model, cheapest input first. Prices are OpenRouter's, in US dollars per million tokens, excluding tax; the same provider can charge a different price directly.

Open on OpenRouter
API providers for Microsoft: Phi 4 with price per million tokens
ProviderInput / 1MOutput / 1M
DeepInfrabf16Cheapest input$0.056$0.112
DeepInfrabf16$0.07$0.14

Self-host on a cloud GPU

Complete bills on the GPU offers that can hold the weights, lowest first, for a standard chat workload. A memory verdict stays “Fit unknown” until the runtime's own overhead is known; every row shows it. Change the workload to rerun it with your context, precision and running time.

Lowest complete bill, 30 days
$108.00
1× RTX A6000 · Salad
≈ $0.15/h · ≈ $110/mo
Offers with room for the weights
579
27 complete bills · 552 with an unpublished fee
Workload
30 days
Chat serving, 8k context, one sequence at a time, 30 days of runtime, 50 GB system disk (extra disk, transfer and IP not included)

Prices checked for cloud GPU offers

Lowest complete self-hosting bills for microsoft/phi-4
GPUMemory fit, per GPUBill, 30 days
1× RTX A6000SaladFit unknownat least 31.0 GB needed of 44.2 GB$108.00
≈ $0.15/h≈ $110/mo
1× RTX 6000 AdaSaladFit unknownat least 31.0 GB needed of 44.2 GB$165.60
≈ $0.23/h≈ $168/mo
1× RTX 6000 AdaLambdaFit unknownat least 31.0 GB needed of 44.2 GB$496.80
≈ $0.69/h≈ $504/mo
1× RTX PRO 6000 BlackwellSaladFit unknownat least 31.0 GB needed of 88.3 GB$792.00
≈ $1.10/h≈ $803/mo
10× RTX A4000HyperstackSplit over 5 GPUs, topology unverifiedFit unknownat least 6.20 GB needed of 14.7 GB$1,080.00
≈ $1.50/h≈ $1,095/mo
1× A100 80GB SXM4LambdaFit unknownat least 31.0 GB needed of 73.6 GB$1,432.80
≈ $1.99/h≈ $1,453/mo
1× A100 80GB SXM4LambdaFit unknownat least 31.0 GB needed of 73.6 GB$1,432.80
≈ $1.99/h≈ $1,453/mo
8× RTX A6000HyperstackFit unknownat least 31.0 GB needed of 44.2 GB$2,880.00
≈ $4.00/h≈ $2,920/mo
4× RTX A6000LambdaFit unknownat least 31.0 GB needed of 44.2 GB$3,139.20
≈ $4.36/h≈ $3,183/mo
8× L40HyperstackFit unknownat least 31.0 GB needed of 44.2 GB$5,760.00
≈ $8.00/h≈ $5,840/mo

17 more complete bills and 552 partial ones are on the full page.

gpucompare.com is operated by Sesterce, which also runs Sesterce Cloud. Every provider is listed with the same rules and ranked by price only.