| name | p-image-upscale |
| description | Use when someone wants to upscale or sharpen an existing image for print, large crops, or higher-quality delivery. |
| license | MIT |
| metadata | {"version":"1.0.8","package":"pruna-skills","pruna_model":"p-image-upscale"} |
Prerequisites
Install and load these skills before generating (skip if already in context via @pruna):
| Skill | Description | Install |
|---|
generation-diversity | Use when writing any generative prompt โ ritual seed, explicit structure, scenario axes, and quality gates before paid API calls. | npx skills add PrunaAI/pruna-skills@generation-diversity -y |
image-prompting | Use when crafting still-image prompts for any generative model โ composition, identity sheets, edits, try-on, and photoreal personas. | npx skills add PrunaAI/pruna-skills@image-prompting -y |
pruna-api | Use before any Pruna or Replicate HTTP call โ credentials, upload/poll/download, parallel batches, and agent safety. | npx skills add PrunaAI/pruna-skills@pruna-api -y |
Or install the full suite once: npx skills add PrunaAI/pruna-skills@pruna -y
Follow each skill's Before generating / craft sections โ do not restate guide content here.
Agent habit
In the first reply, name `p-image-upscale` in backticks, confirm PRUNA_API_KEY, then ask for the source image + target megapixels (open intake โ generation-diversity clarification intake if output size is unclear). Redirect text-to-image requests to p-image.
When NOT to use
Use a different skill instead:
| Skill | Description | Install |
|---|
p-image | Use when someone wants a fast AI image โ product shots, hero visuals, mood boards, or draft photos from a text prompt. | npx skills add PrunaAI/pruna-skills@p-image -y |
p-image-edit | Use when someone wants to edit an existing photo โ change outfits or backgrounds, compose from reference images, or apply prompt-driven edits. | npx skills add PrunaAI/pruna-skills@p-image-edit -y |
avatar-multi-scene | Use when someone wants the same person hosting several clips โ multi-segment UGC, comparison reels, or mixed speaking and animated scenes with continuity. | npx skills add PrunaAI/pruna-skills@avatar-multi-scene -y |
p-video-animate | Use when someone wants a photo to move like another video โ motion transfer, dance remixes, or performance variations from a template clip. | npx skills add PrunaAI/pruna-skills@p-video-animate -y |
p-video-replace | Use when someone wants to swap a person, outfit, or product inside existing footage while keeping the camera move and audio. | npx skills add PrunaAI/pruna-skills@p-video-replace -y |
HTTP (curl)
Upload source image
curl -X POST "https://api.pruna.ai/v1/files" \
-H "apikey: ${PRUNA_API_KEY}" \
-F "content=@/path/to/source.png"
Use urls.get as input.image.
Create (async โ recommended)
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H "apikey: ${PRUNA_API_KEY}" \
-H 'Model: p-image-upscale' \
-d '{
"input": {
"image": "https://api.pruna.ai/v1/files/FILE_ID",
"target": 8,
"enhance_details": true,
"output_format": "png"
}
}'
Poll and download: follow pruna-api.
Create (sync โ quick test only)
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H "apikey: ${PRUNA_API_KEY}" \
-H 'Model: p-image-upscale' \
-H 'Try-Sync: true' \
-d '{
"input": {
"image": "https://api.pruna.ai/v1/files/FILE_ID",
"target": 4,
"enhance_details": true,
"enhance_realism": false,
"output_format": "png"
}
}'
Before generating
- Complete Prerequisites guide reading order.
- Confirm
target MP (1โ128), enhance_details / enhance_realism, and output_format with the user.
- Pruna note: defaults โ
enhance_details: true, enhance_realism: false. Use enhance_realism: true only on already-photoreal sources; it can add waxy artifacts on synthetic edits. Source must already pass the slop gate.
Print pipeline: p-image hero โ optional p-image-edit โ p-image-upscale on the approved plate (upscale after edits). Typical large-crop target: 8 megapixels โ confirm target with user.
Required input
Common optional fields
target: integer megapixels 1โ128 (default 4). Confirm current limits on p-image-upscale model docs.
output_format: jpg, png, webp
output_quality: 0โ100 (not used for PNG)
enhance_details, enhance_realism (booleans; realism can drift more from source)
disable_safety_checker
Typical next steps
Common follow-ons after this skill:
| Skill | Description | Install |
|---|
p-image-edit | Use when someone wants to edit an existing photo โ change outfits or backgrounds, compose from reference images, or apply prompt-driven edits. | npx skills add PrunaAI/pruna-skills@p-image-edit -y |
avatar-multi-scene | Use when someone wants the same person hosting several clips โ multi-segment UGC, comparison reels, or mixed speaking and animated scenes with continuity. | npx skills add PrunaAI/pruna-skills@avatar-multi-scene -y |