Pricing
Compare models →| Output | Price |
|---|---|
| Per image | $0.012 |
Total cost = $0.012 × num_images
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
image | string | The image to generate an image from. |
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 |
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. -1 means a random seed will be used. |
guidance_scale | number | The guidance scale to use for the generation.Default: 3.5Minimum: 1 · Maximum: 20 |
num_images | integer | The number of images to generate.Default: 1Minimum: 1 · Maximum: 4 |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
README
FLUX.1 [dev]
Generate high-quality images with FLUX.1 [dev], a versatile and powerful image generation model. Whether you need text-to-image creation, image-to-image transformation, or precise inpainting — this model delivers stunning results with exceptional detail and prompt adherence.
Why It Stands Out
- Multi-mode generation: Supports text-to-image, image-to-image, and inpainting workflows in one model.
- High resolution output: Generate images up to 1024×1024 with sharp detail and clarity.
- Prompt Enhancer: Built-in AI-powered prompt optimization for better results.
- Flexible aspect ratios: Customize width and height independently for any format.
- Batch generation: Create multiple images in a single request.
- Reproducibility: Use the seed parameter to recreate exact results or explore variations.
- Multiple output formats: Export as JPEG or PNG based on your needs.
Pricing
| Output | Price |
|---|---|
| Per image | $0.012 |
Total cost = $0.012 × num_images
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate. |
| image | No | Source image for image-to-image or inpainting mode. |
| mask_image | No | Mask image for inpainting (white areas will be regenerated). |
| strength | No | How much to transform the source image (0.0–1.0, default: 0.8). |
| width | No | Output width in pixels (default: 1024). |
| height | No | Output height in pixels (default: 1024). |
| num_inference_steps | No | Quality/speed trade-off (default: 28). |
| seed | No | Set for reproducibility; -1 for random. |
| guidance_scale | No | Prompt adherence strength (default: 3.5). |
| num_images | No | Number of images to generate (default: 1). |
| output_format | No | Output format: jpeg or png (default: jpeg). |
| enable_base64_output | No | Return base64 string instead of URL (API only). |
| enable_sync_mode | No | Wait for result before returning response (API only). |
How to Use
Text-to-Image:
- Write a prompt describing the image you want. Use the Prompt Enhancer for AI-assisted optimization.
- Set width and height for your desired aspect ratio.
- Adjust guidance_scale and num_inference_steps as needed.
- Click Run and download your image.
Image-to-Image:
- Upload a source image.
- Write a prompt describing the transformation you want.
- Adjust the strength parameter — higher values allow more dramatic changes.
- Click Run and download your image.
Inpainting:
- Upload a source image and a mask image.
- White areas in the mask will be regenerated based on your prompt.
- Write a prompt describing what should appear in the masked region.
- Click Run and download your image.
Best Use Cases
- Creative Art & Illustration — Generate unique artwork, concept art, and digital illustrations.
- Product Visualization — Create product mockups and lifestyle imagery.
- Marketing & Social Media — Produce eye-catching visuals for campaigns and posts.
- Photo Editing & Enhancement — Transform or repair images with inpainting.
- Design Prototyping — Quickly visualize ideas before committing to full production.
Pro Tips for Best Quality
- Be descriptive in your prompt — include style, mood, lighting, composition, and specific details.
- For image-to-image, use lower strength (0.3–0.5) to preserve more of the original, higher (0.7–0.9) for dramatic changes.
- Use inpainting with precise masks for seamless object removal or replacement.
- Fix the seed when iterating to compare the effect of different parameters.
- Generate multiple images (num_images > 1) to explore variations quickly.
Notes
- If using image URLs, ensure they are publicly accessible.
- Processing time varies based on resolution and current queue load.
- Please ensure your prompts comply with content guidelines.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
FLUX Dev Text-to-Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-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/251118/6784e7f4b50aebc7e17fe396/1vhxynk0eum7.jpg",
"mask_image": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg",
"strength": 0.8,
"size": "1024*1024",
"num_inference_steps": 28,
"seed": 0,
"guidance_scale": 3.5,
"num_images": 1,
"output_format": "jpeg"
}FLUX Dev Text-to-Image API — Frequently asked questions
What is the Flux Dev API?
Flux Dev is a OpenSIAI model for image generation, exposed as a REST API on OpenSIAI. FLUX.1 [dev] is a 12-billion-parameter rectified-flow transformer for text-to-image generation. 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 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.
How much does Flux Dev cost per run or per second?
Flux Dev starts at $0.012 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 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.
How long does Flux Dev take to generate?
Reported generation time on OpenSIAI is around 17 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 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.
