Microsoft Phi-2 API

Microsoft Phi-2 API, a breakthrough in AI, offers significant computational and AI advancements.
Output
$0.105 / 1M

How to use Microsoft Phi-2 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to .

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Microsoft Phi-2 API Pricing

TypePrice
Input
$0.105 / 1M
Output
$0.105 / 1M

Microsoft Phi-2 vs other models

ModelInputOutputContextBest for
$0.105 / 1M
$0.105 / 1M
$1.26 / 1M
$1.26 / 1M
$0.945 / 1M
$0.945 / 1M
$0.21 / 1M
$0.21 / 1M
$0.84 / 1M
$0.84 / 1M

Frequently asked questions

Microsoft Phi-2 is priced at input $0.105 / 1M, output $0.105 / 1M.

Yes, Microsoft Phi-2 can stream responses as they are generated.

Yes, Microsoft Phi-2 supports both function calling and structured outputs.

Microsoft Phi-2 was built by Microsoft.

Yes, Microsoft Phi-2 includes reasoning as one of its capabilities.

Start building with Microsoft Phi-2

Get API Key
1000+ models, one API.