Ship a Full-Stack App with One Prompt

Copy this prompt into your AI coding agent, or open it in one below.

Give this to your AI Create a to-do list app using Puter.js

Coding manually? see the guide

Qwen: Qwen3 4B

This model is no longer available.

Add AI to your application with Puter.js.

Explore Other Models

Model Card

Qwen3 4B is a small dense model in Alibaba's Qwen3 family, released in April 2025. It supports hybrid thinking modes, switching between step-by-step reasoning for math, coding, and logic and a faster non-thinking mode for general dialogue. The mode can be toggled per request, including with /think and /no_think tags in prompts.

The Qwen team reports that it rivals the much larger Qwen2.5-72B-Instruct, though independent evaluations have been more mixed. It handles 119 languages and dialects and supports tool calling, with the Qwen-Agent framework recommended for agent workloads.

Native context is 32K tokens, extendable to 131K with YaRN scaling. It fits developers who want reasoning and multilingual coverage at low cost, such as high-volume chat, translation, or lightweight agent tasks.

Context Window 131K

tokens

Max Output 8K

tokens

Input Cost $0.11

per million tokens

Output Cost $0.42

per million tokens

Tool Use Yes

 

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

Find other Qwen models →

Chat

Qwen3.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.

Chat

Qwen3.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.

Chat

Qwen3.6 27B

Qwen3.6 27B is a dense 27-billion-parameter multimodal model from Alibaba's Qwen team, purpose-built for agentic coding and repository-level reasoning. It scores 77.2% on SWE-bench Verified and 59.3% on Terminal-Bench 2.0, outperforming the previous-generation Qwen3.5-397B-A17B across all major coding benchmarks despite being far smaller. It natively supports text, image, and video inputs with a 262K-token context window, extendable to 1M tokens. A standout feature is Thinking Preservation, which retains reasoning traces across conversation turns — reducing redundant computation in multi-step agent loops. The model uses a hybrid attention architecture combining Gated DeltaNet with traditional self-attention. Ideal for developers building coding agents, multi-turn tool-use workflows, or frontend generation pipelines.

Frequently Asked Questions

How do I use Qwen3 4B?

Qwen3 4B is no longer available through Puter.js. Explore other AI models for alternatives.

What is the pricing for Qwen3 4B?
Qwen3 4B costs $0.11 per 1M input tokens and $0.42 per 1M output tokens.
Price per 1M tokens
Input$0.11
Output$0.42
Who created Qwen3 4B?

Qwen3 4B was created by Qwen and released on Apr 29, 2025.

What is the context window of Qwen3 4B?

Qwen3 4B supports a context window of 131K tokens. For reference, that is roughly equivalent to 262 pages of text.

What is the max output length of Qwen3 4B?

Qwen3 4B can generate up to 8K tokens in a single response.

Does Qwen3 4B support tool use (function calling)?

Yes, Qwen3 4B supports tool use (function calling), allowing it to interact with external tools, APIs, and data sources as part of its response flow.

Does it work with React / Vue / Vanilla JS / Node / etc.?

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