Are flux-2-pro and flux-pro the same model?
No. flux-2-pro corresponds to FLUX.2 [pro], while flux-pro is a different invocation model. When using this model, explicitly specify flux-2-pro and write size as an image aspect ratio; do not directly reuse pixel-dimension requests from the older model, as the parameter format may not apply.
How do I use flux-2-pro to edit an existing image?
Set action to edit, and provide image_url, prompt, and size in aspect-ratio format. The prompt should clearly state both the intended changes and preservation requirements, for example, changing the background while retaining the product shape and label. Editing does not use count to control quantity; after completion, retrieve the result through the returned image link.
Can I directly specify 1024x1024 output?
The size parameter for this model does not accept pixel dimensions in this format; use 1:1 instead. For landscape or portrait images, you can use ratios such as 16:9 or 9:16. The ratio determines the canvas orientation and does not represent a fixed pixel size. If you have strict requirements for the final dimensions, resize the image after downloading it.
Is it suitable for generating posters with text?
It is suitable for creating visual designs with titles, slogans, and layout requirements. You can specify the text content, placement, and brand colors in the prompt. If the task relies heavily on small text or complex typography, consider FLUX.2 [flex]. Before official publication, you should still check spelling, glyphs, and layout, and make design revisions if necessary.
How can I integrate the generation process into background tasks?
You can set async to true, obtain a task_id first, and then query the task result; you can also provide a callback_url to receive completion notifications. Your business system should save the task ID, associate the completed result with the original creation task, and then read image_url in data to download or display the image.