---
title: Qwen 2.1 Text To Image API | ModelsLab
description: Generate images from text with Qwen 2.1 Text To Image. High-resolution AI image generation. Plans from $21/month.
url: https://modelslab.com/models/modelslab/qwen-image-2.1-text-to-image.md
canonical: https://modelslab.com/models/modelslab/qwen-image-2.1-text-to-image
type: product
component: Playground/Endpoint/Index
generated_at: 2026-09-22T23:20:04.120921Z
---

[![Qwen 2.1 Text to Image thumbnail](https://assets.modelslab.ai/api-logos/01KPMZY676ZM0Z7YJWBM9C78QP.png)](https://modelslab.com/models/modelslab)Qwen 2.1 Text To Image
---

[by ModelsLab](https://modelslab.com/models/modelslab)Generate high-quality images from natural-language prompts with Qwen Image 2.1. Describe the scene, subject, style, composition, lighting, or visual details you want, and the model turns your instructions into a detailed image.

`qwen-edit-2.1`

Open Source Model [Unlimited Usage](https://modelslab.com/pricing) [LLMs.txt](https://modelslab.com/models/modelslab/qwen-edit-2.1/llms.txt)

[API Playground](/models/modelslab/qwen-image-2.1-text-to-image)API DocumentationVibe CodeRelated ModelsDeveloper SupportModel Specs

Input
---

Prompt 

A surrealist editorial photograph in cinematic photorealism, featuring a woman sitting completely motionless and expressionless on a wooden swing above a grassy shoreline. She wears a teal terry-cloth robe, oversized white oval sunglasses, colorful hair curlers, and simple flip-flops, with a cigarette held naturally between her lips. The wooden swing seat and ropes are engulfed in vivid bright-orange flames, producing translucent gray smoke that rises into the overcast sky, while the woman remains calm and unaffected at the center of the composition. Cool, soft overcast daylight evenly illuminates the pale sea, cloudy sky, and grassy foreground, creating a strong contrast with the warm emissive glow of the fire and subtle specular highlights reflecting across the sunglasses. Dark leafy branches frame the upper edge of the image, calm hazy water fills the middle ground, and textured grass anchors the foreground. Capture the scene as a vertically composed full-body portrait using an eye-level camera angle and a 50mm lens, with a shallow depth of field, realistic skin and fabric textures, natural atmospheric haze, cinematic tonal range, detailed flames and smoke, and an unsettling yet elegant surreal fashion-editorial mood.

Width 

Height 

Num\_inference\_steps 

Login to Generate

**Per image generation** will cost **$0.0047**.
Open-source models are included on the [$149/month Open Source Unlimited plan](/pricing). Third-party models are billed per generation on every plan.

Output
---

Idle

Unknown content type

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

[![Nano Banana Pro](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/5ee72f26-dfa9-4d26-a546-7d496ef71be7.webp)](/models/google/nano-banana-pro?config=nano-banana-pro-text2image)[Google](https://modelslab.com/models/google)

 [Nano Banana Pro](/models/google/nano-banana-pro?config=nano-banana-pro-text2image)

[![Gen4 Text to Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/b656bfe5-c402-456b-9980-f7447198887d.webp)](https://modelslab.com/models/runway_ml/gen4_image)[Runway ML](https://modelslab.com/models/runway_ml)

 [Gen4 Text to Image](https://modelslab.com/models/runway_ml/gen4_image)

[![Grok Imagine Image 2.0 Text To Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/36454d6f-dd19-4a92-b618-d9332263045f.webp)](https://modelslab.com/models/x-ai/grok-imagine-image-2.0-t2i)[xAI](https://modelslab.com/models/xai)

 [Grok Imagine Image 2.0 Text To Image](https://modelslab.com/models/x-ai/grok-imagine-image-2.0-t2i)

[![Seedream 5.0 Pro Text To Image ](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/280db637-e26a-4621-a7ea-572ca88c7876.png)](https://modelslab.com/models/byteplus/seedream-5.0-pro-t2i)[BytePlus](https://modelslab.com/models/byteplus)

 [Seedream 5.0 Pro Text To Image](https://modelslab.com/models/byteplus/seedream-5.0-pro-t2i)

[![GPT Image 2.5 Flare Text to Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/82b41377-2d7d-40e9-8c39-44c1b72a1c18.webp)](https://modelslab.com/models/openai/gpt-image-2.5-flare-t2i)[OpenAI](https://modelslab.com/models/openai)

 [GPT Image 2.5 Flare Text to Image](https://modelslab.com/models/openai/gpt-image-2.5-flare-t2i)

[![GPT-Image-2.5 Sunburst - Text To Image ](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/ab94e5f0-8076-4254-a470-6006f72a4967.webp)](https://modelslab.com/models/openai/gpt-image-2.5-sunburst-t2i)[OpenAI](https://modelslab.com/models/openai)

 [GPT-Image-2.5 Sunburst - Text To Image](https://modelslab.com/models/openai/gpt-image-2.5-sunburst-t2i)

### Faster Generation

Built for speed when you are iterating on a prompt.

[![Grok Imagine Text To Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/77fe7302-eee2-45bd-baae-45d2a822b52f.webp)](https://modelslab.com/models/xai/grok-imagine-image-t2i)[xAI](https://modelslab.com/models/xai)

 [Grok Imagine Text To Image](https://modelslab.com/models/xai/grok-imagine-image-t2i)

[![Wan 2.7 Text To Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/aba76d25-b19c-4fee-9123-4cbb29e71646.webp)](https://modelslab.com/models/alibaba_cloud/wan-2.7-t2i)[Alibaba](https://modelslab.com/models/alibaba_cloud)

 [Wan 2.7 Text To Image](https://modelslab.com/models/alibaba_cloud/wan-2.7-t2i)

Related Models
---

Discover similar models you might be interested in

 [View all Image Models](https://modelslab.com/models?feature=imagen)

[![Flux 2 Pro Image Editing](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/42d25fcd-d558-4bcb-a46a-a678f3f4c1b1.png)](https://modelslab.com/models/bfl/flux-2-pro)[BFL](https://modelslab.com/models/bfl)

 [Flux 2 Pro Image Editing

Closed Source Model](https://modelslab.com/models/bfl/flux-2-pro)

[![Grok Imagine Image 2.0 Image Editing](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/9e524e27-1666-42cd-b460-25f143b20108.webp)](https://modelslab.com/models/x-ai/grok-imagine-image-2.0-i2i)[xAI](https://modelslab.com/models/xai)

 [Grok Imagine Image 2.0 Image Editing

Closed Source Model](https://modelslab.com/models/x-ai/grok-imagine-image-2.0-i2i)

[![Flux 2 Max Image Editing](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/446dca1b-8566-43e2-9316-ab700b7ebf15.png)](https://modelslab.com/models/bfl/flux-2-max)[BFL](https://modelslab.com/models/bfl)

 [Flux 2 Max Image Editing

Closed Source Model](https://modelslab.com/models/bfl/flux-2-max)

[![RealTime Text To Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/a6186100-59c4-4f5e-8a51-e0eeb4228f10.png)](https://modelslab.com/models/modelslab/realtime_t2i)[ModelsLab](https://modelslab.com/models/modelslab)

 [RealTime Text To Image

Open Source Model](https://modelslab.com/models/modelslab/realtime_t2i)

[![Qwen Image Edit 2509](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/e36eb254-7c09-4db4-a76d-b94719cb230b.webp)](https://modelslab.com/models/modelslab/qwen-edit-2509)[ModelsLab](https://modelslab.com/models/modelslab)

 [Qwen Image Edit 2509

Open Source Model](https://modelslab.com/models/modelslab/qwen-edit-2509)

[![Wan 2.7 Image Edit](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/eb0785a4-e281-44c1-9c1e-7a9c6a07d6e2.webp)](https://modelslab.com/models/alibaba_cloud/wan-2.7-i2i)[Alibaba](https://modelslab.com/models/alibaba_cloud)

 [Wan 2.7 Image Edit

Closed Source Model](https://modelslab.com/models/alibaba_cloud/wan-2.7-i2i)

View all 18 related models

About Qwen 2.1 Text To Image
---

Qwen 2.1 Text To Image is a text to image AI model by ModelsLab available on ModelsLab. API access starts at $21/month, and open-source models are unlimited on the $149/month plan.

### Technical Specifications

Model IDqwen-edit-2.1

ProviderModelsLab

CategoryImage Models

TaskText to Image

Price$0.0047 per generation

AddedSeptember 22, 2026

### Key Features

- High-resolution AI image generation from text prompts
- Negative prompt support for precise control
- Multiple output formats and aspect ratios
- Adjustable inference steps and guidance scale
- Batch generation support via API

### Quick Start

Integrate Qwen 2.1 Text To Image into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v6/images/text2img"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "qwen-edit-2.1",
        "prompt": "your prompt here",
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

Qwen 2.1 Text To Image API costs $0.0047 per generation. Plans start at $21/month, and open-source models are unlimited on the $149/month plan. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- Product photography and e-commerce visuals
- Marketing and social media content creation
- Concept art and design prototyping
- Custom illustrations and artwork

[Browse Image Models](https://modelslab.com/models?feature=imagen) [More from ModelsLab](https://modelslab.com/models/modelslab) [View Pricing](https://modelslab.com/pricing)

Qwen 2.1 Text To Image FAQ
---

### What is Qwen 2.1 Text To Image?

Qwen 2.1 Text To Image is a text to image AI model by ModelsLab available on ModelsLab. API access starts at $21/month, and open-source models are unlimited on the $149/month plan.

### How do I use the Qwen 2.1 Text To Image API?

You can integrate Qwen 2.1 Text To Image into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "qwen-edit-2.1" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Qwen 2.1 Text To Image cost?

Qwen 2.1 Text To Image costs $0.0047 per generation. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.

### What is the Qwen 2.1 Text To Image model ID?

The model ID for Qwen 2.1 Text To Image is "qwen-edit-2.1". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use Qwen 2.1 Text To Image?

Yes. ModelsLab is subscription-based with no free tier — plans start at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-09-23*