{"id":"qwen3-5-4b","object":"model","created":1772409600,"owned_by":"alibaba","display_name":"Qwen3.5 4B","author":"alibaba","author_name":"Alibaba Cloud","author_logo":"https://media.empiriolabs.ai/provider-logos/alibaba.png","provider":"alibaba","provider_name":"Alibaba Cloud","provider_logo":"https://media.empiriolabs.ai/provider-logos/alibaba.png","description":"Qwen3.5 4B is a low-cost multimodal reasoning model with 256K context, image and video input, function tools, and structured output.","aliases":["qwen3.5-4b"],"modality":"multimodal","type":"chat","category":"text","category_label":null,"modality_label":null,"modalities":["multimodal","text","image","video"],"input_modalities":["text","image","video"],"output_modalities":["text"],"features":["reasoning","vision","video","function_calling","cache","multimodal","json_mode","logprobs"],"structured_output":"json_schema","native_inference":true,"weight_precision":"FP8 weights + FP8 KV","hugging_face_id":"Qwen/Qwen3.5-4B","hugging_face_revision":"851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a","datacenters":[{"country_code":"EE"}],"license_credit":null,"batch_supported":null,"batch_discount_pct":null,"context_window":262144,"context_length":262144,"max_output_tokens":32768,"model_released_at":"2026-03-02","is_new":false,"is_featured":false,"discount":null,"capabilities":{"streaming":true,"system_prompt":true,"web_search":false,"images":true,"audio":false,"video":true,"three_d":false,"reasoning":true},"supported_parameters":[{"name":"temperature","label":"Temperature","type":"number","description":"Sampling temperature. 0 is deterministic and 2 is maximum randomness.","required":false,"metadata":{},"default":0.7,"min":0,"max":2},{"name":"top_p","label":"Top P","type":"number","description":"Nucleus sampling probability mass. Lower values make outputs more focused.","required":false,"metadata":{},"default":0.95,"min":0.01,"max":1},{"name":"max_tokens","label":"Max Tokens","type":"number","description":"Maximum output tokens. When omitted: 8,192 at low and medium reasoning effort, 9,216 at high, and 32,768 at max or with thinking off.","required":false,"metadata":{},"default":8192,"min":1,"max":32768},{"name":"stop","label":"Stop","type":"string","description":"Up to 4 strings where the model will stop generating further tokens.","required":false,"metadata":{"control":"stop-sequences"}},{"name":"enable_thinking","label":"Enable Thinking","type":"boolean","description":"Enable reasoning before answering.","required":false,"metadata":{"ui":{"control":"toggle","section":"Model"}},"default":true},{"name":"reasoning_effort","label":"Reasoning Effort","type":"enum","description":"Reasoning effort level. none disables thinking. low, medium, high, and max set bounded thinking budgets sized to the selected model.","required":false,"metadata":{"ui":{"control":"segmented","section":"Model"}},"default":"medium","options":["none","low","medium","high","max"]},{"name":"thinking_budget","label":"Thinking Budget","type":"number","description":"Maximum tokens reserved for reasoning when thinking is enabled. When max_tokens is lower, room is kept for the answer; a very low max_tokens can be spent entirely on reasoning.","required":false,"metadata":{"ui":{"step":1,"control":"slider","section":"Model"},"visible_when":{"op":"eq","field":"enable_thinking","value":true},"clear_when_hidden":true},"default":4096,"min":1024,"max":32768},{"name":"top_k","label":"Top K","type":"number","description":"Limit sampling to the top K candidate tokens when supported.","required":false,"metadata":{"ui":{"control":"number","section":"Advanced sampling"}},"default":20,"min":1},{"name":"min_p","label":"Min P","type":"number","description":"Minimum probability threshold for token sampling.","required":false,"metadata":{"ui":{"step":0.01,"control":"slider","section":"Advanced sampling"}},"default":0,"min":0,"max":1},{"name":"frequency_penalty","label":"Frequency Penalty","type":"number","description":"Penalty based on how often a token has already appeared.","required":false,"metadata":{"ui":{"step":0.01,"control":"slider","section":"Advanced sampling"}},"default":0,"min":-2,"max":2},{"name":"presence_penalty","label":"Presence Penalty","type":"number","description":"Penalty for tokens that already appeared in the generated text.","required":false,"metadata":{"ui":{"step":0.01,"control":"slider","section":"Advanced sampling"}},"default":0,"min":-2,"max":2},{"name":"repetition_penalty","label":"Repetition Penalty","type":"number","description":"Higher values discourage repeated phrasing.","required":false,"metadata":{"ui":{"step":0.01,"control":"slider","section":"Advanced sampling"}},"default":1,"min":0.1},{"name":"seed","label":"Seed","type":"number","description":"Optional random seed for reproducible sampling.","required":false,"metadata":{"ui":{"control":"number","section":"Advanced sampling"}},"min":0,"max":2147483647},{"name":"logprobs","label":"Logprobs","type":"boolean","description":"Return token log probabilities when supported.","required":false,"metadata":{"ui":{"control":"toggle","section":"Debug"}},"default":false},{"name":"top_logprobs","label":"Top Logprobs","type":"number","description":"Return up to this many top token log probabilities.","required":false,"metadata":{"ui":{"control":"number","section":"Debug"},"visible_when":{"op":"eq","field":"logprobs","value":true},"clear_when_hidden":true},"min":0,"max":20},{"name":"logit_bias","label":"Logit Bias","type":"string","description":"Bias token IDs by adding positive or negative values before sampling.","required":false,"metadata":{"ui":{"control":"json","section":"Sampling"}}},{"name":"tools","label":"Tools","type":"string","description":"OpenAI-compatible function tool definitions.","required":false,"metadata":{"ui":{"control":"json","section":"Tools"}}},{"name":"tool_choice","label":"Tool Choice","type":"string","description":"OpenAI-compatible function tool selection.","required":false,"metadata":{"ui":{"control":"json","section":"Tools"}}},{"name":"response_format","label":"Structured Output","type":"enum","description":"Constrain the output to valid JSON. Use JSON mode for any JSON object, or supply a JSON Schema to force an exact response shape.","required":false,"metadata":{"ui":{"control":"json","section":"Output"},"control":"structured-output","so_tier":"json_schema"}},{"name":"web_search_linkup","label":"Web Search (Linkup)","type":"boolean","description":"Optional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as additional context. Adds $0.013 per call when invoked on top of the model's normal token cost. Disabled by default.","required":false,"metadata":{"group":"tools","powered_by":"linkup","addon_cost_usd":0.013,"gateway_injected":true},"default":false},{"name":"disable_formatting","label":"Disable Formatting","type":"boolean","description":"Return the answer without the Sources list that web search adds.","required":false,"metadata":{"group":"tools"},"default":false}],"supported_endpoints":["POST /v1/chat/completions","POST /v1/responses","POST /v1/messages","POST /v1/completions","POST /v1beta/models/qwen3-5-4b:generateContent"],"pricing":{"prompt":"0.00000004","completion":"0.00000007","image":"0","request":"0","input_cache_read":"0.00000002"},"pricing_rows":[{"spec":"per 1M prompt tokens","label":"Input","value":"$0.04"},{"spec":"per 1M generated tokens","label":"Output","value":"$0.07"},{"spec":"per 1M cached input tokens","label":"Implicit cache read","value":"$0.02"},{"spec":"per call when invoked","label":"Web Search (Linkup)","value":"$0.013"}],"unit_pricing":[{"unit":"1m_tokens","usd":"0.04","label":"Input"},{"unit":"1m_tokens","usd":"0.07","label":"Output"},{"unit":"1m_tokens","usd":"0.02","label":"Implicit cache read"},{"unit":"call","usd":"0.013","label":"Web Search (Linkup)"}],"limits":{"note":"Supports text, image, and video input, streaming, function tools, structured JSON output, seed control, and thinking mode on by default. Use reasoning_effort or thinking_budget for bounded thinking, or enable_thinking=false for direct answers. Automatic cache reads are billed at the cached-input rate when reported by the model service. Explicit cache controls are not supported."},"notes":null,"chat_url":"https://platform.empiriolabs.ai/dashboard/playground?model=qwen3-5-4b","api_url":"https://docs.empiriolabs.ai/models/qwen3-5-4b","logo":"https://media.empiriolabs.ai/model-logos/qwen.png","default_params":{"temperature":0.7,"top_p":0.95,"max_tokens":8192,"enable_thinking":true,"reasoning_effort":"medium","thinking_budget":4096,"top_k":20,"min_p":0,"frequency_penalty":0,"presence_penalty":0,"repetition_penalty":1,"logprobs":false,"web_search_linkup":false,"disable_formatting":false},"status":"available"}