Flux Krea Dev

FLUX.1 Krea generates stunning, photorealistic images with fine-tuned aesthetic control for diverse creative applications.


API

If you're looking for an API, you can choose from your desired programming language.

POST
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 import requests api_key = "YOUR_API_KEY" url = "https://api.segmind.com/v1/flux-krea-dev" # Prepare data and files data = {} files = {} data['seed'] = 42 # For parameter "image", you can send a raw file or a URI: # files['image'] = open('IMAGE_PATH', 'rb') # To send a file data['image'] = 'null' # To send a URI data['prompt'] = "A miniature raccoon explorer made of wool wearing all kinds of equipment, the whole world is made of felt textile, holding a signboard which says 'Flux krea dev on Segmind'" data['go_fast'] = True data['guidance'] = 3 data['megapixels'] = "1" data['num_outputs'] = 2 data['aspect_ratio'] = "16:9" data['output_format'] = "jpg" data['output_quality'] = 90 data['prompt_strength'] = 0.7 data['num_inference_steps'] = 40 data['disable_safety_checker'] = False headers = {'x-api-key': api_key} # If no files, send as JSON if files: response = requests.post(url, data=data, files=files, headers=headers) else: response = requests.post(url, json=data, headers=headers) print(response.content) # The response is the generated image
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


seedint ( default: 42 )

The seed ensures reproducibility. Use specific numbers for consistent results or leave random for variability.


imagestr ( default: 1 )

Input an image to guide the output. Match aspect ratio to maintain consistency; use any for unique results.


promptstr *

Guide the AI with text for the image generation. Short and imaginative prompts work best; imaginative scenes suggest detailed descriptions.


go_fastbool ( default: true )

Enable faster predictions; less deterministic but quicker. Disable for exact replication and improved detail.


guidancefloat ( default: 7 )

Controls adherence to prompt. Increase for more accuracy; decrease for creative variance.

min : 0,

max : 10


megapixelsenum:str ( default: 1 )

Choose resolution size. Use '1' for high-quality or '0.25' for faster, lower-resolution outputs.

Allowed values:


num_outputsint ( default: 2 )

Set the number of images generated. Choose more for variability or single for speed.

min : 1,

max : 4


aspect_ratioenum:str ( default: 16:9 )

Decide image proportions. Use '1:1' for square or other ratios for landscapes or portraits.

Allowed values:


output_formatenum:str ( default: jpg )

Select image format. Use 'webp' for web-friendly, 'jpg' for compression, or 'png' for quality.

Allowed values:


output_qualityint ( default: 90 )

Set image saving quality. Choose 100 for best or lower for smaller file size.

min : 0,

max : 100


prompt_strengthfloat ( default: 0.7 )

Defines prompt influence in img2img mode. High values alter original image more significantly.

min : 0,

max : 1


num_inference_stepsint ( default: 40 )

Adjust the number of processing steps. Higher gives better quality; lower speeds up.

min : 1,

max : 50


disable_safety_checkerbool ( default: 1 )

Toggle safety checker to allow all image outputs. Disable to maximize creative freedom.

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

Resources to get you started

Everything you need to know to get the most out of Flux Krea Dev

FLUX.1 Krea Quickstart Guide

Unlock the full power of FLUX.1 Krea—our 12 B-parameter, photorealistic text-to-image model—by calibrating prompts and parameters for your creative goals. Below are best practices, parameter recommendations, and presets for common use cases.


1. Prompt Crafting

  • Be concise yet descriptive: “A high-fashion editorial shot of a model in avant-garde neon armor, studio lighting.”
  • Specify style, mood, lighting, and elements: e.g., “dramatic chiaroscuro,” “wide-angle,” “icy blue palette.”
  • Iterate and refine: Start broad, then add/remove adjectives to dial in the aesthetic.

2. Core Parameters

ParameterPurposeDefaultTip
seedReproducibility42Fix for exact repeats; randomize for variety
guidance (0–10)Prompt adherence vs. creativity78–10 for strict fidelity; 5–7 for artistic flair
num_inference_stepsQuality vs. speed4045–50 for ultra-fine details
megapixels (0.25/1)Resolution10.25 for quick proofs; 1 for final renders
aspect_ratioComposition ratio16:9Match your canvas (1:1 for social media)
go_fast (true/false)Performance modetruefalse for deterministic, high-quality
disable_safety_checkerToggle content filteringfalsetrue to bypass for full creative freedom

3. Use-Case Presets

  1. Concept Art & Illustration
    • guidance: 6.5 | steps: 45 | mp: 0.25 | aspect: 3:2 | go_fast: true
    • Fast iterations & painterly freedom.

  2. Product Mockups & Advertising
    • guidance: 8.5 | steps: 50 | mp: 1 | aspect: 4:5 | go_fast: false
    • Sharp details, strict prompt adherence, print-ready.

  3. Architectural & Interior Renders
    • guidance: 7.5 | steps: 50 | mp: 1 | aspect: 16:9 | go_fast: false
    • Realistic lighting, perspective-correct compositions.

  4. UI/UX Backgrounds & Textures
    • guidance: 6 | steps: 40 | mp: 0.25 | aspect: 21:9 | go_fast: true
    • Seamless, abstract patterns with design flexibility.


4. Pro Tips & Workflow

  1. Batch Generation: Set num_outputs (2–4) to explore variations at once.
  2. Seed Tweaks: Increment by one between runs to “walk” the latent space.
  3. Img2Img Transformation: Supply an image URI and adjust prompt_strength (0.3–0.7) for controlled edits.
  4. Output Format & Quality: Choose png+100 quality for master assets; jpg+90 for web previews.
  5. Safety Checker: Only disable (true) in trusted environments or artistic studies.

With these guidelines, you’ll achieve razor-sharp fidelity or painterly freedom as you need—harness FLUX.1 Krea for every stage of your visual pipeline. Happy generating!

Other Popular Models

Discover other models you might be interested in.

Cookie settings

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept all", you consent to our use of cookies.