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.
/modelsReturns 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
| Model | Best for | Tools | Input | Output |
|---|---|---|---|---|
ox-alpha | Coding, sustained agent work, and long-context tasks | Yes | 190 credits / 1M input | 190 credits / 1M output |
glm-5.3 | Latest GLM API surface for coding, reasoning, and agents | Yes | 78 credits / 1M input | 245 credits / 1M output |
glm-5.2 | Coding, reasoning, agents, long-form work | Yes | 78 credits / 1M input | 245 credits / 1M output |
glm-5 | General chat and lower-cost GLM workloads | Yes | 84 credits / 1M input | 278 credits / 1M output |
kimi-k3 | Premium alternative reasoning workloads | Yes | 834 credits / 1M input | 4,167 credits / 1M output |
kimi-k2 | Cost-efficient alternative general chat | Yes | 84 credits / 1M input | 334 credits / 1M output |
deepseek-r1 | Text reasoning without function tools | No | 98 credits / 1M input | 362 credits / 1M output |
deepseek-v4-pro | DeepSeek flagship reasoning and tool workflows | Yes | 126 credits / 1M input | 251 credits / 1M output |
deepseek-v4-flash | Fast, low-cost DeepSeek V4 chat | Yes | 39 credits / 1M input | 78 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 ID | Tools | Limits | Notes |
|---|---|---|---|
ox-alpha | Yes | Model-specific | Preview model for coding and sustained agents. |
glm-5.3 | Yes | Model-specific | Recommended default for new integrations. |
glm-5.2 | Yes | Model-specific | Stable GLM option for coding and agents. |
glm-5 | Yes | Model-specific | Lower-cost GLM model for general work. |
kimi-k3 | Yes | Model-specific | Premium alternative reasoning/chat model. |
kimi-k2 | Yes | Model-specific | Cost-efficient alternative chat model. |
deepseek-r1 | No | Model-specific | Reasoning text model without tool support. |
deepseek-v4-pro | Yes | Model-specific | DeepSeek V4 flagship reasoning/chat model. |
deepseek-v4-flash | Yes | Model-specific | Fast, 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.