P-Image-Edit
P-Image-Edit is a real-time image editing model from Pruna AI. It supports multi image refinement, layout control, and style safe transformations while following prompts with high accuracy. Ideal for production pipelines that need consistent edits and tight latency budgets.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: imageInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Image output type.
Allowed values 3 values
-
outputFormat
string default: JPG -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `JPG`: Best for photorealistic images with smaller file sizes (no transparency).
- `PNG`: Lossless compression, supports high quality and transparency (alpha channel).
- `WEBP`: Modern format providing superior compression and transparency support.
**Transparency**: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., `PNG`, `WEBP`, `TIFF`). `JPG` does not support transparency.Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: sync -
Determines how the API delivers task results.
Allowed values 2 values
- Returns complete results directly in the API response.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for image generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for image generation.
Allowed values 2 values
- Disables checking.
- Performs a single check.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 20 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Inputs
Input resources for the task (images, audio, etc). These must be nested inside the inputs object.
inputs object.-
inputs»referenceImagesreferenceImages
array of strings min items: 1max items: 4 -
List of reference images (UUID, URL, Data URI, or Base64).
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: prunaai:2@1 -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string required min: 1 max: 2000 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
-
Width of the generated media in pixels.
Learn more 2 resources
-
Height of the generated media in pixels.
Learn more 2 resources
Provider Settings
Parameters specific to this model provider. These must be nested inside the providerSettings.prunaai object.
providerSettings.prunaai object.-
providerSettings»prunaai»turboturbo
boolean default: false -
Enable turbo mode for faster generation. May reduce subtle details in complex tasks.
Submerged Grand Piano Atrium
{
"taskType": "imageInference",
"taskUUID": "a1c88bd9-1e4c-47c2-9ed8-b4d5c8962f61",
"model": "prunaai:2@1",
"positivePrompt": "Transform the reference scene into a dreamlike flooded atrium while keeping the original architecture and grand piano position recognizable. Replace the stage floor with shallow crystal-clear water reflecting the balconies and ceiling. Add drifting koi fish beneath the water surface, clusters of water lilies near the piano legs, hanging vines descending from the upper railings, softened daylight pouring through the glass roof, scattered petals, gentle mist in the distance, and a serene abandoned-mansion atmosphere. Preserve realistic perspective, refined textures, and cohesive natural colors.",
"width": 1376,
"height": 768,
"providerSettings": {
"prunaai": {
"turbo": false
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/ae3cbe9a-032d-41f6-88d5-135b2e27f290.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "a1c88bd9-1e4c-47c2-9ed8-b4d5c8962f61",
"imageUUID": "67265111-4e6c-4e27-a69d-b1f61b788d0e",
"imageURL": "https://im.runware.ai/image/os/a24d12/ws/2/ii/67265111-4e6c-4e27-a69d-b1f61b788d0e.jpg",
"seed": 1119712308,
"cost": 0.0088
}Glasshouse Violin Repair Studio
{
"taskType": "imageInference",
"taskUUID": "280b77a1-f23c-4b43-af99-211134cc992d",
"model": "prunaai:2@1",
"positivePrompt": "Transform the reference workspace into an elegant glasshouse violin repair studio, preserving the original room structure and major furniture placement. Keep the central workbench, shelving, stool, and window positions consistent, but replace generic tools with luthier details: open violin cases, curled wood shavings, clamps, varnish jars, bridge templates, hanging strings, and a partially restored violin under a small task lamp. Let climbing ivy thread around the window frames and warm late-afternoon sunlight scatter through the glass, creating luminous reflections on polished wood. Add a few potted citrus trees, brass instruments for measuring, hand-labeled drawers, and a refined old-world craft atmosphere. Highly detailed, realistic editorial interior photography, natural textures, balanced composition, crisp focus.",
"width": 1184,
"height": 896,
"providerSettings": {
"prunaai": {
"turbo": false
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/eb3bd884-2ea6-4838-9448-5cbe1aba36c7.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "280b77a1-f23c-4b43-af99-211134cc992d",
"imageUUID": "82ace068-7d4b-4304-ba88-39149079ebec",
"imageURL": "https://im.runware.ai/image/os/a05d22/ws/2/ii/82ace068-7d4b-4304-ba88-39149079ebec.jpg",
"seed": 132205525,
"cost": 0.0088
}Rainy Stationery Shop Window
{
"taskType": "imageInference",
"taskUUID": "a7b6bc14-5d3d-4061-8cbe-efb4e10dada7",
"model": "prunaai:2@1",
"positivePrompt": "Transform the reference storefront into a cozy rainy-evening scene while keeping the same camera angle, window structure, shelf layout, and merchandise placement. Add soft amber interior glow, raindrops and streaks on the glass, faint street reflections, handwritten price tags, elegant paper textures, brushed brass details, folded maps, wax seals, ribbon spools, and a sleepy tabby cat curled on the inner windowsill. Make it cinematic and realistic with refined material detail, moody atmosphere, natural shadows, and believable urban ambience.",
"width": 1184,
"height": 896,
"providerSettings": {
"prunaai": {
"turbo": false
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/1275f0cf-ce2c-4db2-8561-5bdd179a63b9.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "a7b6bc14-5d3d-4061-8cbe-efb4e10dada7",
"imageUUID": "08851305-a54e-4732-9fad-9b6a22764441",
"imageURL": "https://im.runware.ai/image/os/a12d13/ws/2/ii/08851305-a54e-4732-9fad-9b6a22764441.jpg",
"seed": 1621561474,
"cost": 0.0088
}Rooftop Beekeeping Workshop Interior
{
"taskType": "imageInference",
"taskUUID": "0b5bd3f9-b186-4bfd-8131-861693395b93",
"model": "prunaai:2@1",
"positivePrompt": "Transform the reference loft into a refined rooftop beekeeping workshop interior while keeping the original room structure and camera angle. Add neatly arranged wooden hive boxes, glass jars of amber honey, labeled botanical samples, folded veils and gloves, small smokers, wax molds, copper tools, drying herbs hanging near the skylights, and a few potted flowering plants suited for pollinators. Keep the scene realistic, tactile, and production-ready with natural daylight, warm wood tones, subtle golden highlights, clean organization, and high-detail material textures. No people, no text overlays, no logos.",
"width": 1184,
"height": 896,
"providerSettings": {
"prunaai": {
"turbo": false
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/c26c8b02-4265-4854-bd8e-e0d5f3c515b1.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "0b5bd3f9-b186-4bfd-8131-861693395b93",
"imageUUID": "0130a70f-b683-4e6c-9d90-f2eb33a02f90",
"imageURL": "https://im.runware.ai/image/os/a15d18/ws/2/ii/0130a70f-b683-4e6c-9d90-f2eb33a02f90.jpg",
"seed": 341720391,
"cost": 0.0088
}