Qwen 3.5 4B
A compact vision and language model for trying the API and prototyping with text or images.
qwen/qwen3.5-4b-freeBenchmarks
Artificial Analysis · Reasoning
- CodeTerminal-Bench 2.1
- 25.8%
- ReasoningHumanity’s Last Exam
- 9.9%
- Long contextAA-LCR v1.1
- 63%
Capabilities
- Tool Calling (supported)
- JSON Mode (supported)
- Function Calling (supported)
- Vision (supported)
- Streaming (supported)
- Reasoning (supported)
- Structured outputs (supported)
Model details
- Model size
- 4B parameters
- Context window
- 131k
- Precision
- BF16
- Modalities
- Vision · Text Generation
Pricing
USD per 1M tokens
- Input
- $0.00
- Output
- $0.00
Availability
- On-demand API
- Available
- Private deployment
- By request
- On-prem Enterprise
- By request
- Reserved capacity
- By request
Overview
Qwen 3.5 4B is a small vision and language model with free on-demand input and output on Mixlayer. It is a practical first model for testing how an application sends conversations, attaches an image, or handles a tool result.
Keep early tasks easy to inspect. A screenshot with one question or a short conversation with one expected action makes it straightforward to distinguish a problem in your integration from a poor model answer.
Mixlayer serves this model with a context window of 131,072 tokens shared by the input and generated output.
Reasoning controls
Thinking is on by default. Set reasoning_effort to none for direct answers.
Read the model guideUse Cases
In-app help from screenshots
Answer “Where do I change the units?” from a screenshot of the settings panel. The assistant can name the visible control and describe the next click. Qwen evaluates the 4B checkpoint on locating interface elements with ScreenSpot Pro.
Math tutoring with diagrams
Give a learner a hint on a geometry problem using the diagram and their attempted solution. The model can identify the marked angles and explain one relationship the learner can check against the drawing. Qwen evaluates visual math on MathVision and MathVista.
Visual inventory checks
A board-game library can photograph the pieces in a returned tray and use 4B to count the visible pawns by color. Staff can check discrepancies against the inventory card before the next loan. Qwen reports visual counting results for this checkpoint on CountBench.
Quick Start
Create an API key and export it as MIXLAYER_API_KEY to send a request.
curl https://mixlayer.ai/v1/chat/completions \
-H "Authorization: Bearer $MIXLAYER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3.5-4b-free",
"messages": [{"role": "user", "content": "Hello!"}]
}'FAQ
Should I use Chat Completions or Responses for a multi-turn conversation?
Use Chat Completions if your app already keeps the transcript. Send the earlier messages with each new turn. Use Responses if you want Mixlayer to carry the conversation forward. When your organization allows storage, set store to true and pass the resulting ID as previous_response_id on the next request. Compare conversation handling
Why did the reply stop before it finished?
Input and generated output share a context window of 131,072 tokens. Chat history and tool results use part of that space. On reasoning models, thinking also uses the output allowance, so a short visible answer can still exhaust it. If Chat Completions reports length in finish_reason, check both limits before retrying. Trim earlier messages or raise the output cap if there is room. How reasoning uses the output budget
How is Qwen 3.5 4B billed?
This on-demand model charges zero for input and output tokens. You can use it without buying prepaid credits. Your organization’s rate limits still apply. Mixlayer pricing
Can I look up the original input later to investigate a bad result?
By default, Mixlayer processes the input in memory and discards it and the result after inference. Keep the examples you need for evaluation in your own application. Your organization can also enforce zero retention for features that offer optional storage. Mixlayer’s retention controls
Why am I getting HTTP 429 on the free 4B model?
Free requests still count toward your organization’s request and token limits. Mixlayer reserves room for the prompt and the requested output when it admits a request. If you only need a short label, set a realistic output cap. On a 429, wait at least as long as the retry-after header specifies. How Mixlayer rate limits work
Can I try 4B on a local screenshot without uploading the file to a website?
Yes. In Chat Completions, pass a base64 data: URL as the image’s image_url alongside your question. For a quick check, ask for an exact label from the screenshot and compare the answer with the original. Sending an image as a data URL
What is a useful first tool-calling test on the free model?
Give 4B one read-only function, such as an order lookup that takes an order number. Ask about a known order and check the name and arguments it returns. Have your app run the lookup and send the result back with its tool_call_id. This tests the whole exchange before you try a larger model. Chat Completions tool-call example