Back to models
Qwen3.5-2B
Qwen3.5-2B is Alibaba Qwen's compact 2B open-weight vision-language model supporting 256K context and switchable thinking modes, balancing low VRAM usage with capable coding, OCR, and multilingual reasoning.
What you can do
- Desktop and edge multimodal assistant
- Document screenshot extraction and summary
- Lightweight scripting and code completion
Input & output
- Input
- Text prompts, document screenshots, and images across 200+ languages
- Output
- Multilingual text responses, structured extractions, and short scripts
Try a prompt like this
Summarize the key error messages in this terminal screenshot and write a bash script to check disk inode usage and rotate stale container logs.
Things to know
Requires ~5GB VRAM in BF16 (2–3GB in INT4/GGUF) under Apache-2.0; complex multi-file coding or subtle visual spatial counting may require a 9B+ model.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
Qwen/Qwen3.5-2B
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="Qwen/Qwen3.5-2B",
messages=[{"role": "user", "content": "Summarize the key error messages in this terminal screenshot and write a bash script to check disk inode usage and rotate stale container logs."}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide