by Pruna AI

Pruna stills and edits from up to 9 pictures, in five sizes up to 4K

pruna-ai/p-h3-image/text-to-image
P-H3-Image AI Image Generator online
  • Up to 4K
  • Up to 9 reference images
  • 15 aspect ratios
  • Create Image
  • Edit Image

About P-H3-Image

The P-H3-Image API serves Pruna AI's open-source MiniMax H3 image adaptation across text-to-image (~30 s) and multi-image edit (~51 s) endpoints. With integer seed control, five resolution tiers up to 4K and fifteen aspect ratios, it suits reproducible creative workflows, aerial and editorial pipelines, and material-guided photo edits.

Call it with the model name pruna-ai/p-h3-image/text-to-image on POST /jobs/createTask, from $0.024.

Introduction

P-H3-Image Text to Image turns your scene description into one still. Pruna AI released its open weights on November 3, 2026, adapting MiniMax H3 for image generation and editing.

Key features

Select 1k, 1.5k, 2k, 3k or 4k independently of the 15 aspect ratios. In our tests the 4k setting at 16:9 produced 5472 x 3072 pixels. The result can be JPEG, PNG or WebP.

Request parameters

ParameterRequiredDescription
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 1k · 1.5k · 2k · 3k · 4k · Default: 1k
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
output_formatNoFile type of the result. jpeg · png · webp · Default: jpeg

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.

OptionUSD per image
resolution 1K$0.024
resolution 1.5K$0.036
resolution 2K$0.048
resolution 3K$0.096
resolution 4K$0.144

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

Use scene descriptions for editorial portraits, diner film stills or short neon signs. For changes to existing pictures, choose Image Editing.

Prompt guide & pro tips

Name a subject, clothing, place and light source. Pruna AI says short quoted words can render, but long passages and small lettering can become false text. Keep the seed while changing one element to compare results; it does not lock the output. In our tests larger tiers took longer, with one 4k generation reaching 241 seconds of model time.

API quick start

Call the P-H3-Image 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 are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model pruna-ai/p-h3-image/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/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 API

  • Reproducible creative tools that iterate on a fixed seed at 1K before re-rendering winning frames at 3K or 4K.
  • Material-transfer product editors pulling glass, metal or textile finishes from a second reference photo.
  • Multi-format editorial generators outputting across 15 aspect ratios from square thumbnails to ultrawide banners.

P-H3-Image parameter notes

  • Pass seed as an integer to reproduce composition while comparing prompt or resolution adjustments.
  • In edit prompts, address uploaded files as Picture 1, Picture 2 (up to 9 entries in image_urls), placing the scene to preserve first.
  • resolution spans five steps from 1k up to 4k; 4k runs take roughly four minutes, so keep interactive previews at 1k or 1.5k.
  • Keep prompts concise (two to three clear sentences); bloated keyword lists degrade composition quality.

How P-H3-Image API pricing adds up

Billed per image scaled across five resolution tiers from 1K to 4K, with multi-image edits adding a small charge per reference image. Query /jobs/quote with your exact resolution and image_urls before submitting.

  • resolution 1k: $0.024 per run, $2.40 for 100 runs
  • resolution 4k: $0.144 per run, $14.40 for 100 runs

Async jobs, webhooks and rate limits

Every P-H3-Image 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/text-to-image never runs or bills twice.

Common P-H3-Image API errors

errorCodeWhat it usually means and how to fix it
invalid_requestConfirm image_urls contains 1 to 9 URLs, resolution matches one of the 5 enum tiers, and seed is a valid integer.
timeout4K jobs can run around four minutes; configure async webhook callbacks instead of short client HTTP waits.
invalid_assetOne of the reference URLs could not be downloaded or decoded; verify direct public access and image MIME headers.

P-H3-Image API questions

How much does the P-H3-Image API cost?

P-H3-Image starts at $0.024 per image with Create Image, its lowest-priced task. Prices by option: 1K $0.024 per image, 1.5K $0.036 per image, 2K $0.048 per image, 3K $0.096 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 in the API?

Put pruna-ai/p-h3-image/text-to-image for Create Image; pruna-ai/p-h3-image/edit for Edit Image in the model field of POST /jobs/createTask.

Why does P-H3-Image produce different images than MiniMax H3-Image on the same prompt?

Pruna AI independently adapted the open H3 weights, giving P-H3-Image its own rendering characteristics plus integer seed support and fifteen aspect ratios.

How should I format reference tokens in P-H3-Image edit prompts?

Place the base image first in image_urls and call it Picture 1 in your prompt, followed by Picture 2, Picture 3 and so on.

Can I load custom LoRAs on the P-H3-Image endpoint?

No—switch your call string to the P-H3-Image LoRA endpoint when attaching .safetensors weights.

What are the limits of the P-H3-Image 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 without writing code?

Run P-H3-Image 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

MiniMax H3 Image LoRA runs MiniMax's own H3 weights at 1K or 2K. P-H3-Image is a separate adaptation by Pruna, so the same prompt and seed give a different picture.

More about P-H3-Image