---
title: Controlnet Canny XL API | Text to Image | ModelsLab
description: Boost your image processing with Canny XL API. Achieve precise edge detection with this powerful model. Explore Canny XL API's accuracy and speed today.
url: https://modelslab.com/models/community-model/canny_xl/api.md
canonical: https://modelslab.com/models/community-model/canny_xl/api.md
type: product
component: Playground/Endpoint/Index
generated_at: 2026-04-06T08:02:41.084539Z
---

# Controlnet Canny XL API | Text to Image | ModelsLab

> Boost your image processing with Canny XL API. Achieve precise edge detection with this powerful model. Explore Canny XL API's accuracy and speed today.

## Model

- **Model ID**: `canny_xl`
- **Category**: Stable Diffusion
- **Provider**: Modelslab
- **Status**: model_reload

This canny controlnet model is for SDXL,

## API Endpoint

- **URL**: `https://modelslab.com/api/v6/images/text2img`
- **Method**: `POST`
- **Content-Type**: `application/json`
- **Endpoint Name**: Text to Image Community Model

Generate photorealistic and imaginative images from text prompts with advanced detail, inpainting, and image-to-image translation features, ideal for creatives and marketers.

Per image generation will cost 0.0047$ For premium plan image generation will cost 0.00$ i.e Free.

## API Parameters

### `prompt` (optional)

prompt help in image generation

- **Type**: textarea
- **Default**: `R3alisticF, hauntingly beautiful oriental necromancer, long flowing brown hair,...`
- **Example**: Enter prompt

### `model_id` (optional)

Enter model_id that can help in image generation

- **Type**: text
- **Default**: `boziorealvisxlv4`
- **Example**: Enter model_id here

### `lora_model` (optional)

- **Type**: multiple_models

### `width` (optional)

width of the image 

- **Type**: number
- **Default**: `1024`
- **Range**: min: 512, max: 1024

### `height` (optional)

height of the image 

- **Type**: number
- **Default**: `1024`
- **Range**: min: 512, max: 1024

### `negative_prompt` (optional)

Negative prompt help in avoid things that you do not want in image 

- **Type**: textarea
- **Default**: `(worst quality:2), (low quality:2), (normal quality:2), (jpeg artifacts), (blurr...`
- **Example**: Enter negative prompt that you do not want see in image

### `scheduler` (optional)

- **Type**: select
- **Default**: `DPMSolverMultistepScheduler`
- **Options**: `DPMSolverMultistepScheduler`, `DPMSolverSinglestepScheduler`, `EulerDiscreteScheduler`, `EulerAncestralDiscreteScheduler`

### `guidance_scale` (optional)

- **Type**: number
- **Default**: `7.5`
- **Range**: min: 1, max: 10

## Usage Example

### 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": "canny_xl",
    "prompt": "R3alisticF, hauntingly beautiful oriental necromancer, long flowing brown hair, bangs, darkly tanned skin, earrings, bone necklaces, dark eyeshadow, red lips, vibrant, front-laced transparent, filmy silk blouse, cleavage, holding skull, in a sandstone room lit by candles, High Detail, Perfect Composition, high contrast, silhouetted, chiascuro",
    "lora_model": [],
    "width": "1024",
    "height": "1024",
    "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",
    "scheduler": "DPMSolverMultistepScheduler",
    "guidance_scale": "7.5"
}'
```

## Further Reading

- [Full API Reference (llms.txt)](https://modelslab.com/models/modelslab/canny_xl/llms.txt)

## Related Models

- [CyberRealistic - v2.0](https://modelslab.com/models/modelslab/cyberrealistic-v2-0) — Stable Diffusion
- [gd-kids-illustration-1](https://modelslab.com/models/modelslab/gd-kids-illustration-1) — Stable Diffusion
- [The Great Warrior Wall/巨兵长城传 - v2.1](https://modelslab.com/models/modelslab/thegreatwarriorwall-v21) — Stable Diffusion
- [NijiDiffusedMix](https://modelslab.com/models/modelslab/nijidiffusedmix) — Stable Diffusion
- [- casting shadow "SD1.5" v2](https://modelslab.com/models/modelslab/castingshadowsd15v2) — Stable Diffusion
- [Marinette Dupain-Cheng, Ladybug, Miraculous. Different models and attires. - Civilian (SD1.5)](https://modelslab.com/models/modelslab/marinette-dupain-cheng-ladybug-miraculous-different-models-and-attires-civilian-1752001337) — Stable Diffusion
- [CyberRealistic111](https://modelslab.com/models/modelslab/cyberrealistic111) — Stable Diffusion
- [Detail Asian Realistic - v6.0](https://modelslab.com/models/modelslab/detail-asian-realistic-v6-0) — Stable Diffusion
- [Ether Real Mix 3.1](https://modelslab.com/models/modelslab/ether-real-mix-31) — Stable Diffusion
- [boyce_rola](https://modelslab.com/models/modelslab/boycerola) — Stable Diffusion

---

*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-04-06*