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 從公開儲存庫中收錄這些內容。

檢舉或申請下架