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

p-image-edit

p-image-edit

【效率与协作】P Image | Edit. Edit images with AI using reference images and text prompts. Triggers: image editing, ai edit, photo edit, p image

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

技能说明

GitHub

name: p-image-edit description: "P Image | Edit. Edit images with AI using reference images and text prompts. Triggers: image editing, ai edit, photo edit, p image" allowed-tools: Bash(curl *), WebFetch

P Image | Edit

Edit images using AI with text prompts and reference images. Supports various aspect ratios, turbo mode for faster processing, and reproducible generation with seed control.

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",
    "version": "0.0.1",
    "input": {
      "prompt": "Change the dress color to emerald green",
      "images": ["https://example.com/fashion-photo.jpg"],
      "aspect_ratio": "match_input_image",
      "turbo": true
    }
  }'

Parameters

ParameterTypeDefaultDescription
aspect_ratiostringmatch_input_imageAspect ratio of the output. Options: 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.
imagesarray-Images to use as a reference. For editing, provide the main image as the first.
promptstring-Text prompt for image generation. Describe your edit task clearly.
seedinteger-Random seed. Set for reproducible generation.
turbobooleantrueIf turned on, the model will run faster with additional optimizations.

Examples

Basic 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",
    "version": "0.0.1",
    "input": {
      "prompt": "Remove the text overlay and clean up the background",
      "images": ["https://example.com/photo-with-text.jpg"]
    }
  }'

Edit with specific aspect ratio and seed:

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",
    "version": "0.0.1",
    "input": {
      "prompt": "Transform the scene into a snowy winter landscape with frost on the trees",
      "images": ["https://example.com/autumn-park.jpg"],
      "aspect_ratio": "16:9",
      "turbo": false,
      "seed": 42
    }
  }'

Related Models

Documentation

我的收藏