L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

flux-dev-controlnet

flux-dev-controlnet

Flux Controlnet | Multi-Mode Controlled Image Generation. Generate images with canny, depth, or soft edge control using Flux Dev. Triggers: flux controlnet, controlnet, canny, depth, soft edge, controlled generation

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: flux-dev-controlnet description: "Flux Controlnet | Multi-Mode Controlled Image Generation. Generate images with canny, depth, or soft edge control using Flux Dev. Triggers: flux controlnet, controlnet, canny, depth, soft edge, controlled generation" allowed-tools: Bash(curl *), WebFetch

Flux Controlnet

Generate images with multi-mode ControlNet support using Flux Dev. Supports canny edge detection, depth maps, and soft edge control types with optional LoRA models.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-dev-controlnet",
    "version": "0.0.1",
    "input": {
      "prompt": "a stunning watercolor painting of a mountain village at sunset",
      "control_image": "https://example.com/village-photo.jpg",
      "control_type": "depth",
      "control_strength": 0.5,
      "guidance_scale": 3.5,
      "steps": 28
    }
  }'

Parameters

ParameterTypeDefaultDescription
control_imagestring-Image to use with ControlNet
control_strengthnumber0.5Strength of ControlNet. Different controls work better at different strengths
control_typestringdepthControl mode. enum: canny, soft_edge, depth
depth_preprocessorstringDepthAnythingDepth preprocessor. enum: Midas, Zoe, DepthAnything, Zoe-DepthAnything
guidance_scalenumber3.5Guidance scale
image_to_image_strengthnumber0Strength of image-to-image control. 0 means no control, 1 means full
lora_strengthnumber1Strength of LoRA model
lora_urlstring-Optional LoRA model URL (HuggingFace .safetensors or Replicate link)
negative_promptstring-Things you do not want to see in the image
output_formatstringwebpOutput format. enum: webp, jpg, png
output_qualityinteger80Quality of output images, from 0 to 100
promptstring-Text prompt for generation
return_preprocessed_imagebooleanfalseReturn the preprocessed control image
seedinteger-Set a seed for reproducibility
soft_edge_preprocessorstringHEDSoft edge preprocessor. enum: HED, TEED, PiDiNet
stepsinteger28Number of steps

Examples

Canny edge control:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-dev-controlnet",
    "version": "0.0.1",
    "input": {
      "prompt": "a cyberpunk cityscape at night, neon lights, rain-slicked streets, ultra detailed",
      "control_image": "https://example.com/city-skyline.jpg",
      "control_type": "canny",
      "control_strength": 0.6,
      "guidance_scale": 4,
      "steps": 30,
      "output_format": "png"
    }
  }'

Soft edge with LoRA:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-dev-controlnet",
    "version": "0.0.1",
    "input": {
      "prompt": "anime style illustration of a girl in a flower garden, Studio Ghibli",
      "control_image": "https://example.com/person-in-garden.jpg",
      "control_type": "soft_edge",
      "soft_edge_preprocessor": "HED",
      "control_strength": 0.4,
      "lora_url": "https://huggingface.co/my-org/anime-style-lora.safetensors",
      "lora_strength": 0.8,
      "steps": 35,
      "seed": 42
    }
  }'

Related Models

Documentation

Skills enregistrées