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

p-image-edit-lora-image-edit

p-image-edit-lora-image-edit

【效率与协作】Pruna | P-Image Edit LoRA | Image Editing. Edit images using custom LoRA weights with prompt-based instructions. Triggers: image edit, lora, pruna, edit image, image editing

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

技能说明

GitHub

name: p-image-edit-lora-image-edit description: "Pruna | P-Image Edit LoRA | Image Editing. Edit images using custom LoRA weights with prompt-based instructions. Triggers: image edit, lora, pruna, edit image, image editing" allowed-tools: Bash(curl *), WebFetch

Pruna | P-Image Edit LoRA | Image Editing

Edit images using custom LoRA weights trained with p-image-edit-trainer. Supports multi-image editing with prompt-based instructions and configurable LoRA strength.

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": "p-image-edit-lora-image-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Make image 1 look like a watercolor painting",
      "images": ["https://example.com/photo.jpg"],
      "lora_weights": "https://huggingface.co/my-org/my-edit-lora",
      "lora_scale": 1,
      "aspect_ratio": "match_input_image"
    }
  }'

Parameters

ParameterTypeDefaultDescription
aspect_ratiostringmatch_input_imageOutput aspect ratio. enum: match_input_image, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3
disable_safety_checkerbooleanfalseDisable safety checker for generated images.
hf_api_tokenstringfalseHuggingFace API token for accessing private LoRA repositories.
imagesarrayfalseArray of 1-5 image URLs for editing.
lora_scalenumber1LoRA strength (-1 to 3). Default 1 for edit LoRAs.
lora_weightsstringfalseHuggingFace URL to LoRA weights. Must be trained with p-image-edit-trainer.
promptstringfalseText prompt describing the edit. Refer to images as image 1, image 2, etc.
seedintegerfalseRandom seed for reproducible generation.
turbobooleantrueFaster optimizations. Set false for complex tasks.

Examples

Basic image edit 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": "p-image-edit-lora-image-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Apply a vintage film look to image 1",
      "images": ["https://example.com/landscape.jpg"],
      "lora_weights": "https://huggingface.co/my-org/vintage-lora",
      "lora_scale": 0.8
    }
  }'

Multi-image edit with custom aspect ratio:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "p-image-edit-lora-image-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Combine the style of image 1 with the subject of image 2",
      "images": ["https://example.com/style.jpg", "https://example.com/subject.jpg"],
      "lora_weights": "https://huggingface.co/my-org/style-transfer-lora",
      "lora_scale": 1.2,
      "aspect_ratio": "16:9",
      "turbo": false,
      "seed": 42
    }
  }'

High LoRA strength edit:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "p-image-edit-lora-image-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Transform image 1 into a cartoon character",
      "images": ["https://example.com/portrait.jpg"],
      "lora_weights": "https://huggingface.co/my-org/cartoon-lora",
      "lora_scale": 2.5,
      "disable_safety_checker": false
    }
  }'

Related Models

Documentation

我的收藏