GLM 5.3 API

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

Z.aiGeração de Texto1M contextoLançado 14 de ago. de 2026SingaporeEndpoint proprietárioNovo

Sobre GLM 5.3

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

Notes: - Context window: 1M tokens - Maximum output: 128K tokens - 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, structured output (JSON mode), and streaming

Também conhecido como Z.ai GLM 5.3

reasoningfunction callingweb search

Especificações de GLM 5.3

ID do modelo
glm-5-3
Provedor
Z.ai
Categoria
Geração de Texto
Lançado
14 de ago. de 2026
Janela de contexto
1M tokens
Saída máxima
131.072 tokens
Entrada
Texto
Saída
Texto
Saída estruturada
Modo JSON
Região
Singapore
Endpoints
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/glm-5-3:generateContent
IDs de modelo alternativos
glm-5.3zai/glm-5.3zhipu/glm-5.3

Preços da API GLM 5.3

Tarifas pay-as-you-go ao vivo do catálogo EmpirioLabs. Você paga só pelo que usa, sem mínimo mensal.

Tipo
Especificação
Tarifa
Entrada
per 1M prompt tokens
$1.40
Saída
per 1M generated tokens
$4.40
Web search
per request
$0.033
Comparar na página completa de preços

Como chamar a API GLM 5.3

GLM 5.3 atende a API Chat Completions compatível com OpenAI. Aponte qualquer SDK OpenAI para https://api.empiriolabs.ai/v1 com sua chave de API EmpirioLabs e use o id de modelo glm-5-3. Obtenha uma chave de API no painel EmpirioLabs.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5-3",
    "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-3",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Referência completa da API GLM 5.3

Parâmetros da API GLM 5.3

Parâmetros de requisição suportados pela API GLM 5.3 na EmpirioLabs. Os padrões valem quando um campo é omitido.

ParâmetroTipoPadrãoIntervalo / valoresDescrição
max_tokensinteger655361 a 131072Maximum number of output tokens to generate.
temperaturenumber10 a 1Controls randomness. Lower values make responses more deterministic.
top_pnumber0.950.01 a 1Nucleus sampling cutoff.
reasoning_effortenummaxlow, high, maxGLM 5.3 reasoning effort. This model always reasons and cannot be turned off. low is lightweight, high is enhanced, and max is deep reasoning. max is recommended for...
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 a 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.
tool_choiceobject--OpenAI-compatible tool choice control.
2 parâmetros a mais na documentação

API GLM 5.3: perguntas frequentes

Quanto custa a API GLM 5.3?

Na EmpirioLabs, GLM 5.3 é cobrado por uso: Input $1.40 per 1M prompt tokens; Output $4.40 per 1M generated tokens; Web search $0.033 per request. A tabela de tarifas ao vivo desta página sempre corresponde ao que a API cobra.

Qual é a janela de contexto de GLM 5.3?

GLM 5.3 suporta uma janela de contexto de 1M tokens com até 131.072 tokens de saída por resposta.

A API GLM 5.3 é compatível com OpenAI?

Sim. GLM 5.3 atende a API Chat Completions compatível com OpenAI, então SDKs OpenAI existentes funcionam apontando base_url para https://api.empiriolabs.ai/v1 e definindo o id de modelo glm-5-3.

Posso testar GLM 5.3 no navegador antes de integrar?

Sim. O playground da EmpirioLabs executa GLM 5.3 no navegador com os mesmos parâmetros que a API expõe, para você testar prompts antes de escrever código.

Como consigo uma chave de API GLM 5.3?

Crie uma conta EmpirioLabs e gere uma chave em API Keys no painel. A cobrança usa créditos pay-as-you-go, então você paga apenas pelas requisições que faz.

Pronto para usar endpoints melhores?

Confira nossos preços ou entre em contato se quiser que seu próprio modelo seja implementado em nossa pilha.