Pricing
Compare models →Just $0.015 per image !!
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
image | string | |
mask_image | string | The mask image tells the model where to generate new pixels (white) and where to preserve the original image (black). It acts as a stencil or guide for targeted image editing. |
strength | number | Strength indicates extent to transform the reference image.Default: 0.8Minimum: 0 · Maximum: 1 |
loras | array | List of LoRAs to apply (max 3).Items: 0–3JSON schema{
"items": {
"properties": {
"path": {
"description": "URL or the path to the LoRA weights.",
"type": "string"
},
"scale": {
"default": 1,
"description": "The scale of the LoRA weights. This is used to scale the LoRA weight before merging it with the base model.",
"maximum": 4,
"minimum": 0,
"type": "number"
}
},
"required": [
"path"
],
"type": "object",
"x-order-properties": [
"path",
"scale"
]
}
} |
size | string | The size of the generated media in pixels (width*height).Default: "1024*1024"Minimum: 256 · Maximum: 1536 |
num_inference_steps | integer | The number of inference steps to perform.Default: 28Minimum: 1 · Maximum: 50 |
guidance_scale | number | The guidance scale to use for the generation.Default: 3.5Minimum: 0 · Maximum: 20 |
num_images | integer | The number of images to generate.Default: 1Minimum: 1 · Maximum: 4 |
seed | integer | The random seed to use for the generation. -1 means a random seed will be used. |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
README
Flux-dev-lora
FLUX.1 [dev] is a 12B parameter rectified flow transformer for advanced text-to-image generation. It supports prompt-only generation as well as image inpainting and LoRA customization, making it a flexible tool for both research and creative workflows.
Why it looks great
- High-quality output: Cutting-edge visual fidelity, second only to *FLUX.1 [pro]*.
- Prompt alignment: Strong competitive prompt following, rivaling closed-source alternatives.
- Efficient training: Trained with guidance distillation for better speed-performance balance.
- Flexible editing: Supports image + mask editing, LoRA fine-tuning, and custom strength control.
- Open weights: Enables research, experimentation, and innovative creative pipelines.
Limits and Performance
- Max resolution: up to 1536 × 1536 pixels
- Optional inputs:
- image (for img2img)
- mask_image (for inpainting)
- LoRA support: add multiple .safetensors with adjustable scale
- Inference controls:
- num_inference_steps (default ~28)
- guidance_scale (default ~3.5)
- strength (the strength of transform the reference image)
- Output format: JPEG / PNG / WEBP
- Seed: reproducibility (
-1= random)
Pricing
Just $0.015 per image !!
How to Use
- Write a prompt — detailed scene + style (lighting, realism, mood).
- *(Optional)* Upload an image to guide generation.
- *(Optional)* Add a mask image for inpainting.
- Adjust parameters:
- Strength (the strength of transform the reference image).
- LoRAs (add path/URL + scale).
- Size (width & height, up to 1024×1024).
- Inference steps and guidance scale.
- Set num_images (default 1).
- (Optional) Fix seed for reproducibility.
- Choose output format and run.
Pro tips
- Use higher inference steps for more detail, lower for speed.
- Adjust guidance scale to balance prompt strength vs. creativity (3–7 recommended).
- Apply mask + strength for clean local edits (inpainting).
- Blend multiple LoRAs for hybrid style outputs.
- Use consistent seeds when testing parameter changes for controlled comparison.
Notes
- The image URL must be valid and accessible; otherwise, the job may fail.
- For mask_image, do not upload the original or unprocessed image directly — ensure the mask is correctly prepared.
- LoRA files must be uploaded from trusted platforms and set to public access to be usable.
- Parameters such as num_inference_steps (and others) directly affect runtime: the larger the value, the longer the generation will take.
Reference
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
FLUX Dev LoRA Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-dev-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",
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251121/6784e7f4b50aebc7e17fe396/vi0t8qihzk4j.jpg",
"mask_image": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg",
"strength": 0.8,
"loras": [],
"size": "1024*1024",
"num_inference_steps": 28,
"guidance_scale": 3.5,
"num_images": 1,
"seed": 0,
"output_format": "jpeg"
}FLUX Dev LoRA Image API — Frequently asked questions
What is the Flux Dev Lora API?
Flux Dev Lora is a OpenSIAI model for image generation, exposed as a REST API on OpenSIAI. FLUX.1 [dev] endpoint with LoRA support for fast, high-quality image generation and simple personalization via pre-trained LoRA adapters. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Flux Dev 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/opensi-ai/flux-dev-lora.
How much does Flux Dev Lora cost per run or per second?
Flux Dev Lora starts at $0.015 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 Flux Dev Lora accept?
Key inputs: prompt, image, size, seed, guidance_scale, num_inference_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/opensi-ai/flux-dev-lora.
How long does Flux Dev Lora take to generate?
Reported generation time on OpenSIAI is around 22 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 Flux Dev Lora outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (OpenSIAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
