GLM 5.4 API

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 컨텍스트 출시 2026년 12월 2일 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
카테고리
텍스트 생성
출시
2026년 12월 2일
컨텍스트 창
1M 토큰
최대 출력
131,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 카탈로그의 실시간 종량제 요금입니다. 주간 사용량이 포함된 요금제를 선택할 수도 있습니다.

유형
사양
요금
입력
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 키와 함께 https://api.empiriolabs.ai/v1로 지정하고 모델 ID glm-5-4를 사용하세요. EmpirioLabs 대시보드에서 API 키를 발급받으세요.

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가 지원하는 요청 파라미터입니다. 필드를 생략하면 기본값이 적용됩니다.

파라미터유형기본값범위 / 값설명
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 관련 블로그 글

이 모델을 다룬 공지, 프롬프트 테스트, 비교 글입니다.

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은(는) 어떤 입력과 출력을 지원하나요?

GLM 5.4은(는) 텍스트, 이미지, 비디오, 파일을(를) 입력으로 받아 텍스트을(를) 반환합니다.

GLM 5.4의 컨텍스트 윈도우는 얼마인가요?

GLM 5.4은(는) 1M 토큰 컨텍스트 윈도우를 지원합니다 (응답당 최대 131,072 출력 토큰).

GLM 5.4 API는 OpenAI와 호환되나요?

네. GLM 5.4은(는) OpenAI 호환 Chat Completions API를 제공하므로, 기존 OpenAI SDK에서 base_url을 https://api.empiriolabs.ai/v1로 지정하고 모델 ID를 glm-5-4로 설정하면 바로 동작합니다.

GLM 5.4의 모델 ID는 무엇인가요?

요청의 model 값으로 glm-5-4을(를) 보내세요. 대체 ID glm-5.4, zai/glm-5.4, zhipu/glm-5.4도 사용할 수 있습니다.

GLM 5.4은(는) 언제 출시되었나요?

Z.ai은(는) 2026년 12월 2일에 GLM 5.4을(를) 출시했습니다.

GLM 5.4은(는) 어디에서 제공되나요?

EmpirioLabs의 GLM 5.4은(는) Singapore에서 제공됩니다.

통합하기 전에 브라우저에서 GLM 5.4을(를) 사용해 볼 수 있나요?

네. EmpirioLabs Playground에서 API와 동일한 파라미터로 GLM 5.4을(를) 브라우저에서 실행하므로 코드를 작성하기 전에 프롬프트를 테스트할 수 있습니다.

GLM 5.4 API 키는 어떻게 발급받나요?

EmpirioLabs 계정을 만든 다음 대시보드의 API Keys에서 키를 생성하세요. 요금은 종량제 크레딧이라 실행한 요청에 대해서만 결제합니다. 주간 사용량이 포함된 요금제를 선택할 수도 있습니다.

GLM 5.4을(를) 다른 모델과 비교

모든 모델 비교

더 나은 엔드포인트를 사용할 준비가 되셨나요?

저희 가격을 확인하시거나 저희 스택에 자체 모델을 배포하고 싶으시면 연락해 주세요.