Pricing
Compare models →Flat rate per edit.
| Output | Cost |
|---|---|
| Per image | $0.02 |
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
imageRequired | string | The image to generate an image from. |
size | string | The size of the generated media in pixels (width*height).Minimum: 256 · Maximum: 1536 |
seed | integer | The random seed to use for the generation. -1 means a random seed will be used. |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
README
Qwen-Image-Edit
A next-gen image editing model built on Qwen-Image 20B MMDiT. Qwen-Image-Edit delivers precise bilingual text editing (Chinese & English), supports both semantic and appearance-level edits, and preserves the original style — making it one of the most capable image editing models available.
Why It Looks Great
- Dual-mode editing: Supports both appearance-level edits (add/remove/modify elements while keeping other regions pixel-accurate) and semantic-level edits (IP creation, rotation, style transfer with global coherence).
- Precise text editing (CN/EN): Edit on-image text directly — add, delete, or replace while retaining the original font, size, kerning, and style.
- Style preservation: Maintains palette, lighting, brushwork, and overall look even under substantial edits.
- 20B parameter power: Built on the robust Qwen-Image foundation for superior understanding and generation.
- State-of-the-art performance: Achieves SOTA results across multiple public image editing benchmarks.
- Prompt Enhancer: Built-in tool to refine your editing instructions automatically.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text instruction describing the edit you want to make. |
| image | Yes | Source image to edit (upload or public URL). |
| size | No | Custom output dimensions with width and height controls. |
| width | No | Output width in pixels (e.g., 256). |
| height | No | Output height in pixels (e.g., 256). |
| seed | No | Random seed for reproducibility. Use -1 for random. |
| output_format | No | Output file format: jpeg or png. Default: jpeg. |
| enable_base64_output | No | API only: Returns base64 string instead of URL. |
| enable_sync_mode | No | API only: Waits for result and returns it directly in response. |
How to Use
- Write your edit instruction — describe what you want to change in the image.
- Use Prompt Enhancer (optional) — click to refine your editing instruction.
- Upload your image — drag and drop or paste a public URL.
- Set dimensions (optional) — adjust width and height for the output size.
- Set seed (optional) — use -1 for random, or a specific number to reproduce results.
- Choose output format — select jpeg or png.
- Run — click the button to apply the edit.
- Download — preview and save your edited image.
Pricing
Flat rate per edit.
| Output | Cost |
|---|---|
| Per image | $0.02 |
Best Use Cases
- Text Replacement — Change text on signs, labels, clothing, or any surface in images (supports Chinese & English).
- Element Modification — Add, remove, or swap objects while preserving untouched areas pixel-perfectly.
- Style Transfer — Apply new artistic styles while maintaining semantic content.
- IP Creation — Generate character variations and creative adaptations.
- Object Manipulation — Rotate, reposition, or transform objects within scenes.
- Product Customization — Create variations of product images with different details or branding.
Example Prompts
- "Change the background to daytime"
- "Replace the text on the sign to say 'Welcome'"
- "Remove the person on the left side of the image"
- "Change the dress color from red to blue"
- "Add sunglasses to the person"
Editing Modes Explained
| Mode | Description | Use When |
|---|---|---|
| Appearance Editing | Modifies specific elements while keeping all other regions pixel-accurate and unchanged | Adding/removing objects, color changes, localized edits |
| Semantic Editing | Allows global pixel updates while maintaining semantic intent and consistency | Style transfer, pose changes, IP creation, rotation |
Pro Tips for Best Results
- Be specific about what to change and what the result should be.
- For text editing, the model preserves original typography — just specify the new text content.
- Reference elements clearly: "the text on the shirt", "the background", "the person's hair".
- For appearance edits, unchanged areas remain pixel-perfect — focus only on what needs editing.
- Use Chinese prompts for editing Chinese text in images for best accuracy.
- The model understands context — describe the intent, not just the mechanical change.
Notes
- If using a URL for the image, ensure it is publicly accessible. A preview thumbnail confirms successful loading.
- The enable_base64_output and enable_sync_mode options are only available through the API.
- Complex edits may require more specific prompts for accurate results.
- For multiple edits to the same image, consider processing sequentially for better control.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Qwen Image Edit API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/qwen-image/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",
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251118/6784e7f4b50aebc7e17fe396/1vhxynk0eum7.jpg",
"size": "example",
"seed": 0,
"output_format": "jpeg"
}Qwen Image Edit API — Frequently asked questions
What is the Qwen Image Edit API?
Qwen Image Edit is a OpenSIAI model for image editing, exposed as a REST API on OpenSIAI. Qwen-Image-Edit is a 20B MMDiT image-to-image model offering precise bilingual (Chinese & English) text edits while preserving style. 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 Qwen Image 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/qwen-image/edit.
How much does Qwen Image Edit cost per run or per second?
Qwen Image Edit starts at $0.02 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 Qwen Image Edit accept?
Key inputs: prompt, image, seed, output_format. 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/qwen-image/edit.
How long does Qwen Image Edit take to generate?
Reported generation time on OpenSIAI is around 13 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 Qwen Image 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.
