p-pic
Edit any local image by providing a prompt that describes the desired outcome; get a regenerated picture matching your instructions.
Instructions
图生图(EDIT_IMAGE 流水线,默认模型 sensenova-u1.5-lite)。
参数: prompt: 编辑指令,描述期望最终画面,必填 image_path: 参考图路径(本地,PNG/JPG/WEBP/GIF),必填 size: 尺寸(默认 2752x1536) provider: 后端(sensenova/openai_compat,默认读 EDIT_IMAGE_ADAPTER→sensenova) instance: 命名实例名(默认 None 走主实例,见 3.7)
说明:Python 语法要求必填参数(image_path)置于带默认值参数(size)之前, 工具契约即本签名:p-pic(prompt, image_path, size, provider=None, instance=None)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 2752x1536 | |
| prompt | Yes | ||
| instance | No | ||
| provider | No | ||
| image_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |