L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · 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

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

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

Skills enregistrées