
When choosing between Perplexity models, APIpie provides comprehensive monitoring tools to help make informed decisions:
Performance Monitoring:
Pricing & Cost Analysis:
Health Metrics:
This monitoring system helps users:
Perplexity AI is pioneering the development of advanced language models with a focus on real-time information processing and extended context understanding. Building upon Meta's Llama architecture, Perplexity has enhanced these foundation models with specialized training and optimizations for online inference. Their Sonar models represent a significant breakthrough, combining Llama's powerful language understanding capabilities with real-time information processing and extended context windows.
This innovative approach leverages Llama's strong foundation while adding crucial features for real-world applications:
These models are available through APIpie's routing system, offering state-of-the-art performance for various applications.
| Model Name | Max Tokens | Response Tokens | Providers | Subtype |
|---|---|---|---|---|
| llama-3.1-sonar-small-128k-online | 127,072 | 127,072 | OpenRouter | Chat |
| llama-3.1-sonar-large-128k-online | 127,072 | 127,072 | OpenRouter | Chat |
| llama-3.1-sonar-huge-128k-online | 127,072 | 127,072 | OpenRouter | Chat |
Below is an example of how to use the Chat Completions API to interact with a Perplexity model:
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": "llama-3.1-sonar-huge-128k-online",
"max_tokens": 150,
"messages": [
{
"role": "user",
"content": "What are the latest developments in quantum computing?"
}
]
}'
The expected response structure for a Perplexity model:
{
"id": "chatcmpl-12345example12345",
"object": "chat.completion",
"created": 1729535643,
"provider": "openrouter",
"model": "llama-3.1-sonar-huge-128k-online",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Recent developments in quantum computing include advances in error correction, new qubit architectures, and breakthrough experiments in quantum supremacy. Companies like IBM, Google, and others continue to make progress in both hardware and software aspects of quantum computing technology."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 125,
"total_tokens": 140,
"prompt_characters": 45,
"response_characters": 520,
"cost": 0.00225,
"latency_ms": 3100
},
"system_fingerprint": "fp_123abc456def"
}
Try these models with LibreChat or OpenWebUI for an interactive experience.
Qwen API Overview: Unlock Conversational AI
Complete guide to Alibaba's Qwen models. Compare features, capabilities, and use cases. Learn about token limits, pricing, and integration options.
Explore Google's AI: Gemini & Gemma Series Overview
Explore Google's advanced AI models, including Gemini and Gemma. Compare features, pricing, and integration options for transformative applications.