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
GitHub Models

Phi-3-medium instruct (4k) API

GitHub Models
About

Build advanced reasoning agents with Phi-3-medium instruct (4k), a specialized AI model optimized for complex logic and chain-of-thought tasks. This model delivers available completely free of charge, native tool calling support, open weights architecture. Access Phi-3-medium instruct (4k) via the GitHub Models API with up to 1K output tokens.

Capabilities

Input Modalities

text

Output Modalities

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

Tokens

Input Limit
4K

Tokens

Max Output
1K

Tokens

Pricing

Standard (per 1M tokens)

Input
Free
Output
Free
Frequently Asked Questions

Phi-3-medium instruct (4k) by GitHub Models costs Free per 1M input tokens and Free per 1M output tokens.

Model Details
ID
microsoft/phi-3-medium-4k-instruct
Provider
GitHub Models
Family
phi
Release Date
Apr 23, 2024
Knowledge Cutoff
Oct 1, 2023
API Integration
NPM Package
@ai-sdk/openai-compatible
Environment Variables
GITHUB_TOKEN
API Base URL
https://models.github.ai/inference
Documentation