Introduction
P-Image LoRA Image editing changes one to five source images by instruction on P-Image-Edit from Pruna AI, with one optional LoRA for a specific edit style. Say what should change and what should stay; the result follows the first image's shape unless you pick a ratio.
Choose a mode by starting material
| What you have | Mode |
|---|---|
| one or more pictures to change | P-Image LoRA Image editing |
| a written description only | P-Image LoRA Text to image |
Key features
Edits by instruction
Outfits, light and framing change on request while faces and settings stay.
Up to five pictures at once
Two portraits taken separately came back as one scene with both faces kept. Refer to each picture by its number in the instruction.
Edit LoRAs
One LoRA trained for Qwen-Image-Edit can be loaded, such as a photo-to-anime or a next-shot LoRA. The instruction does most of the work; the LoRA steers the style of the change.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | The shape of the frame: wide, square or tall. 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 |
image_urls | Yes | Photos to edit or combine. Say in the prompt what each one adds. |
loras | No | Load your own LoRA files to lock in a style or character. Default: [] |
output_format | No | File type of the result. jpeg · png · webp · Default: jpeg |
prompt | Yes | Say what to change and what to keep. With several images, refer to them as image 1, image 2 and so on. |
seed | No | Reuse the same number to get a repeatable result. ≥ 0 · ≤ 2147483647 |
Pricing
Prices are in credits, the same credits you use on the website (1 credit = $0.01). The hold is taken when the task is accepted and settled to the actual charge when it finishes; failed tasks are refunded.
| Option | Credits per image | ≈ USD |
|---|---|---|
| Standard | 1.8 | $0.018 |
Each task is rounded up to whole credits, so one run at the lowest tier costs 2 credits per image ($0.02).
For an exact number before you run, send the same body to POST /jobs/quote.
Use cases
Wardrobe and light changes
Try outfits, times of day and colour grades on the same person and set without reshooting.
Group scenes from separate photos
Put people photographed apart into one frame for covers, posters or storyboards.
Restyling a set
Run a folder of photos through one edit LoRA, such as photo-to-anime, with the same instruction and seed.
Prompt guide & pro tips
Say what to keep
Name the parts that must survive, such as the face, the hair or the room, then describe the change. Unnamed details may drift.
Number your images
With several sources write 'the woman from image 1 and the man from image 2'. The output takes the first image's shape unless you set a ratio.
Use the LoRA's phrase
Edit LoRAs are trained with a fixed phrase, such as 'Next Scene:' or 'transform into anime'. Put it at the start of the instruction.
Leave LoRAs out for plain edits
A plain instruction works without any LoRA. Load one only when you want its particular style; LoRAs for text-to-image models fail here.
API quick start
Call the P-Image LoRA API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow- and use the same credits as the website.
- Send the request. POST /jobs/createTask with model pruna-ai/p-image-lora/edit and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "pruna-ai/p-image-lora/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_urls": [
"https://media.popnow.ai/influencer/examples/marco.webp"
],
"output_format": "jpeg"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
P-Image LoRA API questions
How much does the P-Image LoRA API cost?
P-Image LoRA starts at 2 credits ($0.02) per image with Edit Image, its cheapest task. Credits are the same as on the website (1 credit = $0.01), new accounts get 30 free credits, and failed tasks are refunded.
What is the model name for P-Image LoRA in the API?
Put pruna-ai/p-image-lora/text-to-image for Create Image; pruna-ai/p-image-lora/edit for Edit Image in the model field of POST /jobs/createTask.
Which LoRAs work here?
For text-to-image, LoRAs made with Pruna's P-Image trainer, and in our tests community LoRAs trained for Z-Image Turbo saved in the usual diffusers layout. For editing, LoRAs trained for Qwen-Image-Edit. A LoRA for FLUX, an SDXL model or the other endpoint fails the request instead of loading.
Can I load more than one LoRA?
No. The models take one weights file per request. Merge LoRAs into one file beforehand if you need two looks at once.
My LoRA is in a private Hugging Face repository. What can I do?
Upload the .safetensors file somewhere that serves it without a login and use that direct link. We do not take access tokens for third-party accounts.
What are the limits of the P-Image LoRA API?
Aspect ratios: 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3; Reference images: 5; Prompt length (characters): 5,000; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.
Can I try P-Image LoRA without writing code?
Yes. The Playground runs P-Image LoRA on your PopNow credits, needs no API key, and shows the matching code for every run.


