FLUX 2 Max
Usage-based pricing
ae_flux_2_max
Create high-quality images from text prompts, with options for image size, format, seed, and safety settings.
Usage-based pricing
Pricing
The charge per call is (max(84 × processed megapixels, 0)) AE credits. All applicable conditions are combined to calculate the total.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | No parameter description. | — |
request_body.seed | integer | unknown | No | The seed to use for the generation. | — |
request_body.prompt | string | Yes | The prompt to generate an image from. | — |
request_body.sync_mode | boolean | No | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. | false |
request_body.image_size | object | string | No | The size of the generated image. | landscape_4_3 |
request_body.image_size.width | integer | No | The width of the generated image. | 512 |
request_body.image_size.height | integer | No | The height of the generated image. | 512 |
request_body.output_format | enum (jpeg | png) | No | The format of the generated image. | jpeg |
request_body.safety_tolerance | enum (1 | 2 | 3 | 4 | 5) | No | The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. | 2 |
request_body.enable_safety_checker | boolean | No | Whether to enable the safety checker. | true |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeySubmit first, then query with the returned task_id until the task completes.
Request coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_flux_2_max' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"image_size": {
"height": 1920,
"width": 1080
},
"output_format": "png",
"prompt": "Vertical mobile simulation-management game screenshot, cute chibi Q-version kawaii game art: two-head-tall big-headed characters, thick rounded outlines, soft warm gradients, marshmallow shading, cozy healing colors. Post-apocalyptic wasteland Chinese street-food management, 45-degree top-down casual sim game main screen.\nGAME UI OVERLAY clearly drawn: top-left rounded resource bars with coin and ingredient icons plus a round LEVEL badge, top-right translucent rounded quest panel card, along the bottom edge a rounded navigation bar with four pastel square buttons, and two small rounded wooden signposts in the scene with clean white simplified Chinese text \"废土边界\" and \"探索\".\nScene: warm sandy wasteland with round hills, cute mutant flowers and purple spotted mushrooms, a small crooked gas station, a winding road. Center: chibi girl Ling Jing, huge head, big sparkling eyes, pink short hair, goggles on forehead, cute apron, standing happily beside a small red three-wheeled food cart piled with roasted potatoes, heart-shaped steam; beside her a tiny Chinese restaurant with red lanterns, warm glowing windows and a wooden signboard reading \"中华食堂\". Three chubby chibi survivors queue, one hugging a steaming bowl, one in oversized gas mask. Bottom: two small wooden-fenced plots with white mushrooms and green vegetables, dirt path with tiny footprints to a wooden camp gate.\nWarm orange creamy yellow palette, clean tidy composition, readable text, no watermark, no logo.",
"safety_tolerance": "3"
}
}
}'Response exampleresponse.json
{
"description": "task accepted; poll the result via query_tool with this task_id",
"query_tool": "ae_get_result",
"status": "created",
"task_id": "ded6baa5-fa8e-4827-b54d-fcbb009728ba"
}
