Pricing
Compare models →Each run costs $0.001.
Input schema
| Parameter | Type | Description |
|---|---|---|
text | string | Text to expand or use as context for prompt optimization. |
image | string | Image to use as context for prompt optimization. |
style | string | Style or tone to apply to the optimized prompt.defaultartisticphotographictechnicalanimerealistic"default" |
mode | string | The aim of the optimization, either for image or video generation.imagevideo"image" |
README
Image & Video Prompt Optimizer API
Overview
The OpenSIAI Prompt Optimizer enhances prompts specifically for image and video generation workflows. It restructures and enriches your input prompt to improve visual clarity, composition, cinematic framing, lighting, camera movement, and style consistency.
Designed for models such as Nano Banana, Seedream, FLUX, Wan, Kling, Veo, Seedance, Hailuo, and other leading visual-generation systems.
Key Features
- Improves visual composition (lighting, framing, perspective)
- Expands prompts with cinematic and artistic attributes
- Enhances style, mood, and motion for video models
- Reduces ambiguity and ensures consistent reproducible outputs
- Works seamlessly in automated pipelines and API workflows
Why Use It?
Raw user prompts often produce unstable or low-quality visual outputs. The Prompt Optimizer standardizes and enriches prompts, leading to:
- Better image detail and fidelity
- More stable, coherent video motion
- Consistent art direction across batches
- Improved adherence to user intent
Usage
Send any raw text prompt to the /v1/prompt/optimize endpoint and receive a fully optimized version ready for visual generation models.
Pricing
Each run costs $0.001.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Prompt Optimizer LLM API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/prompt-optimizer for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"text": "A clear example input",
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251120/6784e7f4b50aebc7e17fe396/b3kkemounkq0.jpg",
"style": "default",
"mode": "image"
}Prompt Optimizer LLM API — Frequently asked questions
What is the Prompt Optimizer API?
Prompt Optimizer is a OpenSIAI model for AI inference, exposed as a REST API on OpenSIAI. Advanced Prompt Optimizer for image and video generation. Automatically enhances prompts for clarity, structure, composition, motion dynamics, and style control—producing significantly better outputs across models like FLUX, Wan, Kling, Veo, Seedance, and more. 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 Prompt Optimizer 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/prompt-optimizer.
How much does Prompt Optimizer cost per run or per second?
Prompt Optimizer starts at $0.001 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 Prompt Optimizer accept?
Key inputs: image, mode, style, text. 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/prompt-optimizer.
How long does Prompt Optimizer take to generate?
Reported generation time on OpenSIAI is around 3 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 Prompt Optimizer 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.