About P-H3-Image LoRA
The P-H3-Image LoRA API adds live multi-LoRA loading onto Pruna AI's P-H3-Image backbone across text-to-image (~33 s) and multi-reference edit (~47 s) endpoints. Pass up to three direct .safetensors URLs with independent strength values from 0 to 4 to embed custom brand aesthetics, realism fixes or retro broadcast looks directly in production pipelines.
Call it with the model name pruna-ai/p-h3-image-lora/text-to-image on POST /jobs/createTask, from $0.042.
Introduction
P-H3-Image LoRA Text to Image accepts MiniMax H3 LoRA weights for a still generated from words. It uses the same underlying P-H3-Image model as the endpoint without attachments.
Key features
Attach no more than three files and assign a scale between 0 and 4 to each. In our tests vh5tape changed a same-seed image at strength 1, while a realism file at 0.8 produced little visible difference. Five size tiers remain available through 4k.
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 · 21:9 · 9:21 · 2:1 · 1:2 · 3:1 · 1:3 · 5:4 · 4:5 · Default: 1:1 |
loras | No | Add LoRA weights compatible with this model to guide its style or character. Default: [] |
output_format | No | File type of the result. jpeg · png · webp · Default: jpeg |
prompt | Yes | Describe what you want to make. |
resolution | No | Choose an available output size. 1k · 1.5k · 2k · 3k · 4k · Default: 1k |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per image |
|---|---|
| resolution 1K | $0.042 |
| resolution 1.5K | $0.054 |
| resolution 2K | $0.066 |
| resolution 3K | $0.114 |
| resolution 4K | $0.162 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
Try the motel scene with a VHS file or the club trio with Studio1939 style. For a source-photo conversion, open LoRA Image Editing.
Prompt guide & pro tips
Begin with a 1k control without a LoRA, then repeat the prompt and seed with the file enabled. Use the actual .safetensors download URL and the file's trigger.
API quick start
Call the P-H3-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-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model pruna-ai/p-h3-image-lora/text-to-image 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-h3-image-lora/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"aspect_ratio": "1:1",
"resolution": "1k",
"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.
What to build with the P-H3-Image LoRA API
- Branded visual studios applying proprietary MiniMax H3 style LoRAs consistently across marketing assets.
- Specialized realism or analog-VHS restyling filters powered by curated Hugging Face .safetensors weights.
- Creator platforms letting advanced users bring custom character LoRAs into both generation and 9-photo editing.
P-H3-Image LoRA parameter notes
- loras takes an array of up to 3 objects containing path (direct .safetensors download URI, such as Hugging Face resolve/main) and scale (0 to 4).
- Always validate that LoRA URLs return binary weight files rather than HTML pages—unreachable LoRAs are silently skipped upstream while the image is still billed.
- Include each LoRA's trigger phrase near the start of prompt and lock seed when calibrating scale values between 0.5 and 1.2.
- Compatible strictly with MiniMax H3 architecture LoRAs; route FLUX or SDXL weights to their matching LoRA endpoints.
How P-H3-Image LoRA API pricing adds up
Billed per image across five resolution tiers up to 4K, priced slightly above base P-H3-Image to cover dynamic LoRA loading; edits add a small fee per reference photo. Always call /jobs/quote with your payload first.
- resolution 1k: $0.042 per run, $4.20 for 100 runs
- resolution 4k: $0.162 per run, $16.20 for 100 runs
Async jobs, webhooks and rate limits
Every P-H3-Image LoRA request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for pruna-ai/p-h3-image-lora/text-to-image never runs or bills twice.
Common P-H3-Image LoRA API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | Ensure loras has at most 3 items with scale between 0 and 4, and image_urls stays within 9 entries on edit. |
invalid_asset | Verify reference image URLs are reachable; also pre-flight HEAD-check custom .safetensors links so broken LoRAs are not silently skipped. |
timeout | 4K LoRA renders and cold weight downloads can extend run time; use webhooks instead of short polling loops. |
P-H3-Image LoRA API questions
How much does the P-H3-Image LoRA API cost?
P-H3-Image LoRA starts at $0.042 per image with Create Image, its lowest-priced task. Prices by option: 1K $0.042 per image, 1.5K $0.054 per image, 2K $0.066 per image, 3K $0.114 per image. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for P-H3-Image LoRA in the API?
Put pruna-ai/p-h3-image-lora/text-to-image for Create Image; pruna-ai/p-h3-image-lora/edit for Edit Image in the model field of POST /jobs/createTask.
What happens if a user supplies a broken Hugging Face LoRA link?
Upstream skips any LoRA that cannot be downloaded and completes the render with base weights while still charging, so pre-validate .safetensors URLs in your backend.
How can I programmatically compare a LoRA on versus off?
Keep prompt and seed identical and run once with scale set to 0 (or via base p-h3-image), then rerun with your target scale.
Can I combine multiple LoRAs in one API request?
Yes—pass up to three entries in the loras array, each with its own path and scale.
What are the limits of the P-H3-Image LoRA API?
Resolutions: 1K · 1.5K · 2K · 3K · 4K; Aspect ratios: 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 +9; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.
Can I try P-H3-Image LoRA without writing code?
Run P-H3-Image LoRA in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All P-H3-Image models
Without LoRAs, P-H3-Image does the same text to image and editing for less per image.
More about P-H3-Image LoRA
- Endpoints
- P-H3-Image LoRA · Edit Image
