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, and it does not automatically gain the capabilities of those models merely 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 use Bearer Token authentication. 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 an existing image?
Yes. Use action=edit and submit image_url, a modification prompt, and size. Editing is suitable for further exploring changes to an existing image, but unspecified areas are not guaranteed to remain completely unchanged; count is not used for editing tasks, and important details should be checked item by item after the results are returned.
How should I choose between landscape, portrait, and 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 first determine the orientation based on the display location, then describe the subject position and whitespace in the prompt, avoiding changing only the dimensions while overlooking composition.
Can I return without waiting for the image to finish?
Yes. Set async=true to first obtain task_id, then query the task result; you can also provide callback_url to receive a completion notification. Applications should distinguish between a submitted task and a completed image, and display the image only after obtaining its link, avoiding treating the task ID as the generated image result.