AI Model APIs
AI Model APIsProviders
AI Model APIs

The complete platform for comparing AI models. Find pricing, capabilities, and the perfect model for your use case.

contact@aimodelapis.com

Resources

  • AI Models APIs
  • Providers

About

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 AI Model APIs. All rights reserved.

Back to Models
OpenRouter

Phi 4 API

OpenRouter
About

Phi 4 is a high-performance LLM available via the OpenRouter API, ideal for scalable text generation and natural language processing. This model delivers cost-effective pricing at $0.07/1M input and $0.14/1M output tokens, open weights architecture. Access Phi 4 via the OpenRouter API with up to 16K output tokens.

Capabilities

Input Modalities

text

Output Modalities

text
Reasoning
No
Structured Output
Yes
Tool Use
No
WeightsOpen
Temperature
Adjustable
Attachment
Not Supported
Limits
Context Window
16K

Tokens

Input Limit
16K

Tokens

Max Output
16K

Tokens

Pricing

Standard (per 1M tokens)

Input
$0.07
Output
$0.14
Frequently Asked Questions

Phi 4 by OpenRouter costs $0.07 per 1M input tokens and $0.14 per 1M output tokens.

Model Details
ID
microsoft/phi-4
Provider
OpenRouter
Family
phi
Release Date
Jan 10, 2025
Knowledge Cutoff
Jun 30, 2024
API Integration
NPM Package
@openrouter/ai-sdk-provider
Environment Variables
OPENROUTER_API_KEY
API Base URL
https://openrouter.ai/api/v1
Documentation