Inferpost https://ai.api.nvidia.com/v1/genai/black-forest-labs/flux.2-klein-4bBody ParamsmodestringenumDefaults to Image GenerationNIM inference mode. If Image Editing is selected an image input is requiredImage GenerationImage EditingAllowed:Image GenerationImage Editingpromptstringrequiredlength ≤ 10000What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results.heightintegerenumDefaults to 1024Height of the image to generate, in pixels. Only height=1024 is supported768832896960102410881152121612801344Show 10 enum valueswidthintegerenumDefaults to 1024Width of the image to generate, in pixels. Only width=1024 is supported768832896960102410881152121612801344Show 10 enum valuescfg_scalenumber0 to 0Defaults to 0How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt).imagenullPreview API NIM supports only a predefined set of images. The image should be in form of data:image/png;example_id,{example_id} with example_id in a range [0,3]. samplesinteger1 to 1Defaults to 1Number of images to generate. Only samples=1 is supportedseedinteger≥ 0Defaults to 0The seed which governs generation. Changing the seed with other inputs fixed results in different outputs. (Use 0 for a random seed)stepsinteger1 to 4Defaults to 4The number of diffusion steps applied to generate an output image.Responses 200Successful Response 422Validation ErrorUpdated 26 days ago