FLUX.1-dev in n8n

Hello

Why in n8n FLUX.1-dev creates only square images? And how to make horizontal ones. The dimensions don’t work in promt.

I’m using HTTP Request

prompt = “{{ $json.message.text }}”
out = pipe(
prompt=prompt,
guidance_scale=3.5,
height=1360,
width=768,
num_inference_steps=50,
).images[0]
out.save(“image.png”)

but it doesn’t work - the output is always a square image

1 Like