← All models
Microsoft logo

Phi 4

Chat

microsoft:phi-4

Added January 10, 2025

Usage

import OpenAI from "openai";

const client = new OpenAI({
    baseURL: "https://api.tributary.cc/openai/v1",
    apiKey: "<TRIBUTARY_API_KEY>",
});

const completion = await client.chat.completions.create({
    model: "microsoft:phi-4",
    messages: [
        { role: "user", content: "Hello!" }
    ],
});

console.log(completion.choices[0].message.content);

Providers

Provider Model Context Output Input $/M Output $/M
DeepInfra microsoft/phi-4 16K 16K $0.07 $0.14
Context/output in tokens. Prices in USD per 1M tokens.