# uncensored-flux-lora > Generate high-quality, uncensored images with a 12 billion parameter model, leveraging LoRA for rapid, detailed text-to-image creation. ## Overview - **Model ID**: `uncensored-flux-lora1` - **Category**: flux - **Provider**: modelslab - **Status**: model_ready - **Screenshot**: `https://i.pinimg.com/736x/45/35/d3/4535d3d2a2dd6e1cd5a3b2830dc0687d.jpg` ## 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/img2img` - **Method**: POST ### Parameters - **`init_image`** (required): - Type: file (image/jpeg,image/png) - Example: Please upload image - **`prompt`** (required): - Type: textarea - Example: Please enter prompt here - **`samples`** (required): - Type: number (range: 1-4) - **`negative_prompt`** (optional): - Type: textarea - Example: Enter negative prompt that you do not want see in image - **`num_inference_steps`** (optional): - Type: number (range: 21-31) - **`strength`** (required): - Type: number (range: 0.1-1) - **`scheduler`** (optional): - Type: select (options: DPM++ 2M, DPM++ SDE, Euler, Euler a) - **`guidance_scale`** (optional): - Type: number (range: 1-10) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/images/img2img \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "uncensored-flux-lora1", "init_image": "https://assets.modelslab.com/generations/448cbf3e-a5f3-4787-996d-cd014728a05d", "prompt": "Divine queen on golden throne, radiant wings, ornate white-gold armor, ethereal glow, cinematic lighting, sparkles, soft-focus elegance.", "samples": "1", "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), (jpeg artifacts), (blurry), (duplicate), (morbid), (mutilated), (out of frame), (extra limbs), (bad anatomy), (disfigured), (deformed), (cross-eye), (glitch), (oversaturated), (overexposed), (underexposed), (bad proportions), (bad hands), (bad feet), (cloned face), (long neck), (missing arms), (missing legs), (extra fingers), (fused fingers), (poorly drawn hands), (poorly drawn face), (mutation), (deformed eyes), watermark, text, logo, signature, grainy, tiling, censored, nsfw, ugly, blurry eyes, noisy image, bad lighting, unnatural skin, asymmetry", "num_inference_steps": "31", "strength": "0.5", "scheduler": "DPMSolverMultistepScheduler", "guidance_scale": "7.5" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/images/img2img", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "uncensored-flux-lora1", "init_image": "https://assets.modelslab.com/generations/448cbf3e-a5f3-4787-996d-cd014728a05d", "prompt": "Divine queen on golden throne, radiant wings, ornate white-gold armor, ethereal glow, cinematic lighting, sparkles, soft-focus elegance.", "samples": "1", "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), (jpeg artifacts), (blurry), (duplicate), (morbid), (mutilated), (out of frame), (extra limbs), (bad anatomy), (disfigured), (deformed), (cross-eye), (glitch), (oversaturated), (overexposed), (underexposed), (bad proportions), (bad hands), (bad feet), (cloned face), (long neck), (missing arms), (missing legs), (extra fingers), (fused fingers), (poorly drawn hands), (poorly drawn face), (mutation), (deformed eyes), watermark, text, logo, signature, grainy, tiling, censored, nsfw, ugly, blurry eyes, noisy image, bad lighting, unnatural skin, asymmetry", "num_inference_steps": "31", "strength": "0.5", "scheduler": "DPMSolverMultistepScheduler", "guidance_scale": "7.5" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/images/img2img", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "uncensored-flux-lora1", "init_image": "https://assets.modelslab.com/generations/448cbf3e-a5f3-4787-996d-cd014728a05d", "prompt": "Divine queen on golden throne, radiant wings, ornate white-gold armor, ethereal glow, cinematic lighting, sparkles, soft-focus elegance.", "samples": "1", "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), (jpeg artifacts), (blurry), (duplicate), (morbid), (mutilated), (out of frame), (extra limbs), (bad anatomy), (disfigured), (deformed), (cross-eye), (glitch), (oversaturated), (overexposed), (underexposed), (bad proportions), (bad hands), (bad feet), (cloned face), (long neck), (missing arms), (missing legs), (extra fingers), (fused fingers), (poorly drawn hands), (poorly drawn face), (mutation), (deformed eyes), watermark, text, logo, signature, grainy, tiling, censored, nsfw, ugly, blurry eyes, noisy image, bad lighting, unnatural skin, asymmetry", "num_inference_steps": "31", "strength": "0.5", "scheduler": "DPMSolverMultistepScheduler", "guidance_scale": "7.5" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/image-to-image/uncensored-flux-lora1) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)