界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

z-image-turbo-controlnet-lora

z-image-turbo-controlnet-lora

【效率与协作】Z Image | Turbo | Controlnet | Lora. Generate images with ControlNet guidance and LoRA weights. Triggers: controlnet, lora, guided generation, z image, pose to image, depth

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: z-image-turbo-controlnet-lora description: "Z Image | Turbo | Controlnet | Lora. Generate images with ControlNet guidance and LoRA weights. Triggers: controlnet, lora, guided generation, z image, pose to image, depth" allowed-tools: Bash(curl *), WebFetch

Z Image | Turbo | Controlnet | Lora

Generate images with ControlNet-guided generation and LoRA weight support. Use canny edges, depth maps, or pose detection from reference images combined with custom LoRA models for precise control over composition and style.

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": "z-image-turbo-controlnet-lora",
    "version": "0.0.1",
    "input": {
      "prompt": "A futuristic robot in the same pose, metallic chrome finish",
      "image_url": "https://example.com/person-pose.jpg",
      "preprocess": "pose",
      "loras": [{"path": "https://example.com/scifi-lora.safetensors", "scale": 0.8}],
      "control_scale": 0.9,
      "image_size": "auto",
      "output_format": "png"
    }
  }'

Parameters

ParameterTypeDefaultDescription
accelerationstringnoneThe acceleration level to use. Options: none, regular, high
control_endnumber0.4The end of the controlnet conditioning.
control_scalenumber0.9The scale of the controlnet conditioning.
control_startnumber0The start of the controlnet conditioning.
enable_prompt_expansionbooleanfalseWhether to enable prompt expansion.
enable_safety_checkerbooleantrueIf set to true, the safety checker will be enabled.
image_sizestringautoThe size of the generated image. Options: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9, auto
image_urlstring-URL of Image for ControlNet generation.
lorasarray-List of LoRA weights to apply.
num_imagesinteger1The number of images to generate.
num_inference_stepsinteger8The number of inference steps to perform.
output_formatstringpngThe format of the generated image. Options: jpeg, png, webp
preprocessstringnonePreprocessing to apply to the image. Options: none, canny, depth, pose
promptstring-The prompt to generate an image from.
seedinteger-Seed for reproducible generation.

Examples

Canny edge-guided generation:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "z-image-turbo-controlnet-lora",
    "version": "0.0.1",
    "input": {
      "prompt": "Elegant architectural rendering, glass and steel",
      "image_url": "https://example.com/building-sketch.jpg",
      "preprocess": "canny",
      "loras": [{"path": "https://example.com/architecture-lora.safetensors", "scale": 0.7}]
    }
  }'

Depth-guided with fine-tuned control:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "z-image-turbo-controlnet-lora",
    "version": "0.0.1",
    "input": {
      "prompt": "An enchanted forest scene with magical creatures",
      "image_url": "https://example.com/forest-photo.jpg",
      "preprocess": "depth",
      "loras": [{"path": "https://example.com/fantasy-lora.safetensors", "scale": 0.9}],
      "control_scale": 0.7,
      "control_start": 0,
      "control_end": 0.6,
      "acceleration": "regular",
      "num_images": 2,
      "seed": 42
    }
  }'

Related Models

Documentation

我的收藏