跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com
RunwayML logo

stable-diffusion-v1-5-inpainting

Beta

Text-to-Image • RunwayML

查看 MarkdownAgent 设置
  • Cloudflare-hosted

Stable Diffusion Inpainting 是一种潜在文本到图像扩散模型,能够根据任意文本输入生成逼真的图像,并额外支持使用遮罩对图像进行局部重绘。

模型信息
条款和许可证链接 ↗
更多信息链接 ↗
Beta是
单位定价$0.00 per step

参数

prompt
stringrequiredminLength: 1对您想要生成的图像的文字描述
negative_prompt
string描述生成图像中需要避免的元素的文本
height
integerminimum: 256maximum: 2048生成图像的高度(像素)
width
integerminimum: 256maximum: 2048生成图像的宽度(像素)
image_b64
string用于 img2img 任务。输入图像的 base64 编码字符串
num_steps
integerdefault: 20maximum: 20扩散步数;值越高,质量可能越好,但耗时更长
strength
numberdefault: 1介于 0 到 1 之间的值,表示 img2img 任务中变换的强度;值越低,输出越接近输入图像
guidance
numberdefault: 7.5控制生成图像与提示词的贴合程度;值越高,图像与提示词越一致
seed
integer用于复现图像生成结果的随机种子

绑定返回包含输出的 ReadableStream(请查看模型的输出 schema)。

API schema(原始)

输入
输出

这篇文档对您有帮助吗?