Phi 4
Microsoft: Phi 4 is a OpenRouter model listed in the NextModel catalog for General chat via OpenRouter, API workloads workloads. Its listed price is $0.013 / 1M tokens input and $0.027 / 1M tokens output per 1M tokens, with a 16.4k token context window.
What is Phi 4 in NextModel?
Microsoft: Phi 4 is a OpenRouter model listed in the NextModel catalog for General chat via OpenRouter, API workloads workloads. Its listed price is $0.013 / 1M tokens input and $0.027 / 1M tokens output per 1M tokens, with a 16.4k token context window.
Best use cases
- General chat via OpenRouter
- API workloads
OpenAI-compatible code example
Keep the OpenAI SDK style, set base_url to NextModel, and use the catalog model ID microsoft--phi-4.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.nextmodel.app/v1"
)
resp = client.chat.completions.create(
model="microsoft/phi-4",
messages=[{"role": "user", "content": "Hello from NextModel"}]
)
print(resp.choices[0].message.content)Similar alternatives
Olmo 3 32B Think is a large-scale, 32-billion-parameter model purpose-built for deep reasoning, complex logic chains and advanced instruction-following scenarios. Its capacity enables strong performance on demanding evaluation tasks and...
This is a series of models designed to replicate the prose quality of the Claude 3 models, specifically Sonnet(https://openrouter.ai/anthropic/claude-3.5-sonnet) and Opus(https://openrouter.ai/anthropic/claude-3-opus). The model is fine-tuned on top of [Qwen2.5 72B](https://openrouter.ai/qwen/qwen-2.5-72b-instruct).
One of the highest performing and most popular fine-tunes of Llama 2 13B, with rich descriptions and roleplay. #merge
FAQ