Pricing
Compare models →Each image generated is billed at the same rate, so the cost of a run grows with num_images.
| Case | Price |
|---|---|
| Per run with default settings (num_images = 1) | $0.02 |
| num_images = 1 (1 image) | $0.02 |
| num_images = 2 (2 images) | $0.04 |
| num_images = 3 (3 images) | $0.06 |
| num_images = 4 (4 images) | $0.08 |
Per image (num_images = 1): $0.02
Example: num_images = 4 → $0.08
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | 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. |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
README
FLUX Kontext Dev Ultra Fast — OpenSI-ai/flux-kontext-dev-ultra-fast
FLUX.1 Kontext Dev Ultra Fast is a low-latency image-to-image editing model optimized for rapid iteration. Provide a source image and a natural-language edit instruction, and it performs targeted or global edits while aiming to preserve the original context when requested—ideal for interactive workflows, batch revisions, and quick creative exploration.
Key capabilities
- Ultra-fast instruction-based image editing from a single input image
- Strong preservation when you explicitly specify what must remain unchanged
- Works well for iterative edits: refine the same image across multiple passes
- Great for practical edits: color changes, background swaps, text edits, cleanup, and light style transforms
Typical use cases
- Fast retouching and cleanup (lighting/exposure, minor imperfections)
- Color/material edits (e.g., product variants)
- Background replacement for marketing creatives
- Text replacement on posters, packaging, UI mockups
- Rapid style experimentation with minimal turnaround time
Pricing
Each image generated is billed at the same rate, so the cost of a run grows with num_images.
| Case | Price |
|---|---|
| Per run with default settings (num_images = 1) | $0.02 |
| num_images = 1 (1 image) | $0.02 |
| num_images = 2 (2 images) | $0.04 |
| num_images = 3 (3 images) | $0.06 |
| num_images = 4 (4 images) | $0.08 |
Per image (num_images = 1): $0.02
Example: num_images = 4 → $0.08
Inputs and outputs
Input:
- One source image (upload or public URL)
- One edit instruction (prompt)
Output:
- One or more edited images (controlled by num_images)
Parameters
- prompt: Edit instruction describing what to change and what to keep
- 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
- enable_base64_output: Return BASE64 instead of a URL (API only)
- enable_sync_mode: Wait for generation and return results directly (API only)
Prompting guide
Use a clear “preserve + edit + constraints” structure:
Template:
Keep [what must stay]. Change [what to edit]. Ensure [constraints]. Match [lighting/shadows/style consistency].
Example prompts
- Keep the subject’s face and pose unchanged. Replace the background with a clean studio backdrop. Match the lighting and shadow direction.
- Change the shirt color to navy blue. Keep fabric texture and wrinkles consistent.
- Replace the label text with “OpenSIAI”, keeping the same font style, size, and perspective. Do not modify anything else.
- Remove the objects on the table. Keep the table surface intact and realistic.
- Apply a soft cinematic grade with slightly warmer tones, without changing composition or identity.
Best practices
- Do one change per run for maximum control, then iterate.
- If the edit drifts, lower guidance_scale and strengthen the preserve clause.
- Fix seed for reproducible comparisons and stable iteration.
- Match output width/height to the input aspect ratio to avoid distortion.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
FLUX Kontext Dev Ultra Fast Image Editing API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-kontext-dev-ultra-fast 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/92v6kbln5iw9.jpg",
"size": "example",
"num_inference_steps": 28,
"guidance_scale": 2.5,
"num_images": 1,
"seed": 0,
"output_format": "jpeg"
}FLUX Kontext Dev Ultra Fast Image Editing API — Frequently asked questions
What is the Flux Kontext Dev Ultra Fast API?
Flux Kontext Dev Ultra Fast is a OpenSIAI model for image editing, exposed as a REST API on OpenSIAI. FLUX.1 Kontext Dev Ultra-Fast is an open-source image-to-image model that edits images from text prompts with open weights and code. 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 Ultra Fast 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-ultra-fast.
How much does Flux Kontext Dev Ultra Fast cost per run or per second?
Flux Kontext Dev Ultra Fast starts at $0.02 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 Ultra Fast 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-ultra-fast.
How long does Flux Kontext Dev Ultra Fast 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 Kontext Dev Ultra Fast 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.
