Qwen3.5 4B API

Qwen3.5 4B는 256K 컨텍스트, 이미지 및 비디오 입력, 기능 도구 및 구조화 된 출력을 가진 저비용 멀티모드 소싱 모델입니다.

Alibaba Cloud텍스트 생성256K 컨텍스트출시 Mar 2, 2026네이티브 추론신규

About Qwen3.5 4B

Qwen3.5 4B는 256K 컨텍스트, 이미지 및 비디오 입력, 기능 도구 및 구조화 된 출력을 가진 저비용 멀티모드 소싱 모델입니다.

텍스트, 이미지 및 비디오 입력, 스트리밍, 기능 도구, 구조 JSON 출력, 종자 제어 및 기본으로 생각 모드를 지원합니다. reasoning effort 또는 thought budget for bounded thought, or enable thinking=false for direct Answer. 자동 캐시 읽음은 모델 서비스에 의해 보고될 때 캐시 입력 비율에 청구됩니다. Explicit 캐시 컨트롤은 지원되지 않습니다.

다른 이름 Alibaba Cloud Qwen3.5 4B, Qwen3.5-4B, qwen3-5-4b

reasoningvisionvideofunction callingstructured outputcachemultimodaljson modelogprobs

Qwen3.5 4B specs

모델 ID
qwen3-5-4b
제공자
Alibaba Cloud
카테고리
텍스트 생성
Released
Mar 2, 2026
컨텍스트 창
256K tokens
최대 출력
32,768 tokens
입력
TextImageVideo
출력
Text
엔드포인트
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages
POST /v1/completions

Qwen3.5 4B API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

유형
사양
요금
이름 *
1M 신속한 토큰 당
$0.04
제품정보
1M 생성 토큰
$0.07
Implicit 캐시 읽기
1M 캐시된 입력 토큰 당
$0.02
Web Search (Linkup)
per call when invoked
$0.013
전체 가격 페이지에서 비교

How to call the Qwen3.5 4B API

Qwen3.5 4B serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id qwen3-5-4b. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-5-4b",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="qwen3-5-4b",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full Qwen3.5 4B API reference

Qwen3.5 4B API parameters

Request parameters supported by the Qwen3.5 4B API on EmpirioLabs. Defaults apply when a field is omitted.

파라미터유형기본범위 / 값설명
temperaturenumber0.70 to 2Sampling temperature. 0 is deterministic and 2 is maximum randomness.
top_pnumber0.950 to 1Nucleus sampling probability mass. Lower values make outputs more focused.
max_tokensinteger40961 to 32768Maximum output tokens.
stopstring--Up to 4 strings where the model will stop generating further tokens.
reasoning_effortenummediumnone, low, medium, high, maxReasoning effort. none disables thinking; low, medium, high, and max set bounded thinking budgets.
enable_thinkingbooleantrue-Enable the model reasoning channel before final output.
thinking_budgetinteger40961024 to 32768Maximum thinking tokens before the final answer. If max_tokens is lower, the service reserves room for the answer.
top_kinteger201 to 200Limit sampling to the top K candidate tokens when supported.
min_pnumber00 to 1Minimum probability threshold for token sampling.
presence_penaltynumber0-2 to 2Penalty for tokens that already appeared in the generated text.
frequency_penaltynumber0-2 to 2Penalty based on how often a token has already appeared.
repetition_penaltynumber10.1 to 2Penalty used by SGLang to reduce repeated text.
seedinteger-0 to 2147483647Optional random seed for reproducible sampling.
logprobsbooleanfalse-Return token log probabilities when supported.
8 more parameters in the docs

알아두면 좋은 점

텍스트, 이미지 및 비디오 입력, 스트리밍, 기능 도구, 구조 JSON 출력, 종자 제어 및 기본으로 생각 모드를 지원합니다. reasoning effort 또는 thought budget for bounded thought, or enable thinking=false for direct Answer. 자동 캐시 읽음은 모델 서비스에 의해 보고될 때 캐시 입력 비율에 청구됩니다. Explicit 캐시 컨트롤은 지원되지 않습니다.

Qwen3.5 4B API: common questions

How much does the Qwen3.5 4B API cost?

On EmpirioLabs, Qwen3.5 4B is billed pay as you go: 이름 * $0.04 1M 신속한 토큰 당; 제품정보 $0.07 1M 생성 토큰; Implicit 캐시 읽기 $0.02 1M 캐시된 입력 토큰 당. The live rate card on this page always matches what the API charges.

What is the context window of Qwen3.5 4B?

Qwen3.5 4B supports a 256K-token context window with up to 32,768 output tokens per response.

Is the Qwen3.5 4B API OpenAI-compatible?

Yes. Qwen3.5 4B serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to qwen3-5-4b.

Can I try Qwen3.5 4B in the browser before integrating?

Yes. The EmpirioLabs playground runs Qwen3.5 4B in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Qwen3.5 4B API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.