Skip to main content
使用 Recraft V4 和 V4.1 模型根据文本提示词生成图像。它将提示词和所选设置发送到 Recraft API,并返回生成的一张或多张图像。如果使用了风格参考图像,则还会返回创建的风格 ID。

输入

通用输入

recraftv4_1、recraftv4_1_utility、recraftv4 和 recraftv4_styles 输入

这些模型共享相同的 size 参数。

recraftv4_1_pro、recraftv4_1_utility_pro、recraftv4_pro 和 recraftv4_styles_pro 输入

这些模型共享相同的 size 参数。

参考输入

注意: size 参数是一个动态输入,其可用选项会根据所选的 model 而变化。recraftv4_stylesrecraftv4_styles_pro 模型始终需要一种风格:连接风格参考图像或提供 style_idstyle_idstyle_references 输入互斥——只能提供其中一个。style_id 必须是有效的 UUID。仅当提供了风格时,才会使用 style_match 输入。风格参考图像会在生成费用之外额外计费,其总编码大小不得超过 10 MB。seed 值不保证图像输出可复现。如果使用来自 Infinite Style Library 的风格 ID,请确保它不是 Vector art 风格,因为这可能会返回 SVG 数据而不是图像。

输出

本文档由 AI 生成。如果您发现任何错误或有改进建议,欢迎贡献! 在 GitHub 上编辑

Source fingerprint (SHA-256): af5c1f68e59ca282cdca7c32cd50f0438b743fdda27d9d22e59b2d1343f45e26