microsoft

Microsoft Phi 4

microsoft/phi-4

Input$0.070 /1M tokens
·
Output$0.140 /1M tokens

[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...

Code Examples

import requests

response = requests.post(
    "https://neurongate.net/v1/chat/completions",
    headers={
        "Authorization": "Bearer ng-your-api-key",
        "Content-Type": "application/json"
    },
    json={
        "model": "microsoft/phi-4",
        "messages": [
            {"role": "user", "content": "Hello!"}
        ]
    }
)

print(response.json()["choices"][0]["message"]["content"])

Pricing Details

ExampleCost
1K input tokens (short prompt)< $0.0001
1K in + 500 out (typical response)$0.00014
10K in + 2K out (document analysis)$0.00098
100K in + 10K out (large context)$0.00840

Prices in USD. Billed per actual token usage. Prepay with USDT, USDC, ETH, or BTC.

Frequently Asked Questions

Capabilities

Streaming
Yes
Function Calling / Tools
No
Vision (Image Input)
No
Audio Processing
No

Context Window

16K tokens

~12K words of text

Max output
16K tokens

Modalities

Input
text
Output
text

Ready to build?

Pay with crypto. No subscriptions.

Get Started Free

Similar Models