Flux Image Generation API Promotional Copy
Flux is a family of image models from Black Forest Labs. Ace Data Cloud provides hosted Flux generation and editing APIs, with options by model and size.
¶ Supported Models
| Model | Positioning | Speed | Use Cases |
|---|---|---|---|
flux-pro |
Flagship, highest image quality | Moderate | Commercial-grade images, print materials |
flux-dev |
Default, best value | Fast | Large volumes of social and e-commerce images |
flux-kontext-pro |
Image editing (in-context) | Moderate | Local edits / outfit changes / background changes |
flux-kontext-max |
High-fidelity image editing | Slower | Edits requiring high detail retention |
| flux-2-klein | Fast generation | Priced by model and size | Rapid iteration |
| flux-2-flex / flux-2-pro / flux-2-max | Flux 2 generation and editing | Priced by model and size | Posters, product images, and detailed editing |
¶ Request Example
curl -X POST 'https://api.acedata.cloud/flux/images' \
-H 'authorization: Bearer {YOUR_TOKEN}' \
-H 'content-type: application/json' \
-d '{
"prompt": "a cyberpunk cat sitting on a neon-lit Tokyo street, ultra detailed",
"action": "generate",
"model": "flux-dev",
"size": "1024x1024"
}'
After a successful synchronous request, read image_url from data. Batch tasks can use async or callback_url. flux-dev supports the pixel dimensions shown in the example. For Flux 2 Flex, Pro, and Max, size uses aspect ratios such as 1:1 and 16:9.
¶ Use Cases
- For product main and detail images, first edit the original product image, then manually check the appearance, branding, and text.
- Pass
image_urlwithaction: editto compare different compositions or backgrounds. - Try photographic styles and compositions on photo assets you have the right to use.
- Create a few drafts on a smaller budget, then choose a direction suitable for further development.
¶ Links
- Service overview: platform.acedata.cloud/services/flux
- Developer documentation: platform.acedata.cloud/documents/flux-images-integration
- Try Studio online: studio.acedata.cloud/flux
