ModelsLab/Uncensored-Flux-Lora
Generate high-quality, uncensored images with a 12 billion parameter model, leveraging LoRA for rapid, detailed text-to-image creation.
API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v6/images/img2img
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"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","model_id": "fluxdev","num_inference_steps": "31","strength": "0.5","scheduler": "DPMSolverMultistepScheduler","guidance_scale": "7.5","base64": "no","key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| init_image | init_image | Image to upscale/enhance |
| prompt | prompt | Text description of the image you want to generate |
| samples | samples | Number of images to generate (1-4) |
| negative_prompt | negative_prompt | Things you do not want in the generated image |
| model_id | model_id | Model to use for generation |
| steps | num_inference_steps | Number of inference steps |
| strength | strength | How much to follow prompt vs original (1=more prompt, 0.1=minimal change) |
| scheduler | scheduler | Sampling scheduler |
| guidance_scale | guidance_scale | How closely to follow the prompt (1-10) |
| base64 | base64 | Get the response as a base64 string. Pass init_image as a base64 string to get a base64 response. Default is "no". |