Update block docs for: replicate_flux_advanced.md

This commit is contained in:
Bently
2025-01-12 11:53:43 +00:00
parent f1f6f87b25
commit db3d86bce6

View File

@@ -0,0 +1,46 @@
## Replicate Flux Advanced Model
### What it is
A sophisticated image generation block that uses various Flux models (Schnell, Pro, and Pro 1.1) through the Replicate platform to create custom images based on text descriptions.
### What it does
This block generates high-quality images from text prompts, allowing users to control various aspects of the image generation process through advanced settings like image quality, aspect ratio, and safety parameters.
### How it works
The block takes a text prompt and various configuration parameters, sends them to the selected Flux model on Replicate's platform, and returns a URL containing the generated image. It handles different image formats and provides extensive control over the generation process through multiple customizable parameters.
### Inputs
- Credentials: Replicate API key required for accessing the service
- Prompt: Text description of the image you want to generate
- Image Generation Model: Choice between Flux Schnell, Flux Pro, or Flux Pro 1.1 models
- Seed: Optional numerical value for reproducible image generation
- Steps: Number of diffusion steps (default: 25)
- Guidance: Controls how closely the image follows the prompt (default: 3.0)
- Interval: Controls output variance and consistency (default: 2.0)
- Aspect Ratio: Image dimensions ratio (options: 1:1, 16:9, 2:3, 3:2, 4:5, 5:4, 9:16)
- Output Format: Image file format (WEBP, JPG, or PNG)
- Output Quality: Image quality setting from 0-100 (default: 80)
- Safety Tolerance: Content safety level from 1 (strict) to 5 (permissive)
### Outputs
- Result: URL link to the generated image
- Error: Error message if the image generation process fails
### Possible use cases
- Creating custom artwork for websites or marketing materials
- Generating concept art for creative projects
- Producing unique social media content
- Designing visual assets for presentations
- Creating unique illustrations for blog posts or articles
- Developing mood boards or visual inspiration
- Generating product visualization concepts
- Creating custom backgrounds or wallpapers
### Notes
- Higher guidance values produce images that more closely match the prompt but might affect overall quality
- Lower interval values ensure more consistent outputs with stronger prompt following
- The safety tolerance setting helps filter inappropriate content
- Output quality setting doesn't affect PNG format images
- Setting a specific seed allows for reproducible results