Pricing
Compare models →Just $0.01 per generated image.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Edit instruction.JSON schema{
"x-rows": 4
} |
imagesRequired | array | Reference image URLs. Upload 1 to 5 images.Items: 0–5JSON schema{
"items": {
"type": "string"
}
} |
lora_weights | string | LoRA weights in Hugging Face format, for example huggingface.co/PrunaAI/p-image-edit-next-scene-lora/weights.safetensors. Use LoRAs trained for p-image-edit-lora. |
lora_scale | number | Scale of the LoRA weights.Default: 1Minimum: -1 · Maximum: 3 |
hf_api_token | string | Optional Hugging Face API token used to access the LoRA weights. |
aspect_ratio | string | Aspect ratio of the generated image. match_input_image follows the first input image.match_input_image1:116:99:164:33:43:22:3"match_input_image" |
output_format | string | Output image format.pngjpegwebp"png" |
seed | integer | Random seed. -1 means random. |
README
Pruna AI P-Image Edit LoRA
Pruna AI P-Image Edit LoRA edits one or more input images using a natural-language instruction, with optional LoRA guidance for stronger style or edit control. It is designed for workflows where you want prompt-based image editing together with a LoRA trained specifically for the Pruna p-image-edit-lora pipeline.
Why Choose This?
- LoRA-guided image editing
Edit images with natural-language instructions while steering the result with a compatible LoRA.
- Multi-image reference support
Use one to five input images to guide appearance, structure, composition, or scene transformation.
- Edit-specific LoRA control
Apply lora_weights and tune lora_scale for stronger stylistic or transformation control.
- Flexible aspect ratio handling
Use match_input_image to follow the first input image by default, or select a preset aspect ratio when needed.
- Private LoRA support
Use hf_api_token when accessing a private or gated Hugging Face LoRA repository.
- Simple fixed pricing
Each run uses a flat per-image price.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text instruction describing the desired edit. |
| images | Yes | One to five reference images used for the edit. When using multiple images, describe their roles clearly in the prompt. |
| lora_weights | No | Optional Hugging Face LoRA path, such as huggingface.co/PrunaAI/p-image-edit-next-scene-lora/weights.safetensors. The LoRA should be trained for p-image-edit-lora. |
| lora_scale | No | LoRA strength. Default: 0.5. Official range: -1 to 3. |
| hf_api_token | No | Optional Hugging Face token for private or gated LoRA repositories. |
| aspect_ratio | No | Output aspect ratio. Default: match_input_image, which follows the first input image. Other supported values: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, and 2:3. |
| output_format | No | Output image format: png, jpeg, or webp. |
| seed | No | Random seed. Use -1 for random generation. |
How to Use
- Upload your reference images — provide one to five images you want to use for the edit.
- Write your prompt — describe what should change and what should remain unchanged.
- Add a LoRA (optional) — provide
lora_weightsif you want LoRA-guided editing.
- Adjust LoRA strength (optional) — set
lora_scaleto control how strongly the LoRA affects the result.
- Choose aspect ratio — keep
match_input_imageto follow the first input image, or select a preset ratio if needed.
- Add a Hugging Face token (optional) — use
hf_api_tokenif your LoRA is private or gated.
- Choose output format — select
png,jpeg, orwebp.
- Set a seed (optional) — use
-1for random output, or a fixed value for more reproducible edits.
- Submit — run the model and download the edited image.
Example Prompt
Make this scene look like the next scene style.
Pricing
Just $0.01 per generated image.
Best Use Cases
- Scene-to-scene style transfer — Rework one scene to match the visual style of another.
- Character-consistent editing — Preserve identity while changing mood, styling, or composition.
- Reference-guided transformations — Use multiple images and a LoRA for tighter edit control.
- Creative adaptation — Turn existing images into new variants for storytelling, design, or campaign work.
- Edit-specific LoRA workflows — Apply LoRAs trained for editing rather than text-to-image generation.
Pro Tips
- Use a LoRA trained specifically for p-image-edit-lora for best compatibility.
- Text-to-image LoRAs should be used with p-image-lora, not this model.
- When using multiple images, explain each image’s role clearly in the prompt.
- Use
match_input_imagewhen you want to preserve the framing of the first input image.
- Adjust
lora_scalegradually to balance prompt influence and LoRA influence.
- If your LoRA is private or gated on Hugging Face, provide
hf_api_token.
- Reuse the same
seedwhen you want more consistent edit iterations.
Notes
- Both
promptandimagesare required.
imagessupports one to five input images.
lora_weightsis optional.
- LoRAs for this model should be trained for p-image-edit-lora.
- Text-to-image LoRAs should be used with p-image-lora instead.
aspect_ratiodefaults tomatch_input_image, which follows the first input image.
seeduses-1for random generation.
- Turbo mode is off and the safety checker is disabled by default; these are not user-facing controls.
- Pricing is fixed at $0.01 per generated image.
Related Models
- Pruna AI P-Image Text-to-Image — Generate images directly from prompts.
- Pruna AI P-Image Text-to-Image LoRA — Generate images from prompts with LoRA style control.
- Pruna AI P-Image Edit — Edit images with natural-language instructions without a LoRA.
- Pruna AI P-Image Upscale — Enhance and enlarge existing images.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
P Image Edit LoRA Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/pruna-ai/p-image/edit-lora for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"images": [],
"lora_weights": "example",
"lora_scale": 1,
"hf_api_token": "example",
"aspect_ratio": "match_input_image",
"output_format": "png",
"seed": 0
}P Image Edit LoRA Image API — Frequently asked questions
What is the P Image Edit Lora API?
P Image Edit Lora is a Pruna Ai model for image editing, exposed as a REST API on OpenSIAI. Pruna AI P-Image Edit LORA is a fast AI image editing model that edits and transforms images with LORA-based customization. Ready-to-use REST inference API for text-guided image editing, style changes, character consistency, product image updates, marketing assets, and custom AI editing workflows with simple integration, no coldstarts, and affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the P Image Edit Lora API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/pruna-ai/p-image/edit-lora.
How much does P Image Edit Lora cost per run or per second?
P Image Edit Lora starts at $0.01 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does P Image Edit Lora accept?
Key inputs: prompt, images, aspect_ratio, seed, hf_api_token, lora_scale. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/pruna-ai/p-image/edit-lora.
How long does P Image Edit Lora take to generate?
Reported generation time on OpenSIAI is around 6 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use P Image Edit Lora outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Pruna Ai). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
