Back to models
Qwen3.5-4B
Qwen3.5-4B is Alibaba Qwen's 4B open-weight unified vision-language model featuring 256K context and hybrid thinking modes, well suited for consumer-GPU self-hosting in coding, visual QA, and tool calling.
What you can do
- Consumer-GPU private RAG assistant
- Multilingual chart and document QA
- Automated function-calling workflows
Input & output
- Input
- Text instructions, images, charts, and long-context documents up to 256K tokens
- Output
- Reasoning traces, tool-call payloads, structured summaries, and code
Try a prompt like this
Compare the latency percentiles shown in the attached benchmark chart against our SLA table, and draft a concise optimization checklist for the API gateway.
Things to know
Requires ~9GB VRAM in BF16 (fits easily on 12GB–16GB consumer GPUs; ~4GB quantized) under Apache-2.0; verify factual citations when summarizing dense 100K+ token documents.
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-4B
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-4B",
messages=[{"role": "user", "content": "Compare the latency percentiles shown in the attached benchmark chart against our SLA table, and draft a concise optimization checklist for the API gateway."}],
)
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