generate_image
Create images from detailed text prompts using NVIDIA NIM FLUX models. Select from high-quality or fast generation to match your needs.
Instructions
Generate an image from a text prompt using NVIDIA NIM FLUX models. Returns the file path of the saved image. Use 'flux-1-dev' for high quality or 'flux-1-schnell' for speed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducibility. Use 0 for random. Same seed + same prompt = same image. | |
| model | No | Model to use. 'flux-1-dev' = high quality (30 steps), 'flux-1-schnell' = fast (4 steps). | flux-1-dev |
| steps | No | Number of inference steps. More steps = higher quality but slower. Default: 30 for flux-1-dev, 4 for flux-1-schnell. | |
| prompt | Yes | Text description of the image to generate. Be detailed and specific. Example: 'A futuristic cityscape at sunset with flying cars and neon lights, photorealistic, high detail, cinematic lighting' | |
| cfg_scale | No | Classifier-free guidance scale (1-20). Higher = more faithful to prompt, lower = more creative. Default: 5. | |
| negative_prompt | No | Things to exclude from the image. Example: 'blurry, low quality, watermark, text' |