# Qwen > A 20-billion-parameter multimodal diffusion transformer model excelling in complex multilingual text rendering, precise image generation, and advanced editing like style transfer, object manipulation, and pose adjustment with strong semantic and visual fidelity. ## Overview - **Model ID**: `qwen` - **Category**: image - **Provider**: modelslab - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/b3053afd-c802-44c0-9faa-a17ba47ec8c9.png` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v6/images/text2img` - **Method**: POST ### Parameters - **`prompt`** (required): - Type: textarea - **`width`** (required): width of the image - Type: number (range: 512-2024) - **`height`** (required): Height of the Image - Type: number (range: 512-2024) - **`guidance_scale`** (optional): - Type: number ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/images/text2img \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "qwen", "prompt": "high-end product photography of a luxury watch on a dark reflective surface, dramatic lighting, ultra-realistic detail", "width": "2024", "height": "2024", "guidance_scale": "7.5" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/images/text2img", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "qwen", "prompt": "high-end product photography of a luxury watch on a dark reflective surface, dramatic lighting, ultra-realistic detail", "width": "2024", "height": "2024", "guidance_scale": "7.5" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/images/text2img", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "qwen", "prompt": "high-end product photography of a luxury watch on a dark reflective surface, dramatic lighting, ultra-realistic detail", "width": "2024", "height": "2024", "guidance_scale": "7.5" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/qwen-text-to-image/qwen) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)