infery
← All models

FLUX.2 [klein] 4B Base

flux-2-klein-4b-base

Image generationby Black Forest Labs

Text-to-image generation with FLUX.2 [klein] 4B Base from Black Forest Labs. Enhanced realism, crisper text generation, and native editing capabilities.

images

Details

Accepts
text + image

Pricing

Price
1.13 cr / megapixel

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seedThe seed to use for the generation. If not provided, a random seed will be used.
promptrequiredstringThe prompt to edit the image.
sync_modebooleanIf `True`, the media will be returned as a data URI. Output is not stored when this is True.
image_sizeThe size of the generated image. If not provided, uses the input image size.
image_urlsarrayThe URLs of the images for editing. A maximum of 4 images are allowed.
num_imagesintegerThe number of images to generate.
accelerationstringenum: none, regular, highThe acceleration level to use for image generation.
output_formatstringenum: jpeg, png, webpThe format of the generated image.
guidance_scalenumberGuidance scale for classifier-free guidance.
negative_promptstringNegative prompt for classifier-free guidance. Describes what to avoid in the image.
num_inference_stepsintegerThe number of inference steps to perform.
enable_safety_checkerbooleanIf set to true, the safety checker will be enabled. Disabling it requires account authorization; unauthorized requests are always checked, and images flagged as unsafe are returned as black images.

Output

FieldTypeDescription
seedinteger Seed of the generated Image. It will be the same value of the one passed in the input or the randomly generated that was used in case none was passed.
imagesarrayThe edited images
promptstringThe prompt used for generating the image.
timingsobject
has_nsfw_conceptsarrayWhether the generated images contain NSFW concepts.