
When choosing between Qwen models, APIpie provides comprehensive monitoring tools to help make informed decisions:
Performance Monitoring:
Pricing & Cost Analysis:
Health Metrics:
This monitoring system helps users:
The Qwen Series represents a comprehensive family of transformer-based models optimized for a wide range of NLP applications. Developed by Alibaba Cloud, these models leverage cutting-edge technology to deliver exceptional performance in conversational AI, instruction-following tasks, and extended-context interactions. The models are available through various providers integrated with APIpie's routing system.
| Model Name | Max Tokens | Response Tokens | Providers | Subtype |
|---|---|---|---|---|
| qwen-2-72b-instruct | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Instruction |
| qwen-2-7b-instruct | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Instruction |
| Qwen2-1.5B-Instruct | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Instruction |
| Qwen2-7B-Instruct | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Instruction |
| Qwen1.5-14B-Chat | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-1.8B-Chat | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-32B-Chat | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-7B-Chat | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-0.5B-Chat | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-4B-Chat | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| qwen-2-vl-7b-instruct | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Vision-Language |
| qwen-2-vl-72b-instruct | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Vision-Language |
| qwen-2.5-72b-instruct | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Instruction |
| qwen-2.5-7b-instruct | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Instruction |
| eva-qwen-2.5-32b | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Instruction |
| Qwen2-72B-Instruct | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Instruction |
| Qwen2-72B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-0.5B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-1.8B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-4B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-7B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-72B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen2-7B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen2-1.5B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-32B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| Qwen1.5-14B | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| qwen1-5_32k | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
| qwen2_32k | 32,768 | 32,768 | OpenRouter, EdenAI, Together, Bedrock | Chat |
Below is an example of how to use the Chat Completions API to interact with a model from the Qwen Series, such as qwen-2-7b-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": "qwen-2-7b-instruct",
"max_tokens": 150,
"messages": [
{
"role": "user",
"content": "Can you explain how photosynthesis works?"
}
]
}'
The expected response structure for the Qwen model might look like this:
{
"id": "chatcmpl-12345example12345",
"object": "chat.completion",
"created": 1729535643,
"provider": "openrouter",
"model": "qwen-2-7b-instruct",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Photosynthesis is the process by which green plants, algae, and some bacteria convert light energy into chemical energy. Here’s how it works:\n\n1. **Light Absorption**: Plants capture light energy using a pigment called chlorophyll, which is found in chloroplasts.\n\n2. **Water and Carbon Dioxide**: They absorb water through their roots and carbon dioxide from the air.\n\n3. **Glucose Production**: The light energy is used to convert water and carbon dioxide into glucose (a sugar) and oxygen. The equation is:\n \n 6CO2 + 6H2O + light energy → C6H12O6 + 6O2\n\nThis process provides energy for the plant and releases oxygen into the atmosphere."
},
"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"
}
qwen-2-7b-instruct or others suited to your task. See Models Guide.This example demonstrates how to seamlessly query models from the Qwen Series for conversational or instructional tasks.
The Qwen models are highly capable but lack inherent moderation systems. Users are encouraged to implement safeguards for appropriate deployment in sensitive contexts. For guidance on responsible AI usage, see Alibaba Cloud's Best Practices.
The Qwen Series is released under flexible licensing terms, allowing for both commercial and non-commercial usage. For detailed terms, consult the official Qwen repository, model cards, and respective hosting providers.
DeepSeek AI by APIpie: Overview & Key Features
Discover DeepSeek AI models, including DeepSeek-V3 and DeepSeek-R1. Compare features and explore integration options for enhanced performance.
Perplexity API Overview: Key Features & Use Cases
Discover Perplexity's advanced AI models, including the Sonar series, and unlock real-time processing capabilities for your projects.