Pricing
Compare models →Pricing is based on the selected `steps` value.
| Training run | Cost |
|---|---|
steps = 100 | $0.18 |
steps = 101 (default) | $0.1818 |
steps = 250 | $0.45 |
steps = 500 | $0.90 |
steps = 1000 | $1.80 |
steps = 2000 | $3.60 |
Billing Rules
- Pricing scales linearly with
steps - A run with
steps= 1000 (1,000 steps) costs $1.80 - Higher
stepsvalues increase total training cost proportionally default_captiondoes not affect pricing
Input schema
| Parameter | Type | Description |
|---|---|---|
image_dataRequired | string | Training image archive URL.JSON schema{
"x-accept": ".zip,application/zip"
} |
steps | integer | Number of training steps.Default: 101Minimum: 1 |
default_caption | string | Default caption for images without .txt files. If captions are missing and this is empty, training can fail. |
README
Pruna AI P-Image Text-to-Image Trainer
Pruna AI P-Image Text-to-Image Trainer is a fast training workflow for creating custom LoRAs for the Pruna text-to-image ecosystem. Upload your training image data, optionally provide a default caption, choose the number of training steps, and generate a LoRA that can be used to steer future image generation toward your style, subject, or brand look.
Why Choose This?
- Fast custom LoRA training
Train a text-to-image LoRA for specialized styles, subjects, or branded visuals.
- Simple training interface
Provide your training image data, optional default caption, and training steps without a complex setup process.
- Optional caption guidance
Use default_caption to provide consistent text conditioning across the training dataset.
- Flexible training depth
Use steps to balance speed, cost, and how strongly the LoRA learns your dataset.
- Built for the Pruna image stack
Trained outputs are intended for downstream use with Pruna text-to-image LoRA workflows.
- Production-ready API
Suitable for custom style pipelines, branded asset generation, and repeatable image workflow customization.
Parameters
| Parameter | Required | Description |
|---|---|---|
| image_data | Yes | Training image data used to create the LoRA. |
| default_caption | No | Optional default caption applied across the training workflow for more consistent conditioning. |
| steps | No | Number of training steps. Higher values generally increase training time and cost. Default: 101. |
How to Use
- Upload your training data — provide the image dataset you want to use for training.
- Add a default caption (optional) — use a short caption if you want more consistent text conditioning across the dataset.
- Set training steps — choose how many steps to run based on your desired balance of speed and training strength.
- Submit — start the training job.
- Use the trained LoRA — apply the resulting LoRA in downstream Pruna text-to-image LoRA workflows.
Example Workflow
Train a custom style LoRA from a curated image set, optionally using a shared default caption, then use the resulting weights in Pruna AI P-Image Text-to-Image LoRA for generation.
Pricing
Pricing is based on the selected `steps` value.
| Training run | Cost |
|---|---|
steps = 100 | $0.18 |
steps = 101 (default) | $0.1818 |
steps = 250 | $0.45 |
steps = 500 | $0.90 |
steps = 1000 | $1.80 |
steps = 2000 | $3.60 |
Billing Rules
- Pricing scales linearly with
steps
- A run with
steps= 1000 (1,000 steps) costs $1.80
- Higher
stepsvalues increase total training cost proportionally
default_captiondoes not affect pricing
Best Use Cases
- Custom style training — Create LoRAs for a distinct visual style or art direction.
- Brand consistency — Train reusable LoRAs for campaigns, products, or branded aesthetics.
- Subject-focused generation — Teach the model a recurring character, fashion look, or visual concept.
- Creative workflow personalization — Build specialized LoRAs for repeatable prompt-driven generation.
- Marketing asset pipelines — Create tailored generation tools for ongoing content production.
Pro Tips
- Use a clean, consistent training dataset for better LoRA quality.
- Add a
default_captionwhen your dataset shares a common concept, subject, or style cue.
- Start with a moderate number of steps before pushing to larger training runs.
- Increase
stepsgradually if the initial LoRA is too weak or underfit.
- Keep your dataset focused on the style or subject you want the LoRA to learn.
- Test the trained LoRA in downstream generation workflows before scaling up training volume.
Notes
image_datais required.
default_captionis optional.
stepsdefaults to101.
- Pricing depends only on the selected
stepsvalue.
- LoRAs trained here are intended for Pruna text-to-image LoRA usage.
Related Models
- Pruna AI P-Image Text-to-Image LoRA — Generate images from prompts using a trained LoRA.
- Pruna AI P-Image Text-to-Image — Generate images directly from prompts without a LoRA.
- Pruna AI P-Image Edit Trainer — Train LoRAs for downstream image editing workflows.
- Pruna AI P-Image Edit LoRA — Edit images with LoRA-guided control.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
P Image Text to Image Trainer API example
The catalog lists POST https://api.opensi.com.ai/api/v3/pruna-ai/p-image/text-to-image-trainer for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"image_data": "https://github.com/mdn/interactive-examples/archive/refs/heads/main.zip",
"steps": 101,
"default_caption": "example"
}P Image Text to Image Trainer API — Frequently asked questions
What is the P Image Text To Image Trainer API?
P Image Text To Image Trainer is a Pruna Ai model for AI inference, exposed as a REST API on OpenSIAI. Pruna AI P-Image Text to Image Trainer is a fast AI model training workflow for customizing text-to-image generation models with user-provided data. Ready-to-use REST inference API for training custom styles, brand-specific visuals, character concepts, product image generation, marketing creatives, and personalized 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 Trainer 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-trainer.
How much does P Image Text To Image Trainer cost per run or per second?
P Image Text To Image Trainer starts at $1.8 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 Trainer accept?
Key inputs: default_caption, image_data, steps. 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-trainer.
How do I get started with the P Image Text To Image Trainer API?
Sign up for a free OpenSIAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.
Can I use P Image Text To Image Trainer 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.
