GLM 5.3
glm-5.3Latest flagship in the GLM 5 series, tuned for reasoning, coding, and agentic tool use with cached-input billing. Call it through the chat completions endpoint with a messages array. It handles complex multi-step instruction following, code generation, and enterprise knowledge assistants with strong accuracy.
Auto route pricing
Route source: Tencent
- Input / Output
- Input: $0.985Output: $3.447
- Cache read / write
- Cache read: $0.234Cache write: Price not supplied
- Context / Max output
- — / —
- Live routes
- 3
Rates / 1M tokens
Image output: Price not supplied
These are separate usage rates, not a total request price.
On this page
Overview
Latest flagship in the GLM 5 series, tuned for reasoning, coding, and agentic tool use with cached-input billing. Call it through the chat completions endpoint with a messages array. It handles complex multi-step instruction following, code generation, and enterprise knowledge assistants with strong accuracy.
Playground
Other parameters (19)
Result preview
Tencent · 3016ms
Response example. Run to see the actual response.
{
"id": "ec57729c-75ab-4d58-bb16-24305e482df7",
"model": "glm-5.3",
"usage": {
"total_tokens": 263,
"prompt_tokens": 13,
"completion_tokens": 250,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 213
}
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm your GLM model trained by Z.ai. How can I help you today? Feel free to ask any questions or share topics you'd like to discuss.",
"reasoning_content": "Let me consider how to respond to this greeting effectively.\n\nThe user has initiated contact with a simple \"hello,\" which suggests they may be testing the waters or just starting the conversation. This calls for a warm and inviting response that encourages further interaction.\n\nI should acknowledge their greeting in a friendly way and make them feel welcome to share more about what they need help with. It would be good to keep the tone approachable and professional, while also being open to various types of questions they might have.\n\nSince they haven't specified any particular topic or question, I should keep my response flexible and inviting. Perhaps I could offer some guidance on what I can assist with, while leaving the door open for them to direct the conversation.\n\nThe response should be concise yet welcoming, making it easy for them to continue the dialogue if they wish. I want to strike a balance between being helpful and not overwhelming them with too much information.\n\nLet me craft a response that is warm, professional, and open-ended - something that makes them feel comfortable sharing more about what they're looking for."
},
"finish_reason": "stop"
}
],
"created": 1787113497,
"openmodels_cost": 9944
}Agent handoff preview
Providers
| Provider | Pricing | Latency | Uptime | Supply | Route |
|---|---|---|---|---|---|
Live | Input $0.140 / 1M tokens Output $0.440 Cache read $0.026 Cache write — | — | — | Community | |
Live | Input $0.281 / 1M tokens Output $1.250 Cache read — Cache write — | 1702ms | — | Community | |
Live | Input $0.985 / 1M tokens Output $3.447 Cache read $0.234 Cache write — | 3016ms | — | Verified |
- Input
- $0.985
- Output
- $3.447
- Cache read
- $0.234
Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.
API
- Base URL
https://api.openany.si/v1- POST
/v1/chat/completions- Authentication
Authorization: Bearer $OPENANY_API_KEY
Request parameters
| Parameter | Type / range | Default value | Required | Description |
|---|---|---|---|---|
messages | array | — | Yes | The conversation messages |
model | string | — | Yes | The model to use |
do_sample | boolean | true | No | Whether to enable sampling. When true, the model uses sampling-based generation. |
frequency_penalty | number · -2 ~ 2 | 0 | No | Penalty for repeated tokens |
max_completion_tokens | integer · >= 1 | — | No | Maximum visible completion tokens |
max_tokens | integer · >= 1 | — | No | Maximum completion tokens |
n | integer · 1 ~ 128 | 1 | No | Number of choices to generate |
presence_penalty | number · -2 ~ 2 | 0 | No | Penalty for previously used tokens |
reasoning_effort | string · max | xhigh | high | medium | low | minimal | none | — | No | Controls the reasoning effort level used by the model. |
request_id | string | — | No | Client-provided request identifier for tracing and idempotency. |
response_format | object | — | No | Format constraint for the response |
route | object | — | No | OpenAny route configuration, including provider and other routing parameters |
route_mode | string | — | No | The mode for routing the request |
seed | integer | — | No | Seed for deterministic sampling |
stop | string | array | — | No | Sequences that stop generation |
stream | boolean | false | No | Whether to stream the response |
temperature | number · 0 ~ 2 | 1 | No | Sampling temperature |
thinking | object | — | No | Thinking configuration object for GLM reasoning behavior. eg: {"type": "disabled" } |
tool_choice | string | object · none | auto | required | — | No | Tool selection policy: string modes none, auto, or required, or an object selecting a specific tool |
tool_stream | boolean | false | No | Whether to enable streaming output for tool calls. |
tools | array | — | No | Tools available to the model |
top_p | number · 0 ~ 1 | 1 | No | Nucleus sampling probability |
user_id | string | — | No | End-user identifier associated with the request. |
Request example
curl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"content": "hello",
"role": "user"
}
],
"model": "glm-5.3",
"route_mode": "balanced",
"do_sample": true,
"frequency_penalty": 0,
"n": 1,
"presence_penalty": 0,
"stream": false,
"temperature": 1,
"tool_stream": false,
"top_p": 1
}'Response example
Configured response example · not a live result
{
"id": "ec57729c-75ab-4d58-bb16-24305e482df7",
"model": "glm-5.3",
"usage": {
"total_tokens": 263,
"prompt_tokens": 13,
"completion_tokens": 250,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 213
}
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm your GLM model trained by Z.ai. How can I help you today? Feel free to ask any questions or share topics you'd like to discuss.",
"reasoning_content": "Let me consider how to respond to this greeting effectively.\n\nThe user has initiated contact with a simple \"hello,\" which suggests they may be testing the waters or just starting the conversation. This calls for a warm and inviting response that encourages further interaction.\n\nI should acknowledge their greeting in a friendly way and make them feel welcome to share more about what they need help with. It would be good to keep the tone approachable and professional, while also being open to various types of questions they might have.\n\nSince they haven't specified any particular topic or question, I should keep my response flexible and inviting. Perhaps I could offer some guidance on what I can assist with, while leaving the door open for them to direct the conversation.\n\nThe response should be concise yet welcoming, making it easy for them to continue the dialogue if they wish. I want to strike a balance between being helpful and not overwhelming them with too much information.\n\nLet me craft a response that is warm, professional, and open-ended - something that makes them feel comfortable sharing more about what they're looking for."
},
"finish_reason": "stop"
}
],
"created": 1787113497,
"openmodels_cost": 9944
}Error handling
400Check the model ID and request fields.429Retry with exponential backoff.5xxRetry only temporary provider failures.JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"model",
"messages"
],
"properties": {
"n": {
"type": "integer",
"default": 1,
"maximum": 128,
"minimum": 1,
"description": "Number of choices to generate"
},
"seed": {
"type": "integer",
"description": "Seed for deterministic sampling"
},
"stop": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"description": "Sequences that stop generation"
},
"model": {
"type": "string",
"description": "The model to use"
},
"route": {
"type": "object",
"description": "OpenAny route configuration, including provider and other routing parameters"
},
"tools": {
"type": "array",
"items": {
"type": "object"
},
"description": "Tools available to the model"
},
"top_p": {
"type": "number",
"default": 1,
"maximum": 1,
"minimum": 0,
"description": "Nucleus sampling probability"
},
"stream": {
"type": "boolean",
"default": false,
"description": "Whether to stream the response"
},
"user_id": {
"type": "string",
"description": "End-user identifier associated with the request."
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "The conversation messages"
},
"thinking": {
"type": "object",
"description": "Thinking configuration object for GLM reasoning behavior. eg: {\"type\": \"disabled\" }"
},
"do_sample": {
"type": "boolean",
"default": true,
"description": "Whether to enable sampling. When true, the model uses sampling-based generation."
},
"max_tokens": {
"type": "integer",
"minimum": 1,
"description": "Maximum completion tokens"
},
"request_id": {
"type": "string",
"description": "Client-provided request identifier for tracing and idempotency."
},
"route_mode": {
"type": "string",
"description": "The mode for routing the request"
},
"temperature": {
"type": "number",
"default": 1,
"maximum": 2,
"minimum": 0,
"description": "Sampling temperature"
},
"tool_choice": {
"enum": [
"none",
"auto",
"required"
],
"type": [
"string",
"object"
],
"description": "Tool selection policy: string modes none, auto, or required, or an object selecting a specific tool"
},
"tool_stream": {
"type": "boolean",
"default": false,
"description": "Whether to enable streaming output for tool calls."
},
"response_format": {
"type": "object",
"description": "Format constraint for the response"
},
"presence_penalty": {
"type": "number",
"default": 0,
"maximum": 2,
"minimum": -2,
"description": "Penalty for previously used tokens"
},
"reasoning_effort": {
"enum": [
"max",
"xhigh",
"high",
"medium",
"low",
"minimal",
"none"
],
"type": "string",
"description": "Controls the reasoning effort level used by the model."
},
"frequency_penalty": {
"type": "number",
"default": 0,
"maximum": 2,
"minimum": -2,
"description": "Penalty for repeated tokens"
},
"max_completion_tokens": {
"type": "integer",
"minimum": 1,
"description": "Maximum visible completion tokens"
}
}
}Examples
Request example
POST /v1/chat/completionscurl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"content": "hello",
"role": "user"
}
],
"model": "glm-5.3",
"route_mode": "balanced",
"do_sample": true,
"frequency_penalty": 0,
"n": 1,
"presence_penalty": 0,
"stream": false,
"temperature": 1,
"tool_stream": false,
"top_p": 1
}'