Pricing
Compare models →Each request is billed per run, and the price depends on how many reference images (images) you send. A request with default settings costs $0.03 per run.
A request with 1 reference image (images.count=1) costs $0.03.
Each additional reference image beyond the first adds to the price: a request with 2 images (images.count=2) costs $0.005 more than a request with 1 image (images.count=1).
Number of reference images (images) | Price per run |
|---|---|
| 1 image | $0.03 |
| 2 images | $0.035 |
| 3 images | $0.04 |
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
imagesRequired | array | List of URLs of input images for editing. The maximum number of images is 4.Items: 0–3JSON schema{
"items": {
"type": "string"
}
} |
size | string | The size of the generated media in pixels (width*height).Minimum: 512 · Maximum: 2048 |
seed | integer | The random seed to use for the generation. -1 means a random seed will be used. |
README
OpenSIAI FLUX.2 Flash Edit Image-to-Image
FLUX.2 Flash Edit is a fast, cost-efficient image-to-image editing model for prompt-driven transformations. Give it one or more input images plus a clear instruction, and it will apply targeted edits while keeping the overall composition stable—great for high-throughput creative pipelines.
It’s best suited for quick style shifts, background tweaks, light retouching, and generating multiple variations for iteration or A/B testing.
Key capabilities
- Ultra-fast prompt-driven editing
Apply natural-language edit instructions with low latency for rapid iteration.
- Composition-stable transformations
Keeps layout and key identity cues stable while applying targeted changes.
- Multi-image editing (up to 3 inputs)
Accepts multiple input image URLs to guide the edit and/or provide references.
- Production-friendly controls
Deterministic results with seed, plus API-only options for synchronous responses and base64 outputs.
- Size control for common creative formats
Generate outputs sized for banners, posters, social crops, and product imagery.
Parameters and how to use
- prompt: (required) The positive prompt describing what to change and what to preserve.
- images: (required) Array of input image URLs for editing (1–3 items).
- size: Output size as a string in
width*heightpixels (each dimension 256–1536).
- seed: Random seed (
-1for random; fixed value for repeatability).
- enable_base64_output: If
true, returns the output as a base64 string instead of a URL (API-only).
- enable_sync_mode: If
true, waits for generation to finish and returns the result in the same response (API-only).
Prompt
Write prompts like an editor’s brief: what to change, what to keep, and what “done” looks like.
Tips that work well for FLUX.2 Flash Edit:
- Start with the exact change: “replace the background with…”, “restyle as…”, “remove…”, “retouch…”
- Explicitly preserve what matters: “keep the same face, pose, framing, and logo text.”
- Keep edits scoped. If the output drifts, reduce the number of simultaneous changes and iterate in smaller steps.
Media (Images)
imagesmust be 1–3 URLs pointing to your input images.
- If your images are local files, upload them first (for example via OpenSIAI’s media upload endpoint) and use the returned
download_urlvalues here.
- For best stability, use clear, high-quality inputs and avoid heavily compressed thumbnails.
Other parameters
size
Use width*height (for example 1024*1024, 832*1216, 1216*832).
Each dimension must be 256–1536.
seed
-1(default behavior) for a new variation each run
- A fixed integer (for example
12345) for repeatable results and controlled iteration
enable_sync_mode(API-only)
false(default): submit a task, then query the prediction result
true: wait and return the finished output in the same response (simpler integration, but the request takes longer)
enable_base64_output(API-only)
false(default): outputs are URLs
true: outputs are base64 strings (useful when you can’t fetch remote URLs)
After you finish configuring the parameters, click Run, preview the result, and iterate if needed.
Pricing
Each request is billed per run, and the price depends on how many reference images (images) you send. A request with default settings costs $0.03 per run.
A request with 1 reference image (images.count=1) costs $0.03.
Each additional reference image beyond the first adds to the price: a request with 2 images (images.count=2) costs $0.005 more than a request with 1 image (images.count=1).
Number of reference images (images) | Price per run |
|---|---|
| 1 image | $0.03 |
| 2 images | $0.035 |
| 3 images | $0.04 |
Notes
- If you need consistency across a batch, keep
sizeandseedfixed and vary only the prompt.
- When using multiple input images, describe how they should be used (for example: “use image 1 as the base; use image 2 as style reference”).
- For UI-safe outputs, keep instructions specific (avoid “make it more provocative” style prompts) and review results before publishing.
Related Models
- FLUX.2 Flash Text-to-Image – The same “flash” tier optimized for fast, low-cost generation from text prompts.
- FLUX.2 Dev Edit – A lightweight edit variant that’s useful when you want a different speed/cost/quality trade-off.
- FLUX.2 Flex Edit – A stronger choice when you need more controlled, style-consistent edits.
- FLUX 2 Max Edit – Higher-fidelity editing for detail-critical or “hero” assets.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
FLUX 2 Flash Edit API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-2-flash/edit 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",
"images": [
"https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251120/6784e7f4b50aebc7e17fe396/om47bxpj3zwn.jpg"
],
"size": "example",
"seed": 0
}FLUX 2 Flash Edit API — Frequently asked questions
What is the Flux 2 Flash Edit API?
Flux 2 Flash Edit is a OpenSIAI model for image editing, exposed as a REST API on OpenSIAI. FLUX 2 flash Edit from Black Forest Labs delivers ultra-fast, production-grade image-to-image editing. Use plain-English prompts and precise HEX color control to restyle scenes, replace backgrounds, inpaint/outpaint, and retouch with brand-consistent palettes. Low-latency REST API, no cold starts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Flux 2 Flash Edit 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-2-flash/edit.
How much does Flux 2 Flash Edit cost per run or per second?
Flux 2 Flash Edit 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 2 Flash Edit accept?
Key inputs: prompt, images, seed. 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-2-flash/edit.
How long does Flux 2 Flash Edit take to generate?
Reported generation time on OpenSIAI is around 18 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 2 Flash Edit 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.
