Skip to content
Pruna AI logo

P-Image-Edit

Image-to-ImagePruna AI

Pruna's P-Image-Edit edits and composes 1-5 reference images with text instructions. It supports complex compositions, style transfers, and targeted edits with flexible output aspect ratios.

Model Info
More informationlink
PricingView pricing in the Cloudflare dashboard

Usage

TypeScript
const response = await env.AI.run(
'pruna/p-image-edit',
{
prompt: 'Transform the subject into a watercolor painting style with vibrant colors',
images: ['https://huggingface.co/spaces/yisol/IDM-VTON/resolve/main/example/human/00121_00.jpg'],
aspect_ratio: '1:1',
},
)
console.log(response)
Watercolor Style

Parameters

aspect_ratio
stringrequireddefault: match_input_imageenum: match_input_image, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3Output aspect ratio.
disable_safety_checker
booleanrequireddefault: falseDisable safety checker for generated images.
prompt
stringrequiredText instruction describing the desired edit or composition.
seed
integermaximum: 9007199254740991minimum: -9007199254740991Random seed for reproducible generation.
turbo
booleanrequireddefault: trueRun faster with additional optimizations. For complicated tasks, it is recommended to turn this off.

API Schemas (Raw)

Input
Output