Request
Body Params application/json
{
"agent_id": "slides_glm_agent",
"conversation_id": "1750756263-a0e8bc1e2ee14879810025009e2ff693",
"custom_variables": {
"pages": [
{
"position": 1,
"width": 1440,
"height": 2860
},
{
"position": 2,
"width": 1080,
"height": 2860
}
],
"include_pdf": true
}
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/bigmodel/api/v1/agents/conversation' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"agent_id": "slides_glm_agent",
"conversation_id": "1750756263-a0e8bc1e2ee14879810025009e2ff693",
"custom_variables": {
"pages": [
{
"position": 1,
"width": 1440,
"height": 2860
},
{
"position": 2,
"width": 1080,
"height": 2860
}
],
"include_pdf": true
}
}'
Responses
application/json {
"agent_id": "slides_glm_agent",
"conversation_id": "1755680139-cadd78359d6843c0b139d8a1879d310a",
"status": "success",
"choices": [
{
"index": 0,
"finish_reason": "stop",
"messages": [
{
"role": "assistant",
"content": {
"type": "file_url",
"tag": "upload-html-0.pdf",
"file_url": "https://file.302ai.cn/gpt/imgs/20250820/1f6ffff102754cc0ad5a9a55bf16c249.pdf"
},
"phase": "answer"
}
]
}
]
}
Modified at 2025-08-25 08:29:54