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

flux-2-flash-edit

flux-2-flash-edit

【效率与协作】Flux 2 | Flash | Edit. Edit images with the ultra-fast Flux 2 Flash model. Triggers: image editing, flux flash edit, fast edit, quick edit

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

技能说明

GitHub

name: flux-2-flash-edit description: "Flux 2 | Flash | Edit. Edit images with the ultra-fast Flux 2 Flash model. Triggers: image editing, flux flash edit, fast edit, quick edit" allowed-tools: Bash(curl *), WebFetch

Flux 2 | Flash | Edit

Edit images using the ultra-fast Flux 2 Flash model with optional prompt expansion. Designed for rapid iteration on image edits with configurable guidance and output options.

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-2-flash-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Replace the sky with northern lights",
      "image_urls": ["https://example.com/night-scene.jpg"],
      "image_size": "square_hd",
      "guidance_scale": 2.5,
      "output_format": "png"
    }
  }'

Parameters

ParameterTypeDefaultDescription
enable_prompt_expansionbooleanfalseIf set to true, the prompt will be expanded for better results.
enable_safety_checkerbooleantrueIf set to true, the safety checker will be enabled.
guidance_scalenumber2.5Guidance scale for how closely the model follows the prompt.
image_sizestringsquare_hdThe size of the image to generate. Options: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9
image_urlsarray-The URLs of the images for editing. A maximum of 4 images are allowed.
num_imagesinteger1The number of images to generate.
output_formatstringpngThe format of the generated image. Options: jpeg, png, webp
promptstring-The prompt to edit the image.
seedinteger-The seed to use for the generation. If not provided, a random seed will be used.

Examples

Quick edit:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-2-flash-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Add a cute kitten sitting on the table",
      "image_urls": ["https://example.com/desk.jpg"]
    }
  }'

Enhanced edit with prompt expansion:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-2-flash-edit",
    "version": "0.0.1",
    "input": {
      "prompt": "Make it look like a vintage photograph",
      "image_urls": ["https://example.com/modern-photo.jpg"],
      "enable_prompt_expansion": true,
      "guidance_scale": 3.0,
      "num_images": 2,
      "output_format": "jpeg",
      "seed": 777
    }
  }'

Related Models

Documentation

我的收藏