What is the relationship between flux-dev and FLUX.1 [dev]?
flux-dev is the invocation ID for selecting FLUX.1 [dev] on this platform, and the model is developed by Black Forest Labs. It belongs to the FLUX.1 series; it is not Flux Kontext or FLUX.2, nor does it automatically gain the capabilities of those models by sharing an image interface.
What is the minimum required to generate an image?
Submit model=flux-dev, action=generate, prompt, and size to POST /flux/images, and authenticate using a Bearer Token. Results are returned as JSON, and images are obtained through image_url in data; set count when multiple candidates are needed.
Can flux-dev modify existing images?
Yes. Use action=edit and submit image_url, an editing prompt, and size. Editing is suitable for further exploring changes to an existing image, but it does not guarantee that unspecified areas will remain completely unchanged; count is not used for editing tasks, and important details should be checked one by one after the results are returned.
How should I choose landscape, portrait, or square images?
For square images, use 1024x1024; for portrait images, use 1024x1792; for landscape images, use 1792x1024. You can also set the canvas through the image aspect ratio. It is recommended to determine the orientation based on the display location first, then describe the subject position and negative space in the prompt, rather than changing only the size while ignoring composition.
Can I return without waiting for the image to finish?
Yes. You can set async=true to obtain a task_id first and then query the task result; you can also provide callback_url to receive a result notification upon completion. Applications should distinguish between a submitted task and a completed image, and display the image only after obtaining its link, to avoid treating a task ID as a generated image result.