# P-Image Edit > PrunaAI's sub-1-second multi-image editing model supporting up to 5 reference images with state-of-the-art quality ## Quick Reference - Model ID: p-image-edit - Creator: PrunaAI - Status: active - Base URL: https://api.lumenfall.ai/openai/v1 ## Specifications - Max Input Images: 5 - Input Modalities: text, image - Output Modalities: image ## Model Identifiers - Primary Slug: p-image-edit ## Dates ## Tags image-editing, image-to-image ## Available Providers ### Replicate - Config Key: replicate/p-image-edit - Provider Model ID: prunaai/p-image-edit - Pricing: - notes: ["Sub-second multi-image editing model", "Supports up to 5 reference images"] - source: official - currency: USD - components: [{"type" => "output", "metric" => "image", "unit_price" => 0.01}] - source_url: https://replicate.com/prunaai/p-image-edit - effective_at: 2025-12-30 ## Performance Metrics Provider performance over the last 30 days. ### replicate - Median Generation Time (p50): 1980ms - 95th Percentile Generation Time (p95): 3827ms - Average Generation Time: 2249ms - Success Rate: 57.9% - Total Requests: 19 - Time to First Byte (p50): 1980ms - Time to First Byte (p95): 4769ms ## Image Gallery 2 images available for this model. - Curated examples: 2 - "Add a plane to this beautiful sunset city" - "Add a capybara" ## Example Prompt The following prompt was used to generate an example image in our playground: Add a capybara ## Code Examples ### Text to Image (Generation) #### cURL curl -X POST \ https://api.lumenfall.ai/openai/v1/images/generations \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "p-image-edit", "prompt": "A serene mountain landscape at sunset", "size": "1024x1024" }' # Response: # { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] } #### JavaScript import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'YOUR_API_KEY', baseURL: 'https://api.lumenfall.ai/openai/v1' }); const response = await client.images.generate({ model: 'p-image-edit', prompt: 'A serene mountain landscape at sunset', size: '1024x1024' }); // { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } console.log(response.data[0].url); #### Python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.lumenfall.ai/openai/v1" ) response = client.images.generate( model="p-image-edit", prompt="A serene mountain landscape at sunset", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ### Image Editing #### cURL curl -X POST \ https://api.lumenfall.ai/openai/v1/images/edits \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -F "model=p-image-edit" \ -F "image=@source.png" \ -F "prompt=Add a starry night sky to this image" \ -F "size=1024x1024" # Response: # { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] } #### JavaScript import OpenAI from 'openai'; import fs from 'fs'; const client = new OpenAI({ apiKey: 'YOUR_API_KEY', baseURL: 'https://api.lumenfall.ai/openai/v1' }); const response = await client.images.edit({ model: 'p-image-edit', image: fs.createReadStream('source.png'), prompt: 'Add a starry night sky to this image', size: '1024x1024' }); // { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } console.log(response.data[0].url); #### Python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.lumenfall.ai/openai/v1" ) response = client.images.edit( model="p-image-edit", image=open("source.png", "rb"), prompt="Add a starry night sky to this image", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ## About ## Overview P-Image Edit is a high-speed image-to-image editing model developed by PrunaAI designed for near-instantaneous visual transformations. It stands out in the generative AI landscape by offering sub-second inference times while supporting up to five separate reference images for a single edit. This multi-reference capability allows the model to synthesize stylistic and structural elements from several sources simultaneously, maintaining high visual quality without typical performance bottlenecks. ## Strengths * **Latency Performance:** Achieves sub-one-second processing times, making it suitable for real-time interactive applications and high-throughput production pipelines. * **Multi-Reference Composition:** Supports inputting up to five reference images, allowing the model to bridge visual information across multiple context sources more effectively than single-image editing models. * **Temporal and Structural Consistency:** Maintains state-of-the-art visual quality during the editing process, ensuring that the output respects the core attributes of the primary input while integrating text-prompted changes. * **Flexibility in Modality:** Operates on a text-and-image input structure, providing granular control over how specific visual elements are modified or preserved. ## Limitations * **Inference Constraints:** While optimized for speed, the sub-second performance may vary depending on the resolution of the input images or the complexity of the specified edits. * **Context Management:** Balancing five different reference images requires precise prompting; the model may prioritize certain references over others depending on the visual weights of the input data. * **Limited Customization:** Being a specialized editing model, it may not perform as well in "text-to-image" only scenarios compared to general-purpose diffusion models like Stable Diffusion XL. ## Technical Background P-Image Edit is built by PrunaAI with a focus on optimization and efficient inference. While the specific architecture builds upon modern diffusion techniques, the primary technical innovation lies in its multi-reference processing layer and the underlying acceleration that enables sub-second execution. This allows the model to bypass the heavy computational overhead usually associated with high-fidelity image-to-image tasks. ## Best For * **Real-time Creative Tools:** Applications where users need immediate feedback while adjusting image styles or elements. * **Batch Media Processing:** Workflows that require applying consistent edits or branding across large sets of images quickly. * **Concept Blending:** Scenarios where a final image needs to combine the aesthetic of several different source inspirations into a cohesive new output. P-Image Edit is available for integration and testing through Lumenfall’s unified API and playground, providing a streamlined way to incorporate high-speed image editing into your stack. ## Frequently Asked Questions ### How much does P-Image Edit cost? P-Image Edit starts at $0.01 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing. ### How do I use P-Image Edit via API? You can use P-Image Edit through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "p-image-edit". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer P-Image Edit? P-Image Edit is available through Replicate on Lumenfall. Lumenfall automatically routes requests to the best available provider. ## Links - Model Page: https://lumenfall.ai/models/prunaai/p-image-edit - About: https://lumenfall.ai/models/prunaai/p-image-edit/about - Providers, Pricing & Performance: https://lumenfall.ai/models/prunaai/p-image-edit/providers - API Reference: https://lumenfall.ai/models/prunaai/p-image-edit/api - Benchmarks: https://lumenfall.ai/models/prunaai/p-image-edit/benchmarks - Use Cases: https://lumenfall.ai/models/prunaai/p-image-edit/use-cases - Gallery: https://lumenfall.ai/models/prunaai/p-image-edit/gallery - Playground: https://lumenfall.ai/playground?model=p-image-edit - API Documentation: https://docs.lumenfall.ai