Qwen: Qwen3 4B
This model is no longer available.Add AI to your application with Puter.js.
Explore Other ModelsModel Card
Qwen3 4B is a compact model rivaling Qwen2.5-72B-Instruct performance, featuring hybrid thinking modes and 119 language support.
Context Window N/A
tokens
Max Output N/A
tokens
Input Cost $0
per million tokens
Output Cost $0
per million tokens
Release Date Apr 29, 2025
Code Example
Add AI to your app with the Puter.js AI API — no API keys or setup required.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.chat("Explain quantum computing in simple terms").then(response => {
document.body.innerHTML = response.message.content;
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms").then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
More AI Models From Qwen
Qwen3.7 Max
Qwen3.7 Max is Alibaba's flagship proprietary reasoning model, released in May 2026, built for long-horizon agentic workloads with a 1 million-token context window and a chain-of-thought reasoning architecture. It is purpose-built for complex, multi-step autonomous tasks. Alibaba demonstrated the model running for 35 hours without degradation, executing over 1,000 tool calls in a single session — making it a strong candidate for coding agents, automated pipelines, and deep document analysis. On benchmarks, it ranks 13th globally on LM Arena's text leaderboard and scores 56.6 on the Artificial Analysis Intelligence Index, making it the highest-ranked Chinese model on that index. It posted 90.2 on Arena-Hard v2 and 72.5 on SWE-Bench Verified. Qwen3.7 Max supports the Anthropic API protocol natively, so it integrates cleanly with tooling like Claude Code. It is well-suited for developers building coding assistants, research agents, or any API use case requiring extended reasoning over large contexts.
ChatQwen3.6 Flash
Qwen3.6 Flash is the speed-optimized tier of Alibaba's Qwen3.6 model family, designed for high-throughput, low-latency inference pipelines. It sits alongside Qwen3.6 Max Preview, Plus, and 35B-A3B in the product lineup, targeting use cases where fast response times matter more than peak benchmark scores. Like other Qwen3.6 models, it builds on a hybrid architecture combining linear attention with sparse mixture-of-experts routing. It is best suited for high-volume production workloads such as classification, extraction, summarization, and lightweight agent tasks where latency and cost efficiency are the primary constraints.
ChatQwen3.5 Plus 2026-04-20
Qwen3.5 Plus is a proprietary hosted model from Alibaba, built on the Qwen3.5-397B-A17B Mixture-of-Experts architecture with 397 billion total parameters and 17 billion active per token. Its headline feature is a 1-million-token native context window — among the largest available via API — making it well suited for processing entire codebases, long documents, or extended multi-turn conversations in a single request. It supports both a deep-thinking mode and an "Auto" mode that adaptively invokes tools like web search and code interpreters. This April 20, 2026 snapshot reflects ongoing improvements to the model since its original February 2026 launch. The Qwen3.5 series demonstrated strong multimodal performance across reasoning, coding, and vision tasks. A solid general-purpose option for developers needing large-context capabilities without migrating to the newer Qwen3.6 line.
Frequently Asked Questions
You can access Qwen3 4B by Qwen through Puter.js AI API. Include the library in your web app or Node.js project and start making calls with just a few lines of JavaScript — no backend and no configuration required. You can also use it with Python or cURL via Puter's OpenAI-compatible API.
Yes, it is free if you're using it through Puter.js. With the User-Pays Model, you can add Qwen3 4B to your app at no cost — your users pay for their own AI usage directly, making it completely free for you as a developer.
| Price per 1M tokens | |
|---|---|
| Input | $0 |
| Output | $0 |
Qwen3 4B was created by Qwen and released on Apr 29, 2025.
Yes — the Qwen3 4B API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.
Get started with Puter.js
Add AI to your application without worrying about API keys or setup.
Explore Models View Tutorials