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-2-flex

flux-2-flex

Flux 2 | Flex. Flexible text-to-image generation with guidance scale control. Triggers: text to image, flux, flex, image generation

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: flux-2-flex description: "Flux 2 | Flex. Flexible text-to-image generation with guidance scale control. Triggers: text to image, flux, flex, image generation" allowed-tools: Bash(curl *), WebFetch

Flux 2 | Flex

Generate images from text prompts with flexible control over guidance scale, inference steps, and prompt expansion. Balances quality and creative freedom.

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-flex",
    "version": "0.0.1",
    "input": {
      "prompt": "a serene zen garden with raked sand patterns and moss-covered stones",
      "image_size": "landscape_4_3",
      "guidance_scale": 3.5
    }
  }'

Parameters

ParameterTypeDefaultDescription
enable_prompt_expansionbooleantrueWhether to expand the prompt using the model's own knowledge.
enable_safety_checkerbooleantrueWhether to enable the safety checker.
guidance_scalenumber3.5The guidance scale to use for the generation.
image_sizestringlandscape_4_3The size of the generated image. enum: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9
num_inference_stepsinteger28The number of inference steps to perform.
output_formatstringjpegThe format of the generated image. enum: jpeg, png
promptstringThe prompt to generate an image from.
safety_tolerancestring2The safety tolerance level. 1 is most strict, 5 is most permissive. enum: 1, 2, 3, 4, 5
seedintegerThe seed to use for the generation.

Examples

High guidance landscape:

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-flex",
    "version": "0.0.1",
    "input": {
      "prompt": "aerial view of terraced rice paddies at sunrise, golden light, mist",
      "image_size": "landscape_16_9",
      "guidance_scale": 5.0,
      "num_inference_steps": 35,
      "output_format": "png"
    }
  }'

Creative portrait with low guidance:

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-flex",
    "version": "0.0.1",
    "input": {
      "prompt": "abstract portrait, double exposure, forest and face merging",
      "image_size": "portrait_4_3",
      "guidance_scale": 2.0,
      "enable_prompt_expansion": false,
      "seed": 42
    }
  }'

Related Models

Documentation

Skills enregistrées