Pricing
Compare models →Just $0.005 per image.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for generation.JSON schema{
"x-rows": 4
} |
width | integer | Output image width in pixels.Default: 512Minimum: 256 · Maximum: 1440 |
height | integer | Output image height in pixels.Default: 512Minimum: 256 · Maximum: 1440 |
lora_weights | string | LoRA weights in Hugging Face format, for example huggingface.co/PrunaAI/p-image-comic-noir-art-lora/weights.safetensors. |
lora_scale | number | Scale of the LoRA weights.Default: 0.5Minimum: -1 · Maximum: 3 |
hf_api_token | string | Optional Hugging Face API token used to access the LoRA weights. |
aspect_ratio | string | Aspect ratio of the generated image.1:116:99:164:33:43:22:3custom"custom" |
output_format | string | Output image format.pngjpegwebp"png" |
seed | integer | Random seed. -1 means random. |
README
Pruna AI P-Image Text-to-Image LoRA
Pruna AI P-Image Text-to-Image LoRA generates images from natural-language prompts while allowing you to apply a custom LoRA for style or subject control. It is designed for workflows where you want the flexibility of text-to-image generation together with a Pruna-trained LoRA for more specialized visual outputs.
Why Choose This?
- LoRA-powered image generation
Generate images from prompts while steering the result with a custom LoRA.
- Custom style and subject control
Use lora_weights to apply a specialized visual style, character concept, or trained aesthetic.
- Flexible sizing options
Choose a preset aspect_ratio or switch to custom for direct width and height control.
- LoRA strength adjustment
Use lora_scale to control how strongly the LoRA influences the final image.
- Seed support for reproducibility
Reuse the same seed to generate more consistent variations.
- Affordable fixed pricing
Each generation run uses a simple flat per-image price.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate. |
| width | No | Output image width. Only takes effect when aspect_ratio is set to custom. |
| height | No | Output image height. Only takes effect when aspect_ratio is set to custom. |
| lora_weights | No | URL or Hugging Face path to the LoRA weights you want to use. The LoRA must be trained with the Pruna T2I Trainer. |
| lora_scale | No | Controls how strongly the LoRA influences the generation. |
| hf_api_token | No | Hugging Face API token, useful when accessing a private LoRA repository. |
| aspect_ratio | No | Output aspect ratio. Use a preset ratio or custom. |
| output_format | No | Output image format, such as png. |
| seed | No | Random seed for reproducibility. Use the same seed to get more consistent outputs. |
How to Use
- Write your prompt — describe the subject, composition, style, lighting, and mood you want.
- Provide your LoRA — add
lora_weightspointing to the LoRA you want to use.
- Adjust LoRA strength (optional) — set
lora_scaleto control how strongly the LoRA affects the result.
- Choose aspect ratio — use a preset ratio or select
customif you want direct control over width and height.
- Set width and height (optional) — these only take effect when
aspect_ratiois set tocustom.
- Add a Hugging Face token (optional) — use
hf_api_tokenif your LoRA is hosted in a private Hugging Face repository.
- Set a seed (optional) — use a fixed seed for more reproducible generations.
- Submit — run the model and download the generated image.
Example Prompt
comic noir art style, a detective standing under a street lamp in the rain
Pricing
Just $0.005 per image.
Best Use Cases
- Custom style generation — Apply a trained LoRA to generate images in a specific visual style.
- Character and concept generation — Use LoRAs trained for specific characters, identities, or art directions.
- Brand or aesthetic consistency — Keep outputs aligned with a known visual language.
- Creative prototyping — Explore prompt variations with a reusable LoRA model.
- Specialized artwork generation — Generate images for niche styles that standard prompting alone may not capture as reliably.
Pro Tips
- Make sure your
lora_weightscome from a LoRA trained with the Pruna T2I Trainer.
- Keep prompts clear and focused so the LoRA can guide the result more effectively.
- Adjust
lora_scalegradually to find the right balance between prompt influence and LoRA influence.
- Use
customaspect ratio only when you need exactwidthandheightcontrol.
- If your LoRA is stored in a private Hugging Face repo, provide
hf_api_tokenso it can be accessed properly.
- Reuse the same
seedwhen you want more consistent iterations of the same concept.
Notes
promptis required.
widthandheightonly take effect whenaspect_ratiois set tocustom.
lora_weightsmust point to a LoRA trained by the Pruna T2I Trainer.
hf_api_tokenis only needed when the LoRA repository is private or otherwise requires authentication.
- Pricing is fixed at $0.005 per image.
Tested Example
{
"prompt": "comic noir art style, a detective standing under a street lamp in the rain",
"lora_weights": "huggingface.co/PrunaAI/p-image-comic-noir-art-lora/weights.safetensors",
"lora_scale": 0.8,
"aspect_ratio": "1:1",
"output_format": "png"}
Related Models
- Pruna AI P-Image Text-to-Image — Generate images directly from prompts without a LoRA.
- Pruna AI P-Image Edit — Edit existing images using natural-language instructions.
- Pruna AI P-Image Upscale — Enhance and enlarge existing images.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
P Image Text to Image LoRA Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/pruna-ai/p-image/text-to-image-lora 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",
"width": 512,
"height": 512,
"lora_weights": "example",
"lora_scale": 0.5,
"hf_api_token": "example",
"aspect_ratio": "custom",
"output_format": "png",
"seed": 0
}P Image Text to Image LoRA Image API — Frequently asked questions
What is the P Image Text To Image Lora API?
P Image Text To Image Lora is a Pruna Ai model for image generation, exposed as a REST API on OpenSIAI. Pruna AI P-Image Text to Image LORA is a fast AI image generation model that creates high-quality images from text prompts with LORA-based customization. Ready-to-use REST inference API for stylized image generation, brand-specific visuals, character design, product concepts, marketing creatives, and custom AI image 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 Text To Image Lora 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/text-to-image-lora.
How much does P Image Text To Image Lora cost per run or per second?
P Image Text To Image Lora starts at $0.005 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 Text To Image Lora accept?
Key inputs: prompt, aspect_ratio, seed, height, hf_api_token, lora_scale. 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/text-to-image-lora.
How long does P Image Text To Image Lora take to generate?
Reported generation time on OpenSIAI is around 5 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 Text To Image Lora 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.
