{"id":"glm-5-1","object":"model","created":1775520000,"owned_by":"zhipu","display_name":"GLM 5.1","author":"zhipu","author_name":"Z.ai","author_logo":"https://media.empiriolabs.ai/provider-logos/zhipu.png","provider":"zhipu","provider_name":"Z.ai","provider_logo":"https://media.empiriolabs.ai/provider-logos/zhipu.png","description":"Long-context Zhipu AI reasoning model with 202K context, 128K output, tool calling, structured output, and cache support.","aliases":[],"modality":"text","type":"reasoning","category":"text","category_label":null,"modality_label":null,"modalities":["text"],"input_modalities":["text"],"output_modalities":["text"],"features":["reasoning","function_calling","cache"],"structured_output":"json_object","native_inference":false,"weight_precision":null,"hugging_face_id":null,"hugging_face_revision":null,"license_credit":null,"batch_supported":null,"batch_discount_pct":null,"context_window":202745,"context_length":202745,"max_output_tokens":128000,"model_released_at":"2026-04-07","is_new":false,"is_featured":true,"discount":{"label":"Save up to 41%","percent":41},"capabilities":{"streaming":true,"system_prompt":true,"web_search":false,"images":false,"audio":false,"video":false,"three_d":false,"reasoning":true},"supported_parameters":[{"name":"max_tokens","label":"Max Tokens","type":"number","description":"Maximum output tokens. When omitted, the model's own default applies.","required":false,"metadata":{"ui":{"control":"slider","section":"Generation"}},"min":1,"max":128000},{"name":"temperature","label":"Temperature","type":"number","description":"Sampling temperature. 0 = deterministic, 1.99 = maximum randomness.","required":false,"metadata":{"ui":{"step":0.01,"control":"slider","section":"Generation"}},"default":1,"min":0,"max":1.99},{"name":"top_p","label":"Top P","type":"number","description":"Nucleus sampling probability mass. Lower = more focused.","required":false,"metadata":{"ui":{"step":0.01,"control":"slider","section":"Generation"}},"default":0.95,"min":0,"max":1},{"name":"top_k","label":"Top K","type":"number","description":"Limits sampling to the top K tokens.","required":false,"metadata":{"ui":{"control":"slider","section":"Generation"}},"default":20,"min":1,"max":100},{"name":"repetition_penalty","label":"Repetition Penalty","type":"number","description":"Penalizes repeated tokens.","required":false,"metadata":{"ui":{"step":0.01,"control":"slider","section":"Generation"}},"default":1,"min":0.1},{"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"},"translate_effort_to_budget":true},"default":"medium","options":["none","low","medium","high","max"]},{"name":"enable_thinking","label":"Enable Thinking","type":"boolean","description":"Allow the model to reason before answering. With response_format, the model answers without reasoning unless the request sets enable_thinking.","required":false,"metadata":{"ui":{"control":"toggle","section":"Reasoning"}},"default":true},{"name":"thinking_budget","label":"Thinking Budget","type":"number","description":"Maximum tokens reserved for reasoning when thinking is enabled.","required":false,"metadata":{"ui":{"control":"slider","section":"Reasoning","show_when":{"enable_thinking":true}}},"default":32768,"min":1,"max":38912},{"name":"tool_stream","label":"Tool Stream","type":"boolean","description":"Stream function-call arguments incrementally when streaming.","required":false,"metadata":{"ui":{"control":"toggle","section":"Tools"}},"default":false},{"name":"tools","label":"Tools","type":"string","description":"OpenAI-compatible function calling tool definitions.","required":false,"metadata":{"ui":{"control":"json","section":"Tools","hide_in_playground":true}},"default":[]},{"name":"tool_choice","label":"Tool Choice","type":"string","description":"OpenAI-compatible tool choice control.","required":false,"metadata":{"ui":{"control":"json","section":"Tools","hide_in_playground":true}}},{"name":"parallel_tool_calls","label":"Parallel Tool Calls","type":"boolean","description":"Allow multiple tool calls in a single assistant turn. When omitted, the model's own default applies.","required":false,"metadata":{"ui":{"control":"toggle","section":"Tools"}}},{"name":"stop","label":"Stop","type":"string","description":"Optional stop sequences.","required":false,"metadata":{"ui":{"control":"tags","section":"Generation","hide_in_playground":true},"control":"stop-sequences"}},{"name":"response_format","label":"Structured Output","type":"enum","description":"Return the output as a valid JSON object (JSON mode). Describe the fields you want in your prompt.","required":false,"metadata":{"ui":{"control":"json","section":"Structured Output","hide_in_playground":true},"control":"structured-output","so_tier":"json_object"}},{"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 /v1beta/models/glm-5-1:generateContent"],"pricing":[{"prompt":"0.000000825","completion":"0.000003301","image":"0","request":"0","input_cache_read":"0.000000165"},{"prompt":"0.0000011","completion":"0.000003851","image":"0","request":"0","input_cache_read":"0.00000022","min_context":32000}],"pricing_rows":[{"spec":"per 1M prompt tokens","label":"Input","value":"<=32K $0.825 (was $1.40); 32K-200K $1.10 (was $1.40)"},{"spec":"per 1M generated tokens","label":"Output","value":"<=32K $3.301 (was $4.40); 32K-200K $3.851 (was $4.40)"},{"spec":"per 1M cached input tokens","label":"Implicit cache read","value":"<=32K $0.165 (was $0.26); 32K-200K $0.22 (was $0.26)"},{"spec":"per call when invoked","label":"Web Search (Linkup)","value":"$0.013"}],"unit_pricing":[{"unit":"call","usd":"0.013","label":"Web Search (Linkup)"}],"limits":null,"notes":"Rates are tiered by prompt length. Web search, batches, prefix continuation, and fine-tuning are not supported.","chat_url":null,"api_url":"https://docs.empiriolabs.ai/models/glm-5-1","logo":"https://media.empiriolabs.ai/model-logos/glm.png","default_params":{"temperature":1,"top_p":0.95,"top_k":20,"repetition_penalty":1,"reasoning_effort":"medium","enable_thinking":true,"thinking_budget":32768,"tool_stream":false,"tools":[],"web_search_linkup":false,"disable_formatting":false},"status":"available"}