Microsoft

Microsoft Phi 4

[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 billion...

Context window
16Ktokens
Max output
15Ktokens
Input
$0.07/ 1M
Output
$0.14/ 1M

Quick start

from openai import OpenAI

client = OpenAI(
    base_url="https://neurongate.net/v1",
    api_key="sk-ng-your-api-key",
)

completion = client.chat.completions.create(
    model="microsoft/phi-4",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(completion.choices[0].message.content)

Cost

Example requestTokensCost
Short prompt1K in$0.00007
Typical chat turn1K in · 500 out$0.00014
Document analysis10K in · 2K out$0.00098
Long context100K in · 10K out$0.0084
Estimated cost per request$0.00014

Prices in USD. Billed per token actually used, from a balance prepaid in USDT, USDC, ETH or BTC.

Frequently asked questions

What is Microsoft Phi 4?

[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 billion...

How much does Microsoft Phi 4 cost?

Microsoft Phi 4 is priced at $0.07 per 1 million input tokens and $0.14 per 1 million output tokens when accessed via NeuronGate. You pay per token — no subscriptions required. Top up with crypto (USDT, USDC, ETH, BTC).

Does Microsoft Phi 4 support streaming?

Yes, Microsoft Phi 4 supports streaming responses via NeuronGate's API. Use the standard "stream": true parameter in your request.

What is the context window of Microsoft Phi 4?

Microsoft Phi 4 has a context window of 16K tokens (~12K words). Maximum output is 15K tokens.

Does Microsoft Phi 4 support function calling (tools)?

Microsoft Phi 4 does not currently support function calling / tool use.

How do I use Microsoft Phi 4 with NeuronGate?

Create a NeuronGate account, top up your balance with crypto, generate an API key, and use the model id microsoft/phi-4 in your requests. NeuronGate uses the OpenAI-compatible API format — set your base URL to https://neurongate.net/v1.