generate_image
Create a single-use image from a text prompt for backgrounds or UI backdrops, returning a local file path. For recurring characters or objects, use dedicated consistency tools.
Instructions
生成一张一次性图片 —— 不保证与任何其它图一致。
会重复出现的角色/物件请先 create_character / create_object 定妆, 再用 subject_image 出图。这个工具适合背景板、UI 底图这类只出现一次的东西。
参数: prompt: 图片描述(英文效果最佳) width/height: 上限 1024 seed: 随机种子(可选) reference_image_path: 参考图的本机路径(可选), 传了就是图生图 num_inference_steps: 采样步数(可选, 不传用引擎默认)。多了更精细也更慢 guidance_scale: 提示词贴合度(可选, 不传用引擎默认)。高了更贴提示词但更容易糊
返回: 本机路径
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| guidance_scale | No | ||
| num_inference_steps | No | ||
| reference_image_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | No | ||
| seed | No | ||
| error | No | ||
| scene | No | ||
| width | No | ||
| height | No | ||
| clamped | No | ||
| subject | No | ||
| warnings | No | ||
| error_code | No |