gpt-image-2
Original:🇺🇸 English
Translated
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.
19.6kinstalls
Sourcepilioai/skills
Added on
NPX Install
npx skill4agent add pilioai/skills gpt-image-2Tags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →GPT Image 2
Use the Pilio CLI so upload, polling, credits, and API errors stay consistent with the official SDK.
Require in the environment. Do not ask the user to paste API keys into the conversation.
PILIO_API_KEYGenerate 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:
- : local reference image path. Repeat for multiple references.
--input - :
--aspect-ratio,1:1,3:2,2:3,3:4,4:3,4:5,5:4,16:9,9:16, or21:9.auto - :
--quality,low, ormedium.high - :
--resolution,0.5K,1K, or2K.4K
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>