What can you do with it?
The/image-generate
command enables you to create unique images from text descriptions using the high-performance Flux Schnell model. You can generate artwork, product mockups, marketing visuals, concept designs, illustrations, and professional graphics by simply describing what you want to see, with precise control over style, composition, and quality.
How to use it?
Basic Command Structure
Parameters
Required:prompt
- Text description of the image you want to generate
aspect_ratio
- Image dimensions: “1:1”, “16:9”, “21:9”, “3:2”, “2:3”, “4:5”, “5:4”, “3:4”, “4:3”, “9:16”, “9:21” (defaults to “1:1”)num_outputs
- Number of variations to generate: 1-4 (defaults to 1)num_inference_steps
- Number of denoising steps: 1-4 (defaults to 4). Lower steps = faster but lower qualityseed
- Random seed for reproducible generation (integer, optional)output_format
- Format of output images: “webp”, “jpg”, “png” (defaults to “webp”)output_quality
- Quality when saving images: 0-100 (defaults to 80). Not relevant for PNG outputsdisable_safety_checker
- Disable safety checker for generated images (boolean, defaults to false)go_fast
- Run faster predictions with fp8 quantized model (boolean, defaults to true). Note: outputs not deterministic when enabledmegapixels
- Approximate megapixels for generated image: “1”, “0.25” (defaults to “1”)fileLinksExpireInDays
- How long generated files remain accessible: 1-7 days (defaults to 7)fileLinksExpireInMinutes
- How long generated files remain accessible in minutes (takes precedence over days)
Response Format
The command returns:fileLinksExpireInDays
parameter.
Examples
Basic Image Generation
Marketing Visual Creation
Artistic Illustration
Logo and Branding
Social Media Content
Character Design
Architectural Visualization
Notes
Model Capabilities:- Fast generation (typically 10-30 seconds)
- High-quality outputs with professional results
- Excellent for commercial and creative use cases
- Supports various artistic styles and photorealistic imagery
- Cannot generate images of specific real people
- Avoids creating harmful or inappropriate content
- Results may vary based on prompt complexity
- Video generation is not supported
Model Parameters (black-forest-labs/flux-schnell)
Image Generation Parameters
- prompt (required): Prompt for generated image
- aspect_ratio: Aspect ratio (“1:1”, “16:9”, “21:9”, “3:2”, “2:3”, “4:5”, “5:4”, “3:4”, “4:3”, “9:16”, “9:21”, default: “1:1”)
- num_outputs: Number of outputs to generate (1 to 4, default: 1)
- num_inference_steps: Number of denoising steps (1 to 4, default: 4). Lower steps = faster but lower quality
- seed: Random seed for reproducible generation (integer, optional)
- output_format: Format of output images (“webp”, “jpg”, “png”, default: “webp”)
- output_quality: Quality when saving images (0 to 100, default: 80). Not relevant for PNG outputs
- disable_safety_checker: Disable safety checker for generated images (boolean, default: false)
- go_fast: Run faster predictions with fp8 quantized model (boolean, default: true). Note: outputs not deterministic when enabled
- megapixels: Approximate megapixels for generated image (“1”, “0.25”, default: “1”)