LibreChat logo

Run LibreChat on Phi-4

by LibreChatChat applibrechat.ai

LibreChat is the leading open-source AI chat platform, a self-hosted ChatGPT alternative with multi-model chat, agents, file handling, and search. Custom endpoints are a headline feature: one block in librechat.yaml adds any OpenAI-compatible provider. Point it at Opper and your whole workspace chats across 700+ models on one key, with a choice of EU or US inference behind it.

RunLibreChat logoLibreChatonin

Connect LibreChat to Phi-4

Set up with agents

Paste this into your coding agent (Claude Code, Cursor, Codex, and more) and it will set up and build with Opper for you.

Get your API key

Where you can run it

Phi-4 runs on the routes below. Route only to EU providers when your data has to stay in Europe. Its route also sells flex processing: the same model at another price, picked per request with service_tier. How service tiers work.

ProviderRegionZero data retentionTrainingInputOutputCache read
USNo$0.07$0.14Input price

The model

by Microsoft

Phi-4 by Microsoft: 14-billion parameter open-weight language model excelling at mathematical reasoning and complex problem-solving with 16K context window.

Available on

Pricing from$0.07/ 1M input$0.14/ 1M output16Kcontext

Privacy

ZDR
Training
No
Region
US

Run LibreChat on other models

Step-by-step setup for running LibreChat on each of these models through Opper.

More apps on Opper

Run LibreChat on Phi-4

One key, 700+ models, a choice of region, and zero data retention. Switch the model behind your app without changing your workflow.

Get startedView Documentation