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

flux-schnell

flux-schnell

【效率与协作】Flux Schnell | Fast AI Image Generation. Generate images quickly from text prompts with Flux Schnell in just 4 steps. Triggers: flux schnell, fast image, quick generation, text to image, flux fast

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

技能说明

GitHub

name: flux-schnell description: "Flux Schnell | Fast AI Image Generation. Generate images quickly from text prompts with Flux Schnell in just 4 steps. Triggers: flux schnell, fast image, quick generation, text to image, flux fast" allowed-tools: Bash(curl *), WebFetch

Flux Schnell

Generate images quickly from text prompts with Flux Schnell. Optimized for speed with just 4 denoising steps, making it ideal for rapid prototyping and real-time applications.

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-schnell",
    "version": "0.0.1",
    "input": {
      "prompt": "a cozy reading nook with floor-to-ceiling bookshelves, warm afternoon light streaming through a window",
      "aspect_ratio": "1:1",
      "num_inference_steps": 4,
      "output_format": "webp"
    }
  }'

Parameters

ParameterTypeDefaultDescription
aspect_ratiostring1:1Output aspect ratio. enum: 1:1, 16:9, 21:9, 3:2, 2:3, 4:5, 5:4, 3:4, 4:3, 9:16, 9:21
disable_safety_checkerbooleantrueDisable safety checker for generated images
go_fastbooleantrueRun faster with fp8 quantized model optimized for speed
megapixelsstring1Resolution scale. enum: 1, 0.25
num_inference_stepsinteger4Number of denoising steps
num_outputsinteger1Number of images to generate
output_formatstringwebpOutput format. enum: webp, jpg, png
output_qualityinteger80Quality when saving output images, from 0 to 100
promptstring-Prompt for generated image
seedinteger-Random seed. Set for reproducible generation

Examples

Quick batch generation:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-schnell",
    "version": "0.0.1",
    "input": {
      "prompt": "a minimalist logo design for a tech startup, clean lines, modern typography",
      "aspect_ratio": "1:1",
      "num_outputs": 4,
      "num_inference_steps": 4,
      "output_format": "png"
    }
  }'

Widescreen cinematic:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-schnell",
    "version": "0.0.1",
    "input": {
      "prompt": "an epic battle scene between samurai warriors on a misty bridge, cinematic composition, dramatic lighting",
      "aspect_ratio": "21:9",
      "num_inference_steps": 4,
      "go_fast": true,
      "seed": 42
    }
  }'

Related Models

Documentation

我的收藏