Microsoft Phi-2 API

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 tokens
Output
$0.105 / 1M tokens

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

Start building with Microsoft Phi-2

Get API Key
1000+ models, one API.