Pricing
Compare models →Every image costs the same, whatever aspect ratio you choose.
| Images | Price |
|---|---|
| 1 image (default settings) | $0.04 |
| 4 images | $0.16 |
| 100 images | $4.00 |
Total cost = number of images × the price of one image.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.21:916:94:33:21:12:33:49:169:21"1:1" |
seed | integer | The random seed to use for the generation. |
README
FLUX Kontext Pro (Text-to-Image) — OpenSI-ai/flux-kontext-pro/text-to-image
FLUX Kontext Pro is a fast, high-quality text-to-image model designed for reliable everyday generation. It delivers strong prompt adherence and clean composition with efficient latency—great for marketing creatives, story frames, concept art, and general-purpose visual production.
Key capabilities
- Prompt-faithful text-to-image generation with consistent visual quality
- Strong composition control via scene + camera + lighting language
- Produces clean, usable outputs quickly for iterative workflows
Pricing
Every image costs the same, whatever aspect ratio you choose.
| Images | Price |
|---|---|
| 1 image (default settings) | $0.04 |
| 4 images | $0.16 |
| 100 images | $4.00 |
Total cost = number of images × the price of one image.
How to use
- Write a prompt describing the subject, scene, action, and style.
- Choose an aspect ratio that matches your layout (e.g., 16:9, 1:1, 9:16).
- Optionally set seed for reproducible results, then generate.
Parameters
- prompt (required): Text description of what to generate
- aspect_ratio: Output aspect ratio (e.g., 16:9, 1:1, 9:16)
- seed: Fixed value for reproducibility; leave empty/random for variation
Prompting guide
A stable prompt structure:
- Subject: who/what is in frame
- Action: what is happening
- Scene: location + time + atmosphere
- Camera: framing, angle, lens vibe
- Lighting: softbox, sunset, neon, rim light, etc.
- Style: realistic, illustration, film still, etc.
Example pattern:
A [shot type] of [subject] [action] in [scene]. [Lighting + mood]. [Camera/framing]. [Style cues].
Example prompts
- A close-up portrait of a child in a yellow raincoat hugging a golden retriever after the rain, wet grass and a faint rainbow behind, soft natural light, warm mood, shallow depth of field.
- Wide shot of a cozy café interior at night, warm tungsten lighting, rain on the windows, cinematic composition, film still look.
- Studio product photo of a minimal sneaker on a clean background, softbox lighting, crisp shadows, premium advertising style.
Best practices
- Keep the first sentence concrete, then add camera and lighting constraints.
- For consistent iteration, fix seed and adjust only one variable at a time.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
FLUX Kontext Pro Text to Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/flux-kontext-pro/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",
"aspect_ratio": "1:1",
"seed": 0
}FLUX Kontext Pro Text to Image API — Frequently asked questions
What is the Flux Kontext Pro Text To Image API?
Flux Kontext Pro Text To Image is a OpenSIAI model for image generation, exposed as a REST API on OpenSIAI. FLUX.1 Kontext [pro] is a premium text-to-image model with maximum performance and greatly improved prompt adherence for accurate outputs. 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 Pro 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-kontext-pro/text-to-image.
How much does Flux Kontext Pro Text To Image cost per run or per second?
Flux Kontext Pro Text To Image starts at $0.04 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 Pro Text To Image accept?
Key inputs: prompt, 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-pro/text-to-image.
How long does Flux Kontext Pro Text To Image take to generate?
Reported generation time on OpenSIAI is around 11 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 Pro 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.
