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
Deep Infra

Phi-4 API

Deep Infra
About

Phi-4 is a high-performance LLM available via the Deep Infra 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 Deep Infra 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 Deep Infra costs $0.07 per 1M input tokens and $0.14 per 1M output tokens.

Model Details
ID
microsoft/phi-4
Provider
Deep Infra
Family
phi
Release Date
Dec 12, 2024
Knowledge Cutoff
Jun 1, 2024
API Integration
NPM Package
@ai-sdk/deepinfra
Environment Variables
DEEPINFRA_API_KEY
Documentation