Pricing
Compare models →| Item | Cost |
|---|---|
| Per image | $0.01 |
Simple flat-rate pricing regardless of image size.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | |
size | string | The size of the generated image in pixels (width*height).Default: "1024*1024"Minimum: 256 · Maximum: 2048 |
seed | integer |
README
FLUX.2 Klein Base 4B Text-to-Image
FLUX.2 Klein Base 4B Text-to-Image is a lightweight yet capable text-to-image generation model. Describe your vision in text and get quality images with fast generation — the most affordable option in the FLUX.2 Klein family.
Why Choose This?
- Fast and affordable
4B parameter model optimized for quick turnaround at the lowest cost in the Klein series.
- Good prompt adherence
Accurately interprets prompts to generate images that match your description.
- Flexible sizing
Custom width and height controls for any aspect ratio.
- Prompt Enhancer
Built-in tool to automatically improve your prompts for better results.
- Best value
Ideal for rapid prototyping, batch processing, and budget-conscious projects.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate |
| width | No | Output width in pixels (default: 1024) |
| height | No | Output height in pixels (default: 1024) |
| seed | No | Random seed for reproducibility (-1 for random) |
How to Use
- Write your prompt — describe the image including subject, style, lighting, and mood.
- Set size — adjust width and height for your desired dimensions.
- Set seed — use -1 for random, or specify a number for reproducibility.
- Run — submit and download the generated image.
Pricing
| Item | Cost |
|---|---|
| Per image | $0.01 |
Simple flat-rate pricing regardless of image size.
Best Use Cases
- Rapid Prototyping — Quickly test ideas and concepts at minimal cost.
- Batch Generation — Lowest cost enables large-scale image production.
- Creative Exploration — Iterate on prompts without budget concerns.
- Drafts and Mockups — Generate initial visuals before refining with higher-tier models.
- Learning and Testing — Experiment with prompting techniques affordably.
Pro Tips
- Be specific in your prompts — include subject, style, lighting, colors, and atmosphere.
- Use the same seed to reproduce identical outputs or compare prompt variations.
- Start with 1024x1024 for balanced quality, adjust dimensions for specific needs.
- Need higher quality? Try FLUX.2 Klein Base 9B Text-to-Image.
- Need custom styles? Try FLUX.2 Klein Base 4B Text-to-Image LoRA.
Notes
- Most affordable option in the FLUX.2 Klein series.
- For best results, write detailed, descriptive prompts.
Related Models
- FLUX.2 Klein Base 4B Text-to-Image LoRA — With LoRA support for custom styles.
- FLUX.2 Klein Base 4B Edit — Image editing model.
- FLUX.2 Klein Base 9B Text-to-Image — Higher quality 9B version.
- FLUX.2 Pro — Flagship-quality 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 Text to Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-2-klein-base-4b/text-to-image 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",
"size": "1024*1024",
"seed": 0
}FLUX 2 Klein Base 4B Text to Image API — Frequently asked questions
What is the Flux 2 Klein Base 4b Text To Image API?
Flux 2 Klein Base 4b Text To Image is a OpenSIAI model for image generation, exposed as a REST API on OpenSIAI. FLUX.2 [klein] Base 4B is a compact 4-billion-parameter text-to-image model that delivers fast generation with quality results. 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 Text To Image 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/text-to-image.
How much does Flux 2 Klein Base 4b Text To Image cost per run or per second?
Flux 2 Klein Base 4b Text To Image starts at $0.01 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 Text To Image accept?
Key inputs: prompt, size, 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/text-to-image.
How long does Flux 2 Klein Base 4b Text To Image take to generate?
Reported generation time on OpenSIAI is around 29 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 Text To Image 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.
