by Pruna AI

P-H3-Image stills and edits with up to three H3 LoRAs

pruna-ai/p-h3-image-lora/text-to-image
  • Up to 4K
  • Up to 9 reference images
  • 15 aspect ratios
  • Loads your own LoRA
  • Create Image
  • Edit Image

About P-H3-Image LoRA

P-H3-Image LoRA is Pruna AI's P-H3-Image with up to three MiniMax H3 LoRA files loaded, each with its own strength from 0 to 4. It makes stills from a written scene or edits using up to nine pictures, in five sizes up to 4K.

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

ParameterRequiredDescription
aspect_ratioNoThe 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
lorasNoAdd LoRA weights compatible with this model to guide its style or character. Default: []
output_formatNoFile type of the result. jpeg · png · webp · Default: jpeg
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 1k · 1.5k · 2k · 3k · 4k · Default: 1k
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647

Pricing

Prices are in USD. The API uses a separate USD balance. Website credits cannot be used or transferred to it, and API funds cannot be transferred to website credits. When a task is accepted, we reserve the maximum quoted amount from your API 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.

OptionUSD 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

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls use your separate USD balance.
  2. 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.
  3. 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.

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 cheapest 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. The API uses a separate USD balance. When a task is accepted, we reserve the maximum quoted amount from your API 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.

Why did a wrong LoRA link still produce a billed image?

An invalid link can be silently skipped while image generation completes at the LoRA rate. Our repository-page and missing-file tests returned the same pixels as a scale-0 control. Supply the direct .safetensors download address, then check the result against a same-seed run without the LoRA.

How can I tell whether a LoRA changed the result?

Keep the prompt, seed, ratio and tier fixed while switching the LoRA on and off. Our VHS file showed a clear difference at scale 1; the realism file at 0.8 had little visible effect. Similar results warrant checking the link, but do not establish a loading failure by themselves.

What if I leave the LoRA list empty?

In our tests an empty list produced nearly the same composition as the base P-H3-Image endpoint with a matching prompt and seed, though the files differed. The fixed per-image LoRA surcharge still applies with zero attachments.

Can a LoRA transform an existing photograph?

Yes, both modes accept loras. The stage-photo cartoon test retained the pose, green dress and microphone after applying Studio1939 style at scale 1.

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 with your API USD balance, without an API key. 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