👾
ChatGPT for QQ 使用文档
  • 👋ChatGPT for Bot 使用文档
  • 💿部署教程
    • 💡快速部署教程
      • Windows 快速部署教程(go-cqhttp版)
      • Windows 快速部署教程 (Mirai 版)
      • Linux 一键部署教程
      • PaaS 平台部署(Railway)
  • 配置文件教程
    • 📰完整配置文件样例
    • 📪对接聊天平台
      • 🦠对接 Mirai
      • 🙇对接 OneBot (go-cqhttp)
      • 🛫对接 Telegram
      • 🎧对接 Discord
      • 🧑‍🍳🧑🍳 对接企业微信
      • 😁对接个人微信
    • 📎接入 AI 平台
      • 🤨接入 OpenAI 的 ChatGPT
      • 😅接入 New Bing (Sydney)
      • 🤹接入 Google Bard
      • 🤣接入 文心一言
      • 🧑‍🎓🧑🎓 接入 ChatGLM
      • 👨‍🎨👨🎨 接入 Poe.com
      • 🥸接入 Claude
      • ⭐接入 讯飞星火大模型
    • 🎤文字转语音
      • Azure TTS 语音接入教程
      • VITS 语音接入教程
      • Edge TTS 语音接入教程
    • 🖼️文字转图片
    • 🐉AI 画图
    • 💬回复内容
      • 百度云回复审核
    • 🚁触发形式与指令
  • 🐈预设系统
  • 🐙额度系统 & 黑白名单
  • 常见问题解答
    • 🎨ChatGPT 启动过程中的常见问题
    • 🖥️Mirai 启动过程中的常见问题
    • 🧳go-cqhttp 启动过程中的常见问题
    • 😓机器人在使用过程中的常见问题
    • 🚆WebUI 常见问题解答
由 GitBook 提供支持
在本页
  • 接入 Stable Diffusion 画图
  • 接入 Bing 画图
  • 接入 OpenAI DALL·E 画图
  • 使用画图功能
  1. 配置文件教程

AI 画图

目前我们支持的画图 AI 有:

  • Stable Diffusion

  • Bing 画图 (由 Bing 帮你生成 DALL·E)

  • OpenAI 画图(直接使用 DALL·E)

  • 文心一言

如果你当前使用的语言模型是文心一言,那么就会使用文心一言的 AI 画图功能:

接入 文心一言

如果你使用其他的语言模型,那么则会根据你上面设置的顺序来选择使用哪个画图 AI,不支持切换。

接入 Stable Diffusion 画图

Stable Diffusion 需要你搭建一个 sd-webui。

然后在你的配置文件中加入以下内容:

[sdwebui]
# sd-webui 的接口地址地址
api_url='http://127.0.0.1:7860/'
# 内置提示词,所有的画图内容都会加上这些提示词
prompt_prefix = 'masterpiece, best quality, illustration, extremely detailed 8K wallpaper'
# 负面提示词,sd 的一个参数
negative_prompt = 'NG_DeepNegative_V1_75T, badhandv4, EasyNegative, bad hands, missing fingers, cropped legs, worst quality, low quality, normal quality, jpeg artifacts, blurry,missing arms, long neck, Humpbacked,multiple breasts, mutated hands and fingers, long body, mutation, poorly drawn , bad anatomy,bad shadow,unnatural body, fused breasts, bad breasts, more than one person,wings on halo,small wings, 2girls, lowres, bad anatomy, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, out of frame, lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers,'
# 这也是 sd 的一个参数
sampler_index = 'DPM++ SDE Karras'
# 这还是 sd 的一个参数
filter_nsfw = true
# 你可以在这里看所有支持的 sd 参数: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API
# 画图超时时间,单位为秒
timeout = 10.0

接入 Bing 画图

如果你想使用 Bing 的画图功能,那么你需要接入一个 Bing 账号,然后开启 Bing 画图功能。

[bing]

# 开启 Bing 画图
use_drawing = true

[[bing.accounts]]
cookie_content = '你的 Bing 账号信息'

部分用户可能无法使用 Bing 画图,请阅读:

接入 OpenAI DALL·E 画图

使用 OpenAI 的 API 画图时将会调用 DALL·E 模型进行绘画,它的费用为 0.018 美元/张。

使用画图功能

触发的指令请参考:

上一页文字转图片下一页回复内容

最后更新于2年前

参考:

🐉
Logo[BUG] 必应绘图报错:Redirect failed · Issue #659 · lss233/chatgpt-mirai-qq-botGitHub
💲 接入 API 版 OpenAI ChatGPT
接入 New Bing (Sydney)
AI 画图