# Fashion 1.0 > AI model for generating stable diffusion content ## Overview - **Model ID**: `fashion-1` - **Category**: stable diffusion - **Provider**: modelslab - **Status**: model_unloaded - **Screenshot**: `https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/a0e48ba5-6023-47bf-b517-4ec0cd047db5.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/image_editing/fashion` - **Method**: POST ### Parameters - **`init_image`** (required): - Type: file - **`cloth_image`** (required): - Type: file - **`cloth_type`** (required): - Type: select (options: Upper Body, Lower Body, Dresses) - **`prompt`** (required): - Type: textarea - **`negative_prompt`** (optional): - Type: textarea ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/image_editing/fashion \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "fashion-1", "init_image": "https://assets.modelslab.com/generations/1f68ebc4-8306-4c3d-9e3c-ff69f41906d4", "cloth_image": "https://assets.modelslab.com/generations/47f52677-2761-46c3-9d5b-d039b8dfc1a1", "cloth_type": "upper_body", "prompt": "A realistic photo of a model wearing a beautiful t-shirt", "negative_prompt": "Low quality, unrealistic, bad cloth, warped cloth" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/image_editing/fashion", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "fashion-1", "init_image": "https://assets.modelslab.com/generations/1f68ebc4-8306-4c3d-9e3c-ff69f41906d4", "cloth_image": "https://assets.modelslab.com/generations/47f52677-2761-46c3-9d5b-d039b8dfc1a1", "cloth_type": "upper_body", "prompt": "A realistic photo of a model wearing a beautiful t-shirt", "negative_prompt": "Low quality, unrealistic, bad cloth, warped cloth" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/image_editing/fashion", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "fashion-1", "init_image": "https://assets.modelslab.com/generations/1f68ebc4-8306-4c3d-9e3c-ff69f41906d4", "cloth_image": "https://assets.modelslab.com/generations/47f52677-2761-46c3-9d5b-d039b8dfc1a1", "cloth_type": "upper_body", "prompt": "A realistic photo of a model wearing a beautiful t-shirt", "negative_prompt": "Low quality, unrealistic, bad cloth, warped cloth" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/fashion/fashion-1) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)