messagesarray<object>필수GLM 5.3 Flash는 텍스트·image_url·video_url을 받으며 MP4 또는 WebM 영상을 합계 14MB 이내로 업로드하고 PDF는 텍스트로 추출해야 하며 음성과 파일 부품은 받지 않습니다. GLM 5.3 Flash 대화는 256개 메시지 이내로 구성하고 검토 자료 앞에 개발 제약을 배치합니다. GLM 5.3 Flash의 image_url에는 공개 HTTPS URL, 업로드 이미지 또는 data URI를 사용할 수 있으며 이미지와 영상은 일반 입력 토큰 단가로 과금하고 실제 사용량 정산 전까지 전체 입력 한도에 해당하는 금액을 확보합니다.
- 기본값
- 지정되지 않음
- 제약 조건
- 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."
}