AI image generation model, designed for maximum performance, highest editing consistency, and superior prompt adherence. It specializes in high-fidelity, production-grade visuals, making it ideal for advertising, top-tier e-commerce, and cinematic, high-resolution (up to 4MP) content
One POST request. Get the result back directly — as an image, video, or JSON depending on the tool.
curl -X POST https://apiai.me/api/workflow/flux-2-max \
-H "X-API-Key: YOUR_API_KEY" \
-F "image=@input.jpg" \
-F "aspect_ratio=match_input_image" \
-F "height=VALUE" \
-F "output_format=png" \
-F "output_quality=80" \
-F "prompt=VALUE" \
-F "resolution=1 MP" \
-F "safety_tolerance=5" \
-F "seed=VALUE" \
-F "width=VALUE"
--output result.png
Test this tool visually before writing any code. Upload an image, set parameters, and see the result live. When it looks right, copy the auto-generated curl command and paste it into your app.
Process hundreds of images at once without writing a loop. Upload a CSV with one row per item, set your parameters, and download the results as a ZIP when they're done.
| Name | Required | Description | Default / Options |
|---|---|---|---|
aspect_ratio |
optional | Aspect ratio for the generated image. Use 'match_input_image' to match the first input image's aspect ratio. | match_input_imagecustom1:116:93:22:34:55:49:163:44:3
|
height |
optional | Height of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32). | — |
output_format |
optional | Format of the output images. | webpjpgpng
|
output_quality |
optional | Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs | 80
|
prompt |
required | Text prompt for image generation | — |
resolution |
optional | Resolution in megapixels. Up to 4 MP is possible, but 2 MP or below is recommended. The maximum image size is 2048x2048, which means that high-resolution images may not respect the resolution if aspect ratio is not 1:1.Resolution is not used when aspect_ratio is 'custom'. When aspect_ratio is 'match_input_image', use 'match_input_image' to match the input image's resolution (clamped to 0.5-4 MP). | match_input_image0.5 MP1 MP2 MP4 MP
|
safety_tolerance |
optional | Safety tolerance, 1 is most strict and 5 is most permissive | 5
|
seed |
optional | Random seed. Set for reproducible generation | — |
width |
optional | Width of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32). | — |
Get an API key, test Flux 2 Max in the dashboard, and copy the curl command.