> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lithosai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GLM-5.3-Flash

> GLM-5.3-Flash 的模型 ID、长度限制、思考模式和支持的请求参数。

## 模型 ID

| 模型 ID |
| - |
| `zai-org/GLM-5.3-Flash` |
| `zai-org/GLM-5.3-Flash-ultra` |

两个 ID 是同一个模型，接受的参数也相同。每个 ID 有自己的价格和[速率限制](https://docs.lithosai.com/zh/rate-limits.md)，分别在 [模型](https://console.lithosai.cloud/models?lang=zh) 和 [速率限制](https://console.lithosai.cloud/limits?lang=zh) 页面查看。

## 长度限制

| 限制 | token 数 |
| - | - |
| 上下文窗口 | 1,048,576 |
| 最大输出长度 | 131,072 |

上下文窗口同时包含输入和 `max_tokens`。输入加上 `max_tokens` 超过上限时，请求返回 400。`max_tokens` 可以设得比 131,072 大，但输出最多 131,072 个 token。

## 思考模式

GLM-5.3-Flash 始终开启思考模式，无法关闭。这个模型不支持 `"reasoning_effort": "none"` 和 `"thinking": {"type": "disabled"}`，请不要传这两个设置。

`reasoning_effort` 可选 `minimal`、`low`、`medium`、`high`、`xhigh` 和 `max`，其他值返回 400。

思考内容放在 `message.reasoning_content` 中，流式输出时放在 `delta.reasoning_content` 中，与 `content` 分开。`usage.completion_tokens_details.reasoning_tokens` 是思考内容的 token 数。这部分 token 计入 `completion_tokens`，按输出价格计费。

`max_tokens` 同时限制思考内容和回答。如果思考内容用完了全部额度，响应以 `finish_reason: "length"` 结束，`content` 为空。停止序列也会在思考内容中匹配，一旦匹配，响应会在回答开始之前结束。

## 参数

| 参数 | 说明 |
| - | - |
| `max_tokens`、`max_completion_tokens` | 同时限制思考内容和回答。 |
| `temperature` | 0 到 2。 |
| `top_p` | 大于 0，最大为 1。 |
| `top_k`、`presence_penalty`、`frequency_penalty` | 支持。 |
| `stop` | 也会在思考内容中匹配。 |
| `seed` | 可以传，但不能让输出可复现。 |
| `stream`、`stream_options` | 无论是否设置 `include_usage`，流的最后都有一个携带用量的数据块。 |
| `tools`、`tool_choice` | `auto`、`required`、`none` 或指定函数。 |
| `response_format` | `text`、`json_object` 和 `json_schema`。 |
| `reasoning_effort` | 见[思考模式](#思考模式)。 |
| `user` | 支持。 |

以下参数会返回 400：

| 参数 | `error.code` | `error.message` |
| - | - | - |
| `n` 不为 `1` | `unsupported_n` | `n must be 1` |
| `logprobs`，即使值为 `false` | `unsupported_parameter` | ``the parameter `logprobs` is not supported`` |
| `top_logprobs` | `unsupported_parameter` | ``the parameter `top_logprobs` is not supported`` |
| `logit_bias` | `unsupported_parameter` | ``the parameter `logit_bias` is not supported`` |
| API 未定义的字段，例如 `chat_template_kwargs` | `unknown_parameter` | `unrecognized request argument supplied: chat_template_kwargs` |

```json theme={null}
{
  "error": {
    "message": "the parameter `logprobs` is not supported",
    "type": "invalid_request_error",
    "param": null,
    "code": "unsupported_parameter"
  }
}
```

超出取值范围的参数，例如 `temperature: 3` 或 `top_p: 0`，同样返回 400。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.