Models

Public GLM 5 API model IDs, capabilities, limits, and credit rates.

Use GET /models to discover the exact model IDs accepted by the public API. Only models returned by this endpoint can be used in /chat/completions.

GET/models

Returns the curated model list available through GLM 5.

curl https://glm5.app/api/v1/models \
  -H "Authorization: Bearer $GLM5_API_KEY"
{
  "object": "list",
  "data": [
    {
      "id": "glm-5.3",
      "object": "model",
      "created": 0,
      "owned_by": "glm5"
    }
  ]
}

Model List

ModelBest forToolsInputOutput
ox-alphaCoding, sustained agent work, and long-context tasksYes190 credits / 1M input190 credits / 1M output
glm-5.3Latest GLM API surface for coding, reasoning, and agentsYes78 credits / 1M input245 credits / 1M output
glm-5.2Coding, reasoning, agents, long-form workYes78 credits / 1M input245 credits / 1M output
glm-5General chat and lower-cost GLM workloadsYes84 credits / 1M input278 credits / 1M output
kimi-k3Premium alternative reasoning workloadsYes834 credits / 1M input4,167 credits / 1M output
kimi-k2Cost-efficient alternative general chatYes84 credits / 1M input334 credits / 1M output
deepseek-r1Text reasoning without function toolsNo98 credits / 1M input362 credits / 1M output
deepseek-v4-proDeepSeek flagship reasoning and tool workflowsYes126 credits / 1M input251 credits / 1M output
deepseek-v4-flashFast, low-cost DeepSeek V4 chatYes39 credits / 1M input78 credits / 1M output

Rates are shown in credits per one million input or output tokens. API calls spend the same GLM 5 credit balance used by Chat. Dollar equivalents are only a secondary reference. See Billing for the credit conversion, reservation, settlement, and refund behavior.

GET /models does not publish synthetic context_length or max_completion_tokens values. GLM 5 does not impose one global token window; context and output limits can vary by model.

Model IDs

Use the exact model IDs returned by GET /models. Send one of these values:

Model IDToolsLimitsNotes
ox-alphaYesModel-specificPreview model for coding and sustained agents.
glm-5.3YesModel-specificRecommended default for new integrations.
glm-5.2YesModel-specificStable GLM option for coding and agents.
glm-5YesModel-specificLower-cost GLM model for general work.
kimi-k3YesModel-specificPremium alternative reasoning/chat model.
kimi-k2YesModel-specificCost-efficient alternative chat model.
deepseek-r1NoModel-specificReasoning text model without tool support.
deepseek-v4-proYesModel-specificDeepSeek V4 flagship reasoning/chat model.
deepseek-v4-flashYesModel-specificFast, low-cost DeepSeek V4 chat model.

If a model ID is not returned by GET /models, the API returns 404 model_not_found.

Ox Alpha

ox-alpha is a preview model for coding, sustained agent work, and long-context tasks. It supports function calling through the same Chat Completions API as the other tool-capable models. Its availability and limits can change during the preview, so use GET /models before deploying a new integration.

{
  "model": "ox-alpha",
  "messages": [
    {
      "role": "user",
      "content": "Review this repository plan and identify the riskiest dependencies."
    }
  ],
  "max_completion_tokens": 1200
}

GLM-5.3

glm-5.3 is the recommended default for new API users. It is the best fit for coding, structured reasoning, agent workflows, function calling, and longer technical conversations.

{
  "model": "glm-5.3",
  "messages": [
    {
      "role": "user",
      "content": "Review this deployment plan for missing rollback steps."
    }
  ],
  "max_completion_tokens": 1200
}

Use it when you want the current GLM API entry point for new integrations.

GLM-5.2

glm-5.2 remains available as a stable GLM model ID for existing integrations, coding, reasoning, and function-calling workflows.

{
  "model": "glm-5.2",
  "messages": [
    {
      "role": "user",
      "content": "Summarize this incident report and list the next actions."
    }
  ],
  "max_completion_tokens": 1000
}

GLM-5

glm-5 is a lower-cost GLM option for general chat, summarization, structured answers, and lighter application workflows. It supports the same text endpoint, streaming, and function-calling shape as glm-5.3.

{
  "model": "glm-5",
  "messages": [
    {
      "role": "user",
      "content": "Turn these notes into a concise customer support reply."
    }
  ],
  "max_completion_tokens": 700
}

Kimi K3

kimi-k3 is a premium alternative model exposed through the same Chat Completions API. Use it when you want to compare behavior against GLM models for reasoning-heavy or high-value text workflows.

{
  "model": "kimi-k3",
  "messages": [
    {
      "role": "user",
      "content": "Compare these two architecture options and choose one."
    }
  ],
  "max_completion_tokens": 1500
}

Kimi K2

kimi-k2 is a cost-efficient alternative for general chat, summaries, extraction, and tool-capable workflows.

{
  "model": "kimi-k2",
  "messages": [
    {
      "role": "user",
      "content": "Summarize the trade-offs in this architecture."
    }
  ],
  "max_completion_tokens": 800
}

DeepSeek R1

deepseek-r1 is available for reasoning-oriented text generation. It does not support function calling in the GLM 5 public API. If you send tools with this model, the API returns 400 unsupported_parameter.

{
  "model": "deepseek-r1",
  "messages": [
    {
      "role": "user",
      "content": "Reason through this production incident timeline."
    }
  ],
  "max_completion_tokens": 1200
}

DeepSeek V4 Pro

deepseek-v4-pro exposes DeepSeek V4 Pro through the GLM 5 public API. Use it for higher-value reasoning, coding, extraction, and tool-capable text workflows.

{
  "model": "deepseek-v4-pro",
  "messages": [
    {
      "role": "user",
      "content": "Find the risky assumptions in this migration plan."
    }
  ],
  "max_completion_tokens": 1200
}

DeepSeek V4 Flash

deepseek-v4-flash is the cheaper DeepSeek V4 option for fast everyday chat, summaries, and tool-capable application workflows.

{
  "model": "deepseek-v4-flash",
  "messages": [
    {
      "role": "user",
      "content": "Summarize these customer notes into action items."
    }
  ],
  "max_completion_tokens": 800
}

Model Not Found

Unknown model IDs return:

{
  "error": {
    "message": "The requested model was not found.",
    "type": "invalid_request_error",
    "code": "model_not_found",
    "param": null
  }
}

The HTTP status is 404.

Models | GLM 5 API