messagesarray<object>必須GLM 5.3 Flash はテキスト、image_url、video_url を受け付けます。GLM 5.3 Flash に渡す動画は合計 14 MB 以内の MP4 または WebM をアップロードし、PDF はテキスト化します。音声とファイル部品はこの Flash エンドポイントでは使えません。GLM 5.3 Flash の対話は 256 件以内のメッセージに収め、確認する資料より先に開発上の制約を示します。GLM 5.3 Flash の image_url には公開 HTTPS URL、アップロード画像、data URI を指定できます。GLM 5.3 Flash の画像・動画は通常の入力トークン単価で計算し、実測で精算するまでは入力枠全体に相当する金額を確保します。
- デフォルト値
- 指定なし
- 制約
- minItems:1maxItems:256
messages[].rolestringオブジェクト内で必須Role of the message author.
- デフォルト値
- 指定なし
- 使用可能な値
"system""developer""user""assistant""tool"
messages[].namestring任意Optional name identifying the speaker within its role.
- デフォルト値
- 指定なし
messages[].contentstring | array | null任意Message content, either plain text or a list of content parts.
- デフォルト値
- 指定なし
{
"type": [
"string",
"array",
"null"
],
"items": {
"oneOf": [
{
"type": "object",
"required": [
"type",
"text"
],
"properties": {
"text": {
"type": "string"
},
"type": {
"const": "text"
}
}
},
{
"type": "object",
"required": [
"type",
"image_url"
],
"properties": {
"type": {
"const": "image_url"
},
"image_url": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"type",
"video_url"
],
"properties": {
"type": {
"const": "video_url"
},
"video_url": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
}
}
}
]
},
"description": "Message content, either plain text or a list of content parts."
}messages[].tool_callsarray<object>任意Tool calls the assistant requested in this message.
- デフォルト値
- 指定なし
messages[].tool_call_idstring任意Identifier of the tool call this message answers. Required on tool messages.
- デフォルト値
- 指定なし
messages[].reasoning_contentstring任意Reasoning text from a previous assistant reply, preserved when continuing a tool conversation.
- デフォルト値
- 指定なし
{
"type": "array",
"x-ui": {
"order": 100,
"widget": "chat-messages",
"primary": true
},
"items": {
"type": "object",
"allOf": [
{
"if": {
"required": [
"reasoning_content"
]
},
"then": {
"properties": {
"role": {
"const": "assistant"
}
}
}
}
],
"required": [
"role"
],
"properties": {
"name": {
"type": "string",
"description": "Optional name identifying the speaker within its role."
},
"role": {
"enum": [
"system",
"developer",
"user",
"assistant",
"tool"
],
"type": "string",
"description": "Role of the message author."
},
"content": {
"type": [
"string",
"array",
"null"
],
"items": {
"oneOf": [
{
"type": "object",
"required": [
"type",
"text"
],
"properties": {
"text": {
"type": "string"
},
"type": {
"const": "text"
}
}
},
{
"type": "object",
"required": [
"type",
"image_url"
],
"properties": {
"type": {
"const": "image_url"
},
"image_url": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"type",
"video_url"
],
"properties": {
"type": {
"const": "video_url"
},
"video_url": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
}
}
}
]
},
"description": "Message content, either plain text or a list of content parts."
},
"tool_calls": {
"type": "array",
"items": {
"type": "object"
},
"description": "Tool calls the assistant requested in this message."
},
"tool_call_id": {
"type": "string",
"description": "Identifier of the tool call this message answers. Required on tool messages."
},
"reasoning_content": {
"type": "string",
"description": "Reasoning text from a previous assistant reply, preserved when continuing a tool conversation."
}
},
"additionalProperties": false
},
"maxItems": 256,
"minItems": 1,
"description": "Conversation history in order, oldest message first."
}