Pricing
Compare models →| Item | Cost |
|---|---|
| Per image | $0.015 |
Simple flat-rate pricing regardless of image size.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | |
imagesRequired | array | List of reference image URLs (1-3 images).Items: 0–3JSON schema{
"items": {
"type": "string"
}
} |
size | string | The size of the generated image in pixels (width*height).Minimum: 256 · Maximum: 2048 |
seed | integer |
README
FLUX.2 Klein Base 4B Edit
FLUX.2 Klein Base 4B Edit is a lightweight yet powerful image editing model. Upload images and describe your edits in natural language — the model transforms styles, modifies content, and applies effects with fast generation and affordable pricing.
Why Choose This?
- Text-guided editing
Describe edits in natural language — transform styles, modify content, apply effects, and more.
- Multi-image input
Upload multiple reference images for context-aware editing.
- Flexible output sizing
Optionally set output size, or leave empty to match input image dimensions.
- Prompt Enhancer
Built-in tool to automatically improve your prompts for better results.
- Lightweight and fast
4B parameter model optimized for quick turnaround at the lowest cost.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the desired edit |
| images | Yes | Source images to edit (can add multiple) |
| size | No | Output dimensions (empty = same as input image) |
| seed | No | Random seed for reproducibility (-1 for random) |
How to Use
- Write your prompt — describe the edit you want (e.g., "Change image1 to the comic style", "add sunset lighting").
- Upload images — add source images using "+ Add Item" button.
- Set size (optional) — specify output dimensions or leave empty to match input.
- Set seed — use -1 for random, or specify a number for reproducibility.
- Run — submit and download the edited image.
Pricing
| Item | Cost |
|---|---|
| Per image | $0.015 |
Simple flat-rate pricing regardless of image size.
Best Use Cases
- Style Transfer — Transform images to comic, anime, painting, or other styles.
- Quick Edits — Fast, affordable edits for creative iteration.
- Batch Processing — Low cost enables large-scale image editing.
- Content Transformation — Change moods, lighting, or visual themes.
- Prototyping — Rapidly test editing ideas before using higher-tier models.
Pro Tips
- Be specific in your prompt — clearly describe what should change.
- Leave size empty to preserve original image dimensions.
- Use the same seed to compare different prompts on the same image.
- Reference images by number in prompts (e.g., "Change image1 to...").
Notes
- If size is not specified, output matches input image dimensions.
- For best results, use high-quality source images.
- Need LoRA support? Try FLUX.2 Klein Base 4B Edit LoRA.
Related Models
- FLUX.2 Klein Base 4B Edit LoRA — Edit with LoRA support for custom styles.
- FLUX.2 Klein Base 9B Edit — Higher quality 9B version.
- FLUX.2 Klein Base 4B Text-to-Image — Text-to-image generation.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
FLUX 2 Klein Base 4B Edit API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-2-klein-base-4b/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/251121/6784e7f4b50aebc7e17fe396/ejkwliu4376i.jpg"
],
"size": "example",
"seed": 0
}FLUX 2 Klein Base 4B Edit API — Frequently asked questions
What is the Flux 2 Klein Base 4b Edit API?
Flux 2 Klein Base 4b Edit is a OpenSIAI model for image editing, exposed as a REST API on OpenSIAI. FLUX.2 [klein] Base 4B Edit enables precise image-to-image editing with natural language instructions and multi-reference support. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Flux 2 Klein Base 4b 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-klein-base-4b/edit.
How much does Flux 2 Klein Base 4b Edit cost per run or per second?
Flux 2 Klein Base 4b Edit starts at $0.015 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 Klein Base 4b 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-klein-base-4b/edit.
How long does Flux 2 Klein Base 4b Edit take to generate?
Reported generation time on OpenSIAI is around 35 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 Klein Base 4b 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.
