File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/zh/snippets/midjourney/api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ def midjourney_generate_image(image_path):
6767 # 获取响应
6868 res = conn .getresponse ()
6969 data_json = json .loads (res .read ().decode ("utf-8" ))
70- # print(data_json)
70+ print (data_json )
7171 print (data_json ["description" ])
7272 task_id = data_json ["result" ]
7373 return task_id
7474
7575if __name__ == "__main__" :
7676 # image_path = "/Users/dmxapi/Desktop/dxmapi.jpg" # 本地图片方式生成
77- image_url = "https://cdn.klingai.com/bs2/upload-kling-api/8089468206/image/Cl6kH2gHPegAAAAABUwweg-0_raw_image_0 .png" # url 图片方式生成
77+ image_url = "https://cdn.jsdelivr.net/gh/timerring/scratchpad2023/2024/2025-05-14-22-17-12 .png" # url 图片方式生成
7878 print (midjourney_generate_image (image_url ))
You can’t perform that action at this time.
0 commit comments