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):
67
67
# 获取响应
68
68
res = conn .getresponse ()
69
69
data_json = json .loads (res .read ().decode ("utf-8" ))
70
- # print(data_json)
70
+ print (data_json )
71
71
print (data_json ["description" ])
72
72
task_id = data_json ["result" ]
73
73
return task_id
74
74
75
75
if __name__ == "__main__" :
76
76
# 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 图片方式生成
78
78
print (midjourney_generate_image (image_url ))
You can’t perform that action at this time.
0 commit comments