Pricing
Compare models →$0.08 per image.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
imageRequired | string | The image to generate an image from. |
seed | integer | The random seed to use for the generation. |
aspect_ratio | string | The aspect ratio of the generated image. If not specified, it is determined automatically from the input image.xxx-empty21:916:94:33:21:12:33:49:169:21JSON schema{
"x-placeholder": "Select Aspect Ratio",
"x-clearable": true
} |
README
FLUX Kontext Max (Image-to-Image Editing) — OpenSI-ai/flux-kontext-max
FLUX Kontext Max is a premium image-to-image editing model built for high-fidelity, instruction-following transformations. Provide a source image plus a natural-language edit prompt, and it performs precise local or global edits while maintaining strong visual coherence—ideal for demanding creative direction, high-end retouching, and style-driven transformations.
Key capabilities
- High-fidelity instruction-based image editing from a single input image
- Strong prompt adherence for complex, multi-constraint edits
- Handles both local edits (specific elements) and global edits (overall look)
- Excellent for style transformations (e.g., toy style, clay, illustration) while preserving composition
Typical use cases
- Premium retouching: lighting correction, cleanup, detail enhancement
- Background swaps with consistent lighting/shadows
- Product and branding edits requiring high accuracy
- Style transformations with minimal drift (toy, clay, cinematic, illustration)
- Creative iterations where output quality matters more than speed
Pricing
$0.08 per image.
Inputs and outputs
Input:
- image (required): Source image (upload or public URL)
- prompt (required): Edit instruction
Output:
- One or more edited images (controlled by num_images, if available in your interface)
Parameters
- prompt (required): Edit instruction describing what to change and what to preserve
- image (required): Source image
- seed: Fixed value for reproducibility; leave empty/random for variation
- aspect_ratio: Output aspect ratio (choose to control framing/cropping)
Prompting guide
For best control, use a “preserve + edit + constraints” structure:
Template:
Keep [what must stay]. Change [what to edit]. Ensure [constraints]. Match [lighting/shadows/perspective].
Example prompts
- Keep the person’s face, pose, and clothing unchanged. Convert the entire image to a high-quality toy style with realistic plastic texture, soft studio lighting, and clean highlights. Keep the background composition consistent.
- Keep the subject identity and expression unchanged. Replace the background with a clean pastel studio backdrop. Match lighting direction and shadow softness.
- Remove background clutter and keep the main subject sharp. Apply a gentle cinematic color grade without changing composition.
Best practices
- Start with one change per run, then iterate for precision.
- If the edit is too strong, add a clearer preserve clause.
- Fix seed for stable comparisons across prompt variants.
- Choose aspect_ratio intentionally to avoid unexpected cropping.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
FLUX Kontext Max Image Editing API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-kontext-max 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/vi0t8qihzk4j.jpg",
"seed": 0,
"aspect_ratio": "21:9"
}FLUX Kontext Max Image Editing API — Frequently asked questions
What is the Flux Kontext Max API?
Flux Kontext Max is a OpenSIAI model for image editing, exposed as a REST API on OpenSIAI. FLUX.1 Kontext [max] boosts prompt adherence and typography generation for consistent, high-quality image editing at speed. 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 Max 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-max.
How much does Flux Kontext Max cost per run or per second?
Flux Kontext Max starts at $0.08 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 Max accept?
Key inputs: prompt, image, aspect_ratio, 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-kontext-max.
How long does Flux Kontext Max take to generate?
Reported generation time on OpenSIAI is around 15 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 Max 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.
