Pricing
Compare models →Pricing is based on the selected output resolution.
| Resolution | Cost per Image |
|---|---|
| 1K | $0.02 |
| 1.5K | $0.04 |
| 2K | $0.08 |
1K is the base pricing tier. 1.5K costs 2× the base price, while 2K costs 4× the base price.
aspect_ratio, output_format, and seed do not add separate charges.
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.1:11:22:11:33:12:33:23:44:34:55:49:1616:99:2121:9"1:1" |
resolution | string | Total output resolution tier: 1k (~1 megapixel), 1.5k (~2.25 megapixels), or 2k (~4 megapixels).1k1.5k2k"1k" |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
seed | integer | The random seed to use for the generation. -1 means a random seed will be used. |
README
Qwen Image 2.1 Text-to-Image
Qwen Image 2.1 Text-to-Image generates high-quality images directly from text prompts with flexible aspect ratios and output resolutions up to 2K. Choose between 1K, 1.5K, and 2K depending on your quality and cost requirements.
Why Choose This?
- Text-to-image generation
Create images directly from natural-language prompts.
- Up to 2K resolution
Generate at 1K, 1.5K, or 2K resolution.
- Flexible aspect ratios
Adjust the output composition to fit different creative and publishing workflows.
- Multiple output formats
Export generated images as jpeg, png, or webp.
- Native transparency
Generate images with a real alpha channel. Ask for transparency in the prompt and export as png or webp.
- Seed control
Use a fixed seed for more reproducible generations, or -1 for a random seed.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text prompt describing the image to generate. |
| aspect_ratio | No | Optional output aspect ratio. |
| resolution | No | Output resolution: 1k, 1.5k, or 2k. Default: 1k. |
| output_format | No | Output image format: jpeg, png, or webp. Use png or webp to preserve transparency; jpeg fills transparent areas with white. |
| seed | No | Optional random seed for generation. Use -1 for a random seed. |
How to Use
- Write a prompt — Describe the subject, composition, environment, lighting, mood, and visual style.
- Choose aspect ratio optional — Set the output composition for your target use case.
- Choose resolution — Select
1k,1.5k, or2k.
- Choose output format optional — Select
jpeg,png, orwebp.
- Set seed optional — Use a fixed seed for reproducible results, or
-1for random generation.
- Submit — Generate and retrieve the final image.
Transparent Backgrounds
This model generates transparency natively, so a cut-out subject comes back with a real alpha channel rather than a painted-in background.
- Ask for it in the prompt. Describe the image as transparent, for example:
This is an RGBA image with transparency. A cute cartoon dragon sticker. The image has alpha channel and the background is transparent.
- Set `output_format` to `png` or `webp`. Both carry the alpha channel.
jpeg cannot store transparency, so transparent areas are filled with white. Prompts that do not ask for transparency return a fully opaque image in every format.
Pricing
Pricing is based on the selected output resolution.
| Resolution | Cost per Image |
|---|---|
| 1K | $0.02 |
| 1.5K | $0.04 |
| 2K | $0.08 |
1K is the base pricing tier. 1.5K costs 2× the base price, while 2K costs 4× the base price.
aspect_ratio, output_format, and seed do not add separate charges.
Best Use Cases
- Creative image generation — Turn natural-language ideas into finished visual concepts.
- Marketing visuals — Create campaign graphics, promotional imagery, and social content.
- Concept art — Explore environments, characters, products, and visual directions.
- Product visualization — Generate styled product concepts and presentation images.
- Editorial content — Create illustrations and supporting visuals for articles or publishing workflows.
- High-resolution generation — Use
1.5Kor2Kwhen additional output detail is needed.
Pro Tips
- Describe the subject, environment, composition, lighting, and visual style clearly.
- Include camera or framing direction when composition matters.
- Use
1Kfor lower-cost iteration before moving to higher resolutions.
- Use
2Kwhen final output detail is more important than generation cost.
- Choose
pngwhen you want to avoid lossy compression or need a transparent background.
- Set a fixed
seedwhen comparing prompt changes or generation settings.
Notes
promptis required.
resolutiondefaults to1k.
- Supported resolutions are
1k,1.5k, and2k.
- Supported output formats are
jpeg,png, andwebp.
pngandwebppreserve transparency;jpegfills transparent areas with white.
seed=-1selects a random seed.
Related Models
- Qwen Image 2.1 Text-to-Image — Generate images directly from text prompts.
- Qwen Image 2.1 Text-to-Image LoRA — Generate images from text prompts with LoRA customization.
- Qwen Image 2.1 Edit — Edit existing images with text instructions.
- Qwen Image 2.1 Edit LoRA — Edit images with text instructions and LoRA customization.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Qwen Image 2.1 Text-to-Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/qwen-image-2.1/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",
"resolution": "1k",
"output_format": "jpeg",
"seed": 0
}Qwen Image 2.1 Text-to-Image API — Frequently asked questions
What is the Qwen Image 2.1 Text To Image API?
Qwen Image 2.1 Text To Image is a OpenSIAI model for image generation, exposed as a REST API on OpenSIAI. Qwen Image 2.1 Text-to-Image generates high-quality images from text prompts with 1K, 1.5K, and 2K output resolution tiers, supporting creative visuals, product imagery, marketing assets, social content, and production workflows. 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 2.1 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/qwen-image-2.1/text-to-image.
How much does Qwen Image 2.1 Text To Image cost per run or per second?
Qwen Image 2.1 Text To Image 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 2.1 Text To Image accept?
Key inputs: prompt, aspect_ratio, resolution, 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-2.1/text-to-image.
How long does Qwen Image 2.1 Text To Image take to generate?
Reported generation time on OpenSIAI is around 7 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 2.1 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.
