
When choosing between Microsoft models, APIpie provides comprehensive monitoring tools to help make informed decisions:
Performance Monitoring:
Pricing & Cost Analysis:
Health Metrics:
This monitoring system helps users:
The Microsoft Phi Series represents Microsoft's innovative approach to efficient and powerful language models. Developed by Microsoft Research, these models demonstrate exceptional performance through advanced scaling techniques and architectural improvements. The models are available through various providers integrated with APIpie's routing system, offering flexibility in deployment options.
| Model Name | Max Tokens | Response Tokens | Providers | Subtype | | --------------------------------- | -------------- | ------------------- | ------------- | -------------------- | --------------- | | resnet-50 | - | - | deepinfra | image-classification | | beit-base-patch16-224-pt22k-ft22k | - | - | deepinfra | image-classification | | wizardlm-2-8x22b | 65536 | 4096 | openrouter | chatx | text-generation | | WizardLM-2-7B | 32000 | 32000 | deepinfra | chatx | text-generation | | WizardLM-2-8x22B | 65536 | 65536 | deepinfra | chatx | text-generation | | wizardlm-2-7b | 32000 | 4096 | openrouter | text-generation | chatx | | phi-3-mini-128k-instruct | 128000 | 128000 | openrouter | chatx | | phi-3-medium-128k-instruct | 128000 | 128000 | openrouter | chatx | | phi-3.5-mini-128k-instruct | 128000 | 128000 | openrouter | chatx | | nova-micro-v1 | 128000 | 5120 | bedrock | | | nova-micro-v1 | 128000 | 5120 | openrouter | chat | | WizardLM-2-8x22B | 65536 | 65536 | together | chat |
Below is an example of how to use the Chat Completions API to interact with a model from the Microsoft Series, such as phi-3-medium-128k-instruct.
curl -L -X POST 'https://apipie.ai/v1/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
--data-raw '{
"provider": "openrouter",
"model": "phi-3-medium-128k-instruct",
"max_tokens": 150,
"messages": [
{
"role": "user",
"content": "What are the key principles of machine learning?"
}
]
}'
The expected response structure for the Microsoft model might look like this:
{
"id": "chatcmpl-12345example12345",
"object": "chat.completion",
"created": 1729535643,
"provider": "openrouter",
"model": "phi-3-medium-128k-instruct",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The key principles of machine learning include:\n\n1. **Data Quality**: High-quality, diverse training data is essential\n\n2. **Feature Selection**: Identifying relevant input variables\n\n3. **Model Selection**: Choosing appropriate algorithms for the task\n\n4. **Training & Validation**: Using separate datasets to ensure generalization\n\n5. **Evaluation**: Measuring performance with appropriate metrics\n\nThese principles form the foundation of effective machine learning systems."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 98,
"total_tokens": 110,
"prompt_characters": 45,
"response_characters": 420,
"cost": 0.00185,
"latency_ms": 2800
},
"system_fingerprint": "fp_123abc456def"
}
phi-3-medium-128k-instruct or others suited to your task. See Models Guide.This example demonstrates how to seamlessly query models from the Microsoft Series for conversational or instructional tasks.
Microsoft's AI models should be used responsibly with appropriate safeguards and consideration of potential biases. For guidance on responsible AI usage, see Microsoft's Responsible AI Standards.
The Microsoft Phi Series models are available under specific terms and conditions. For detailed licensing information, consult the Microsoft Research Open Source documentation.
Llama Models Overview: Unlock AI Potential
Explore Meta's Llama AI models, featuring Llama 2 and 3. Compare capabilities, token limits, and integration options to optimize your projects.
Explore Mistral Models & APIs with APIpie Overview
Discover Mistral's AI models, including Mixtral and Mistral variants. Compare features, capabilities, and learn about integration options today!