Pricing
Compare models →Just $0.01 per 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"
}
} |
aspect_ratio | string | The aspect ratio of the generated image. If not specified, it is determined automatically from the input image.xxx-empty1:116:99:164:33:43:22:3JSON schema{
"x-placeholder": "Select aspect ratio",
"x-clearable": true
} |
output_format | string | Output image format.pngjpegwebp"png" |
seed | integer | Random seed. -1 means random. |
README
Pruna AI P-Image Edit
Pruna AI P-Image Edit transforms one or more reference images using natural-language editing instructions. It is designed for image modification workflows such as outfit changes, style transfer, object replacement, visual refinement, and other prompt-guided image edits.
Why Choose This?
- Prompt-driven image editing
Edit images by describing exactly what you want to change in natural language.
- Multi-image reference support
Upload one or more images to guide the edit, making it easier to preserve identity, style, or visual consistency.
- Flexible aspect ratio control
Choose the output aspect ratio that best fits your use case.
- Multiple output formats
Export the edited image in a supported format such as png.
- Seed support for reproducibility
Use seed to get more consistent results across repeated edits.
- Simple fixed pricing
Each edit run uses a straightforward per-image price.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text instruction describing the desired edit. |
| images | Yes | One or more reference images used for the edit. |
| aspect_ratio | No | Optional output aspect ratio. Leave empty to match the first input image. |
| output_format | No | Output image format, such as png. |
| seed | No | Random seed for reproducibility. Use the same seed to get more consistent results. |
How to Use
- Upload your reference images — provide one or more images you want to use for the edit.
- Write your prompt — describe what should change and what should stay consistent.
- Choose aspect ratio (optional) — leave empty to match the first input image, or select an output ratio.
- Choose output format (optional) — select the format that best fits your workflow.
- Set a seed (optional) — use a fixed seed for more reproducible results.
- Submit — run the model and download the edited image.
Example Prompt
Change the figure 1 man's suit to the clothes in figure 2.
Pricing
Just $0.01 per image.
Best Use Cases
- Outfit and apparel changes — Replace clothing or accessories while preserving the subject.
- Style transfer — Apply the look or styling of one image to another.
- Visual refinement — Improve or adjust details using prompt-based instructions.
- Character consistency edits — Modify appearance while keeping identity and composition stable.
- Creative image adaptation — Rework an existing image into a new variation for marketing, design, or social content.
- Reference-guided editing — Use multiple images when you need stronger control over the desired result.
Pro Tips
- Be specific about what should change and what should remain unchanged.
- If using multiple images, make sure each image clearly supports the edit you want.
- Mention identity, clothing, background, or composition explicitly when consistency matters.
- Use the same
seedwhen you want to iterate on an edit with more consistent outputs.
- Keep prompts short and direct for simple edits, and add more detail only when necessary.
Notes
- Both
promptandimagesare required.
imagescan include one or more reference images.
seedhelps with reproducibility but may not guarantee identical results in every case.
- Pricing is fixed at $0.01 per image.
Related Models
- Pruna AI P-Image Text-to-Image — Generate new images directly from natural-language prompts.
- Other Pruna AI image generation and image editing models may be useful when you need different quality, speed, or workflow trade-offs.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
P Image Edit API example
The catalog lists POST https://api.opensi.com.ai/api/v3/pruna-ai/p-image/edit 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": [
"https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251120/6784e7f4b50aebc7e17fe396/4442lw36u7re.jpg"
],
"aspect_ratio": "1:1",
"output_format": "png",
"seed": 0
}P Image Edit API — Frequently asked questions
What is the P Image Edit API?
P Image Edit is a Pruna Ai model for image editing, exposed as a REST API on OpenSIAI. Pruna AI P-Image Edit is a fast AI image editing model that edits and transforms images based on text instructions and reference images. Ready-to-use REST inference API for photo retouching, creative edits, product image updates, background changes, marketing assets, and AI image 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 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.
How much does P Image Edit cost per run or per second?
P Image Edit 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 accept?
Key inputs: prompt, images, aspect_ratio, seed, output_format. 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.
How long does P Image Edit 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 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.
