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-trained

flux-trained

Flux Img-to-Img | Face-Guided Image Generation. Generate images guided by a face/ID image with Flux. Triggers: flux img2img, face generation, id image, flux trained, face guided generation

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: flux-trained description: "Flux Img-to-Img | Face-Guided Image Generation. Generate images guided by a face/ID image with Flux. Triggers: flux img2img, face generation, id image, flux trained, face guided generation" allowed-tools: Bash(curl *), WebFetch

Flux Img-to-Img

Generate images guided by a face/ID image using Flux. Upload an ID image and provide a text prompt to generate portraits and images with identity preservation.

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-trained",
    "version": "0.0.1",
    "input": {
      "prompt": "portrait, color, cinematic",
      "main_face_image": "https://example.com/face-photo.jpg",
      "width": 896,
      "height": 1152,
      "num_steps": 20,
      "guidance_scale": 4
    }
  }'

Parameters

ParameterTypeDefaultDescription
guidance_scalenumber4Guidance scale for text prompt influence (1.0-10.0)
heightinteger1152Height of generated image (256-1536 pixels)
id_weightnumber1Weight of the ID image influence (0.0-3.0)
main_face_imagestring-Upload an ID image for face generation
max_sequence_lengthinteger128Max sequence length for prompt (T5), smaller is faster (128-512)
negative_promptstringbad quality, worst quality, text, signature...Negative prompt
num_outputsinteger1Number of images to generate (1-4)
num_stepsinteger20Number of denoising steps (1-20)
output_formatstringwebpOutput format. enum: png, webp
output_qualityinteger80Quality of output image (1-100)
promptstringportrait, color, cinematicText prompt to guide generation
seedinteger-Random seed (leave blank or -1 for random)
start_stepinteger1Timestep to start inserting ID (0-4 recommended, 0 for highest fidelity)
true_cfgnumber1Classifier-Free Guidance scale. 1.0 uses standard CFG
widthinteger896Width of generated image (256-1536 pixels)

Examples

Cinematic portrait with high fidelity:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-trained",
    "version": "0.0.1",
    "input": {
      "prompt": "cinematic portrait, dramatic lighting, shallow depth of field, professional photography",
      "main_face_image": "https://example.com/headshot.jpg",
      "width": 896,
      "height": 1152,
      "id_weight": 1.5,
      "start_step": 0,
      "num_steps": 20,
      "guidance_scale": 5,
      "output_format": "png"
    }
  }'

Multiple variations:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-trained",
    "version": "0.0.1",
    "input": {
      "prompt": "a person in a futuristic sci-fi setting, holographic displays, neon lighting",
      "main_face_image": "https://example.com/face.jpg",
      "num_outputs": 3,
      "width": 1024,
      "height": 1024,
      "id_weight": 1,
      "guidance_scale": 4,
      "seed": 42
    }
  }'

Related Models

Documentation

Skills enregistrées