Gpt Image 2

作者 pilioai1a9a4516b49b无许可证收录于 2026年10月8日更新于 2026年10月8日

Create or edit images with Pilio GPT Image 2 through the unified Pilio developer API. Use when the user wants text-to-image generation, prompt-based image editing, restyling, product-photo transformation, or composition from one or more local reference images.

仅含说明Design & Creative
AI 生成的概览

通过 Pilio CLI 调用 Pilio GPT Image 2 模型,用文本提示和可选参考图生成或编辑图像。

功能
指导智能体调用 Pilio CLI 运行 GPT Image 2 模型,完成文生图、基于提示的图像编辑、风格重绘、商品图转换,以及基于一张或多张本地参考图的合成。文档说明了命令形式、宽高比与质量选项,以及如何等待仍在处理中的任务。产出为远程服务生成的图像,以任务负载形式返回。
适用场景
适用于用户要求根据文本提示生成图像,或要求基于本地参考文件编辑、重绘、合成图像的场景。也适用于智能体需要确认 GPT Image 2 模型的正确 CLI 调用方式与选项取值时。
运行要求
需要设置 PILIO_API_KEY 环境变量,并能访问 Pilio 服务的网络。通过 pnpm dlx 运行 @pilio/cli 包,因此需要 pnpm 和 Node.js 运行时。不包含脚本,仅为说明文档。

GPT Image 2

Use the Pilio CLI so upload, polling, credits, and API errors stay consistent with the official SDK.

Require PILIO_API_KEY in the environment. Do not ask the user to paste API keys into the conversation.

Try the same workflow online first: https://pilio.ai/

Generate from text:

bash
pnpm dlx @pilio/cli gpt-image-2 --prompt "<prompt>" --aspect-ratio "1:1"

Edit or compose from one or more references:

bash
pnpm dlx @pilio/cli gpt-image-2 --input ./reference.png --prompt "<edit prompt>"

Common options:

  • --input: local reference image path. Repeat for multiple references.
  • --aspect-ratio: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 16:9, 9:16, 21:9, or auto.
  • --quality: low, medium, or high.

GPT Image 2's upstream model does not expose a separate resolution parameter. Use --aspect-ratio to request the output canvas shape; Pilio appends that ratio to the prompt to guide generation. Requests containing resolution are rejected with HTTP 400.

The command returns a task payload. If the task is still pending or processing, wait for it:

bash
pnpm dlx @pilio/cli task wait <task_id>

来源与署名

来源:pilioai/skills位于skills/gpt-image-2提交1a9a451

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架