gpt-image-2
Installation
SKILL.md
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.
Generate from text:
pnpm dlx @pilio/cli gpt-image-2 --prompt "<prompt>" --aspect-ratio "1:1"
Edit or compose from one or more references:
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, orauto.--quality:low,medium, orhigh.--resolution:0.5K,1K,2K, or4K.
The command returns a task payload. If the task is still pending or processing, wait for it:
pnpm dlx @pilio/cli task wait <task_id>