
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.
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
glm-5-4/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/glm-5-4:generateContentglm-5.4zai/glm-5.4zhipu/glm-5.4أسعار الدفع حسب الاستخدام مباشرة من كتالوج EmpirioLabs. يمكنك أيضًا اختيار خطة تتضمن حصص استخدام أسبوعية.
يقدم GLM 5.4 واجهة Chat Completions المتوافقة مع OpenAI. وجّه أي OpenAI SDK إلى https://api.empiriolabs.ai/v1 بمفتاح EmpirioLabs API الخاص بك واستخدم معرّف النموذج glm-5-4. احصل على مفتاح API من لوحة تحكم EmpirioLabs.
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."}
]
}'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 على EmpirioLabs. تُطبق القيم الافتراضية عند حذف أي حقل.
| المعامل | النوع | الافتراضي | النطاق / القيم | الوصف |
|---|---|---|---|---|
| max_tokens | integer | 65536 | 1 إلى 131072 | Maximum number of output tokens to generate. |
| temperature | number | 1 | 0 إلى 1 | Controls randomness. Lower values make responses more deterministic. |
| top_p | number | 0.95 | 0.01 إلى 1 | Nucleus sampling cutoff. |
| reasoning_effort | enum | max | low, high, max | This 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_thinking | boolean | false | - | 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_sample | boolean | true | - | Enable sampling. Turn off for greedy deterministic output (temperature and top_p are ignored). |
| tool_web_search | boolean | false | - | Enable built-in web search. Adds $0.033 per request when used. |
| search_recency_filter | enum | noLimit | oneDay, oneWeek, oneMonth, oneYear, noLimit | Limit web search results to a recency window. |
| count | integer | 10 | 1 إلى 50 | Number of web search results to retrieve when web search is enabled. |
| search_domain_filter | string | - | - | Restrict web search to a specific domain. |
| search_prompt | string | - | - | Optional prompt used to summarize retrieved web search results. |
| search_result | boolean | true | - | Return web search result metadata in the response when web search is enabled. |
| tool_stream | boolean | false | - | Stream function-call arguments incrementally when streaming. |
| tools | array | [] | - | 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. |
إعلانات واختبارات مطالبات ومقارنات تتناول هذا النموذج.
على EmpirioLabs، تتم فوترة GLM 5.4 حسب الاستخدام: المدخلات $1.40 per 1M prompt tokens; المخرجات $4.40 per 1M generated tokens; Web search $0.033 per request. يمكنك أيضًا اختيار خطة تتضمن حصص استخدام أسبوعية. جدول الأسعار المباشر في هذه الصفحة يطابق دائمًا ما تحتسبه الواجهة.
يقبل GLM 5.4 المدخلات نص, صورة, فيديو, ملف ويعيد نص.
يدعم GLM 5.4 نافذة سياق من 1M رمز، مع ما يصل إلى 131,072 رمز إخراج لكل استجابة.
نعم. يقدم GLM 5.4 واجهة Chat Completions المتوافقة مع OpenAI، لذا تعمل حزم OpenAI SDK الحالية بتوجيه base_url إلى https://api.empiriolabs.ai/v1 وتعيين معرّف النموذج إلى glm-5-4.
أرسل glm-5-4 كقيمة model في طلبك. تعمل المعرّفات البديلة glm-5.4, zai/glm-5.4, zhipu/glm-5.4 أيضًا.
أصدرت Z.ai نموذج GLM 5.4 في 2 ديسمبر 2026.
يُقدَّم GLM 5.4 على EmpirioLabs من Singapore.
نعم. يشغّل Playground EmpirioLabs نموذج GLM 5.4 في المتصفح بنفس المعلمات التي تتيحها الواجهة، لتجربة المطالبات قبل كتابة الكود.
أنشئ حساب EmpirioLabs ثم أنشئ مفتاحًا من API Keys في لوحة التحكم. الفوترة برصيد الدفع حسب الاستخدام، فلا تدفع إلا مقابل الطلبات التي تنفذها. يمكنك أيضًا اختيار خطة تتضمن حصص استخدام أسبوعية.
تحقق من تسعيرنا أو تواصل إذا كنت ترغب في نشر نموذجك الخاص على مجموعتنا.