cURL
curl --request POST \ --url https://open.bigmodel.cn/api/paas/v4/images/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "cogview-4-250304", "prompt": "一只可爱的小猫咪" }'
{ "created": 123, "data": [ { "url": "<string>" } ], "content_filter": [ { "role": "assistant", "level": 1 } ] }
使用 CogView-4 系列模型从文本提示生成高质量图像。CogView-4 适用于图像生成任务,通过对用户文字描述快速、精准的理解,让AI的图像表达更加精确和个性化。支持cogview-4-250304、cogview-4、cogview-3-flash等模型。
使用以下格式进行身份验证:Bearer <your api key>
业务处理成功
The response is of type object.
object
Was this page helpful?