Pricing
Compare models →| Output | Price |
|---|---|
| Per image | $0.035 |
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
imageRequired | string | The URL of the image to generate an image from. |
mask_imageRequired | string | The URL of the mask image to generate an image from. |
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 |
seed | integer | The random seed to use for the generation. |
guidance_scale | number | The guidance scale to use for the generation.Default: 30Minimum: 28 · Maximum: 35 |
num_images | integer | The number of images to generate.Default: 1Minimum: 1 · Maximum: 4 |
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"
]
}
} |
README
FLUX Fill Dev
FLUX Fill Dev is a powerful AI-powered inpainting model that fills in masked regions of images based on text prompts. Upload an image and mask, describe what should appear in the masked area, and the model seamlessly generates new content that blends naturally with the surrounding image.
Why It Stands Out
- Precise inpainting: Generate new content only in masked regions while preserving the rest.
- Prompt-guided generation: Describe exactly what should appear in the masked area.
- Prompt Enhancer: Built-in AI-powered prompt optimization for better results.
- LoRA support: Apply up to 3 custom LoRA models for specific styles.
- Flexible resolution: Width and height adjustable from 256 to 1536 pixels.
- Batch generation: Create multiple variations in a single request.
- Reproducibility: Use the seed parameter to recreate exact results.
Parameters
| Parameter | Required | Description |
|---|---|---|
| image | Yes | Source image to edit (upload or public URL). |
| mask_image | Yes | Mask image (white = generate, black = preserve). |
| prompt | Yes | Text description of what to generate in the masked area. |
| width | No | Output width: 256–1536 pixels (default: 1024). |
| height | No | Output height: 256–1536 pixels (default: 1024). |
| num_inference_steps | No | Quality/speed trade-off (default: 28). |
| seed | No | Set for reproducibility (default: 0). |
| guidance_scale | No | Prompt adherence strength (default: 30). |
| num_images | No | Number of images to generate (default: 1). |
| loras | No | LoRA models to apply. Up to 3 LoRAs. |
How to Use
- Upload your source image — drag and drop a file or paste a public URL.
- Upload or create a mask image — white areas will be regenerated, black areas preserved.
- Write a prompt describing what should appear in the masked region. Use the Prompt Enhancer for AI-assisted optimization.
- Add LoRAs (optional) — apply up to 3 custom style LoRAs.
- Adjust parameters (optional) — set dimensions, guidance scale, and num_images.
- Click Run and download your edited image.
Best Use Cases
- Object Replacement — Replace objects in images with new ones.
- Background Editing — Change or extend backgrounds seamlessly.
- Content Addition — Add new elements like clothing, accessories, or objects.
- Photo Repair — Remove unwanted elements and fill with appropriate content.
- Creative Compositing — Blend new elements into existing scenes naturally.
Pricing
| Output | Price |
|---|---|
| Per image | $0.035 |
Pro Tips for Best Quality
- Create clean, precise masks — white for areas to regenerate, black for areas to keep.
- Be specific in your prompt about what should appear in the masked area.
- Use higher guidance scale (25–35) for stronger prompt adherence.
- Generate multiple images (num_images > 1) to explore variations.
- Use LoRAs to apply consistent styles across multiple inpainting jobs.
- Ensure mask edges are smooth for better blending results.
Notes
- Maximum of 3 LoRAs per generation.
- Width and height must be between 256 and 1536 pixels.
- Ensure uploaded image URLs are publicly accessible.
- Processing time varies based on resolution and current queue load.
- Please ensure your content complies with usage guidelines.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
FLUX Fill Dev Image Editing API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-fill-dev 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",
"mask_image": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg",
"size": "1024*1024",
"num_inference_steps": 28,
"seed": 0,
"guidance_scale": 30,
"num_images": 1,
"loras": []
}FLUX Fill Dev Image Editing API — Frequently asked questions
What is the Flux Fill Dev API?
Flux Fill Dev is a OpenSIAI model for image editing, exposed as a REST API on OpenSIAI. FLUX.1 Fill [dev] is a 12B-parameter rectified flow transformer for text-guided image inpainting that fills areas of existing images from text prompts. 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 Fill Dev 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-fill-dev.
How much does Flux Fill Dev cost per run or per second?
Flux Fill Dev starts at $0.035 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 Fill Dev 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-fill-dev.
How long does Flux Fill Dev take to generate?
Reported generation time on OpenSIAI is around 52 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 Fill Dev 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.
