GLM 5.4 एपीआई

Flagship coding and agentic model with a 1M token context, 128K output, image, video, and file input, always-on reasoning at low, high, or max effort, native web search, and tool calling.

Z.ai टेक्स्ट जनरेशन 1M कॉन्टेक्स्ट रिलीज 2 दिस॰ 2026 Singapore स्वामित्व वाला एंडपॉइंट नया

GLM 5.4 के बारे में

Flagship coding and agentic model with a 1M token context, 128K output, image, video, and file input, always-on reasoning at low, high, or max effort, native web search, and tool calling.

Notes: - Context window: 1M tokens - Maximum output: 128K tokens - Accepts text, image, video, and file input - Always reasons; thinking cannot be disabled - Reasoning effort: low, high, or max (max recommended for complex coding) - A request for a different effort, or to turn thinking off, is served at the nearest supported level - Built-in web search adds $0.033 per request when used - Supports function calling (tool choice auto or none), structured output (JSON mode), and streaming

इस नाम से भी जाना जाता है Z.ai GLM 5.4

reasoning vision video understanding document understanding function calling web search

GLM 5.4 की विशेषताएं

मॉडल ID
glm-5-4
निर्माता
Z.ai
श्रेणी
टेक्स्ट जनरेशन
रिलीज
2 दिस॰ 2026
कॉन्टेक्स्ट विंडो
1M टोकन
अधिकतम आउटपुट
1,31,072 टोकन
इनपुट
टेक्स्टइमेजवीडियोफ़ाइल
आउटपुट
टेक्स्ट
संरचित आउटपुट
JSON मोड
रीजन
Singapore
एंडपॉइंट
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/glm-5-4:generateContent
वैकल्पिक मॉडल ID
glm-5.4zai/glm-5.4zhipu/glm-5.4

GLM 5.4 API की कीमतें

EmpirioLabs कैटलॉग से लाइव pay-as-you-go दरें। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं।

प्रकार
स्पेक
दर
इनपुट
per 1M prompt tokens
$1.40
आउटपुट
per 1M generated tokens
$4.40
Web search
per request
$0.033
पूरे कीमत पेज पर तुलना करें

GLM 5.4 API को कैसे कॉल करें

GLM 5.4 OpenAI-संगत Chat Completions API देता है। किसी भी OpenAI SDK को अपनी EmpirioLabs API key के साथ https://api.empiriolabs.ai/v1 पर सेट करें और model id glm-5-4 उपयोग करें। EmpirioLabs डैशबोर्ड से API key प्राप्त करें।

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5-4",
    "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="glm-5-4",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
GLM 5.4 API का पूरा संदर्भ

GLM 5.4 API के पैरामीटर

EmpirioLabs पर GLM 5.4 API द्वारा समर्थित request पैरामीटर। फ़ील्ड छोड़ने पर डिफ़ॉल्ट मान लागू होते हैं।

पैरामीटरप्रकारडिफॉल्टरेंज / मानविवरण
max_tokensinteger655361 से 131072Maximum number of output tokens to generate.
temperaturenumber10 से 1Controls randomness. Lower values make responses more deterministic.
top_pnumber0.950.01 से 1Nucleus sampling cutoff.
reasoning_effortenummaxlow, high, maxThis model always reasons and cannot be turned off. low is lightweight, high is enhanced, and max is deep reasoning. max is recommended for complex coding.
preserve_thinkingbooleanfalse-Include the reasoning of earlier assistant turns in the model's input on /v1/chat/completions. Return each turn's reasoning unchanged in that assistant message's...
do_samplebooleantrue-Enable sampling. Turn off for greedy deterministic output (temperature and top_p are ignored).
tool_web_searchbooleanfalse-Enable built-in web search. Adds $0.033 per request when used.
search_recency_filterenumnoLimitoneDay, oneWeek, oneMonth, oneYear, noLimitLimit web search results to a recency window.
countinteger101 से 50Number of web search results to retrieve when web search is enabled.
search_domain_filterstring--Restrict web search to a specific domain.
search_promptstring--Optional prompt used to summarize retrieved web search results.
search_resultbooleantrue-Return web search result metadata in the response when web search is enabled.
tool_streambooleanfalse-Stream function-call arguments incrementally when streaming.
toolsarray[]-OpenAI-compatible function calling tool definitions. A web_search tool sent here keeps its own search options as written, with count from 1 to 50.
डॉक्स में 3 और पैरामीटर

GLM 5.4 पर ब्लॉग पोस्ट

घोषणाएं, prompt परीक्षण और तुलनाएं जिनमें यह मॉडल शामिल है।

GLM 5.4 API: आम सवाल

GLM 5.4 API की कीमत कितनी है?

EmpirioLabs पर GLM 5.4 का बिल उपयोग के अनुसार बनता है: इनपुट $1.40 per 1M prompt tokens; आउटपुट $4.40 per 1M generated tokens; Web search $0.033 per request। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं। इस पेज की लाइव दर तालिका हमेशा API की वास्तविक बिलिंग से मेल खाती है।

GLM 5.4 कौन से inputs और outputs सपोर्ट करता है?

GLM 5.4 input के रूप में टेक्स्ट, इमेज, वीडियो, फ़ाइल लेता है और टेक्स्ट लौटाता है।

GLM 5.4 की context window कितनी है?

GLM 5.4 1M टोकन की context window समर्थित करता है, प्रति उत्तर अधिकतम 1,31,072 आउटपुट टोकन के साथ।

क्या GLM 5.4 API OpenAI-संगत है?

हां। GLM 5.4 OpenAI-संगत Chat Completions API देता है, इसलिए मौजूदा OpenAI SDKs base_url को https://api.empiriolabs.ai/v1 पर सेट करके और model id glm-5-4 रखकर काम करते हैं।

GLM 5.4 का model ID क्या है?

अपनी request में model के रूप में glm-5-4 भेजें। वैकल्पिक IDs glm-5.4, zai/glm-5.4, zhipu/glm-5.4 भी काम करते हैं।

GLM 5.4 कब रिलीज़ हुआ?

Z.ai ने GLM 5.4 को 2 दिस॰ 2026 को रिलीज़ किया।

GLM 5.4 कहां से सर्व किया जाता है?

EmpirioLabs पर GLM 5.4 Singapore से सर्व किया जाता है।

क्या मैं इंटीग्रेट करने से पहले ब्राउज़र में GLM 5.4 आज़मा सकता हूं?

हां। EmpirioLabs playground ब्राउज़र में GLM 5.4 को उन्हीं पैरामीटरों के साथ चलाता है जो API देता है, ताकि आप कोड लिखने से पहले prompt आज़मा सकें।

GLM 5.4 की API key कैसे मिलेगी?

EmpirioLabs खाता बनाएं, फिर डैशबोर्ड में API Keys में key जनरेट करें। बिलिंग pay-as-you-go क्रेडिट से होती है, इसलिए आप सिर्फ अपनी requests का भुगतान करते हैं। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं।

GLM 5.4 की दूसरे मॉडलों से तुलना करें

सभी मॉडल तुलनाएं

बेहतर समापन बिंदुओं का उपयोग करने के लिए तैयार हैं?

हमारे मूल्य निर्धारण की जाँच करें या यदि आप चाहते हैं कि आपका अपना मॉडल हमारे स्टैक पर तैनात किया जाए, तो पहुंचें।