Pricing
Compare models →Each generated image costs $0.03 (num_images = 1, one image per run). The cost of a run is the number of images requested (num_images) times that per-image price.
| num_images (images per run) | Price per run |
|---|---|
| num_images = 1 | $0.03 |
| num_images = 2 | $0.06 |
| num_images = 3 | $0.09 |
| num_images = 4 | $0.12 |
Example: num_images = 4 costs $0.12 per run.
Input schema
| Parameter | Type | Description |
|---|---|---|
prompt | string | The positive prompt for the generation. |
image | string | The image to generate an image from. |
size | string | The size of the generated media in pixels (width*height).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: 2.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. |
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 weight. 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"
]
}
} |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
README
FLUX Kontext Dev LoRA — OpenSI-ai/flux-kontext-dev-lora
FLUX Kontext Dev LoRA is an instruction-based image-to-image editing model with built-in LoRA support. Provide a source image plus a natural-language edit request, and optionally attach up to 3 LoRAs to steer style, subject consistency, or domain-specific aesthetics during the edit.
Key capabilities
- Image-to-image editing from a source image + text instruction
- LoRA-enabled inference: apply up to 3 LoRAs via input parameters
- Works for both local edits (specific changes) and global transforms (overall look)
- Ideal for batch consistency: reuse the same LoRA set for a stable visual identity
Pricing
Each generated image costs $0.03 (num_images = 1, one image per run). The cost of a run is the number of images requested (num_images) times that per-image price.
| num_images (images per run) | Price per run |
|---|---|
| num_images = 1 | $0.03 |
| num_images = 2 | $0.06 |
| num_images = 3 | $0.09 |
| num_images = 4 | $0.12 |
Example: num_images = 4 costs $0.12 per run.
Inputs and outputs
Input:
- One source image (upload or public URL)
- One edit instruction (prompt)
- Optional: up to 3 LoRA items
Output:
- One or more edited images (controlled by num_images)
Parameters
Core:
- prompt: Edit instruction describing what to change and what to preserve
- image: Source image
- width / height: Output resolution
- num_inference_steps: More steps can improve fidelity but increases latency
- guidance_scale: Higher values follow the prompt more strongly; too high may over-edit
- num_images: Number of variations generated per run
- seed: Fixed value for reproducibility; -1 for random
- output_format: jpeg or png
LoRA (up to 3 items):
- loras: A list of LoRA entries (max 3)
- path: Either owner/model-name or a direct.safetensors URL from the Internet
- scale: LoRA strength (typically start around 0.6–1.0 and adjust)
Prompting guide
Use “preserve + edit + constraints” and let LoRAs drive the look:
Template:
Keep [what must stay]. Change [what to edit]. Ensure [constraints]. Apply the LoRA style consistently without changing identity.
Example prompts
- Keep the person’s face, hairstyle, and pose unchanged. Replace the background with a clean studio gradient. Match lighting and shadows.
- Keep the product shape and label layout unchanged. Replace only the label text with “OpenSIAI”. Preserve typography perspective and print texture.
- Remove small blemishes and reduce glare on the forehead while keeping natural skin texture and pores.
Best practices
- Use fewer LoRAs when possible; add a second/third only if you need combined effects.
- If results drift or over-style, reduce LoRA scale or guidance_scale and strengthen the preserve clause.
- For consistent batches, keep the same LoRA set and scales, and fix seed when comparing prompt variants.
Reference
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
FLUX Kontext Dev LoRA Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-kontext-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/98u2oa5o45jw.jpg",
"size": "example",
"num_inference_steps": 28,
"guidance_scale": 2.5,
"num_images": 1,
"seed": 0,
"loras": [],
"output_format": "jpeg"
}FLUX Kontext Dev LoRA Image API — Frequently asked questions
What is the Flux Kontext Dev Lora API?
Flux Kontext Dev Lora is a OpenSIAI model for image editing, exposed as a REST API on OpenSIAI. Fast FLUX.1 Kontext [dev] endpoint with LoRA support for rapid image editing using pre-trained adapters for brand and style. 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 Kontext 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-kontext-dev-lora.
How much does Flux Kontext Dev Lora cost per run or per second?
Flux Kontext Dev Lora starts at $0.03 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 Kontext 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-kontext-dev-lora.
How long does Flux Kontext Dev Lora take to generate?
Reported generation time on OpenSIAI is around 42 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 Kontext 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.
