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

flux-kontext-dev

flux-kontext-dev

【效率与协作】Flux Kontext Dev. Edit images using Flux Kontext with prompt-based instructions and configurable LoRA-like controls. Triggers: flux, kontext, image edit, flux edit, image editing

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

技能说明

GitHub

name: flux-kontext-dev description: "Flux Kontext Dev. Edit images using Flux Kontext with prompt-based instructions and configurable LoRA-like controls. Triggers: flux, kontext, image edit, flux edit, image editing" allowed-tools: Bash(curl *), WebFetch

Flux Kontext Dev

Edit images using Flux Kontext with prompt-based instructions. Supports acceleration modes, configurable inference steps, guidance scale, multiple output formats, and flexible resolution modes.

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-kontext-dev",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/photo.jpg",
      "prompt": "Change the person's shirt color to bright red",
      "num_images": 1,
      "output_format": "jpeg"
    }
  }'

Parameters

ParameterTypeDefaultDescription
accelerationstringnoneGeneration speed. enum: none, regular, high
enable_safety_checkerbooleantrueIf set to true, the safety checker will be enabled
enhance_promptbooleanfalseWhether to enhance the prompt for better results
guidance_scalenumber2.5CFG scale for prompt adherence
image_urlstringThe URL of the image to edit
num_imagesinteger1The number of images to generate
num_inference_stepsinteger28The number of inference steps to perform
output_formatstringjpegOutput format. enum: jpeg, png
promptstringThe prompt to edit the image
resolution_modestringmatch_inputHow output resolution is set. enum: auto, match_input, 1:1, 16:9, 21:9, 3:2, 2:3, 4:5, 5:4, 3:4, 4:3, 9:16, 9:21
seedstringSeed for reproducible results

Examples

Object replacement with acceleration:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-kontext-dev",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/desk-setup.jpg",
      "prompt": "Replace the laptop with a vintage typewriter",
      "acceleration": "regular",
      "num_images": 1,
      "guidance_scale": 3.0,
      "output_format": "png"
    }
  }'

Style transformation with multiple outputs:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-kontext-dev",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/cityscape.jpg",
      "prompt": "Transform into a Studio Ghibli anime art style with soft pastel colors",
      "num_images": 3,
      "acceleration": "high",
      "enhance_prompt": true,
      "resolution_mode": "16:9",
      "seed": "12345"
    }
  }'

Related Models

Documentation

我的收藏