吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 890|回复: 4
收起左侧

[学习记录] 免费调用DALL·E 4生成AI图片

  [复制链接]
dlearn 发表于 2023-12-5 18:03
本帖最后由 dlearn 于 2023-12-5 18:05 编辑

使用说明

  • 打开网页bing
  • 按下F12,在控制台输入以下两行代码获取cookie
cookieStore.get("_U").then(result => console.log(result.value))
cookieStore.get("SRCHHPGUSR").then(result => console.log(result.value))
  • 使用示例
from BingImageCreator import ImageGen
# _U
U = "xxxxx"
# SRCHHPGUSR
S = "xxxxx"

imageGen = ImageGen(
    U, S, proxy={"http": "http://127.0.0.1:7890", "https": "https://127.0.0.1:7890"}
)
list = imageGen.get_images("一只兔子")

print(list)

imageGen.save_images(list, "out")

其中BingImageCreator.py的地址

参考链接

BingImageCreator

免费评分

参与人数 1吾爱币 +1 热心值 +1 收起 理由
secondDog + 1 + 1 谢谢@Thanks!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

greatzdl 发表于 2023-12-6 16:47
确定可以运行嘛?有例子不?感觉很强大
coollongly 发表于 2023-12-6 17:11
 楼主| dlearn 发表于 2023-12-6 18:17
greatzdl 发表于 2023-12-6 16:47
确定可以运行嘛?有例子不?感觉很强大

唯一需要注意的是,调用时可能需要代{过}{滤}理
kefu123 发表于 2023-12-9 22:25
感谢分享,画图是可以画图,就是很多词被block了,想画的图画不出来
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止回复与主题无关非技术内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-6-1 13:22

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表