All models
Microsoft
Phi-4
Microsoft's compact model with strong logic
Text
- Type
- Chat
- Context
- 16K tokens
- Russian
- low
- Input price
- 5,6 ₽ / 1M tokens
- Output price
- 11,2 ₽ / 1M tokens
- Release date
- December 2024
chat/completions
import OpenAI from "openai"const client = new OpenAI({ baseURL: "https://api.yenisei.ru/v1", apiKey: process.env.YENISEI_API_KEY,})const stream = await client.chat.completions.create({ model: "phi-4", messages: [{ role: "user", content: "Hi!" }], stream: true,})for await (const chunk of stream) { process.stdout.write(chunk.choices[0]?.delta?.content ?? "")}About the model
Phi-4 is a small Microsoft model known for surprisingly strong results in reasoning and mathematics given its compact size. It carefully works through logic problems, olympiad-style exercises and multi-step conditions, showing quality typical of much larger models. Its compact size makes it economical and fast where resources are limited. The model follows instructions well and suits educational scenarios where a clear explanation matters.
Strengths
- Strong logic and mathematics
- Reasoning quality that punches above its size
- Compact and economical
- Fast response times
Where to use it
- Educational scenarios with worked solutions
- Logic and math problems
- Quick prototypes and experiments
- Working through multi-step conditions
- Reasoning-focused assistants