curl --location --request POST 'https://api.302.ai/bigmodel/api/paas/v4/images/generations' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "glm-image",
"prompt": "一只可爱的小猫咪",
"size": "1280x1280",
"quality": "hd",
"watermark_enabled": true
}'{
"created": 1768377107,
"data": [
{
"url": "https://file.302ai.cn/gpt/imgs/20260114/438a5095ad18093d79f2cbd113e44ade.jpg"
}
]
}