Phi-4 API via TokenMix
Use Phi-4 from Microsoft as a chat model through the TokenMix AI API relay and multi-model gateway.
Microsoft's 14-billion parameter small language model specializing in complex reasoning including mathematics, logic, and code generation. Uses dense decoder-only transformer with 16K context, released under MIT license.
API access
- Base URL:
https://api.tokenmix.ai/v1 - Model ID:
phi-4 - OpenAI SDK compatible. Change the base URL and use your TokenMix API key.
Pricing
Input $0.1/M tokens, output $0.4/M tokens
Capabilities
JSON mode, Streaming
Model specs
- Context: 16K tokens
- Max output: 16K tokens
Availability
2/2 available API endpoints are healthy right now.
Start using this model
Create an API key, top up from $1 when needed, and call this model through the TokenMix OpenAI-compatible endpoint.