FLUX Srpo

Usage-based pricing
ae_flux_srpo

Generate one or more images from a written description, with adjustable size and output settings.

Image
Usage-based pricing

Pricing

The charge per call is (max(30 × Generated image billable megapixels, 0)) AE credits. All applicable conditions are combined to calculate the total.

Each generated image is billed by rounding its pixel count up to the next megapixel; billable megapixels are summed across images.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.seedinteger | unknownNo The same seed and the same prompt given to the same version of the model will output the same image every time. —
request_body.promptstringYesThe prompt to generate an image from.—
request_body.sync_modebooleanNoIf `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_sizeobject | stringNoThe size of the generated image.landscape_4_3
request_body.image_size.widthintegerNoThe width of the generated image.512
request_body.image_size.heightintegerNoThe height of the generated image.512
request_body.num_imagesintegerNoThe number of images to generate.1
request_body.accelerationenum (none | regular | high)NoThe speed of the generation. The higher the speed, the faster the generation.none
request_body.output_formatenum (jpeg | png)NoThe format of the generated image.jpeg
request_body.guidance_scalenumberNo The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. 4.5
request_body.num_inference_stepsintegerNoThe number of inference steps to perform.28
request_body.enable_safety_checkerbooleanNoIf set to true, the safety checker will be enabled.true

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key

Submit 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_srpo' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "image_size": {
        "height": 1024,
        "width": 1024
      },
      "num_images": 1,
      "num_inference_steps": 28,
      "output_format": "png",
      "prompt": "A single Japanese cherry blossom tree (sakura) in full bloom, entire tree visible from a slight three-quarter angle, dense pink blossom canopy with layered clusters of small flowers, dark textured curved trunk with visible bark detail, isolated on a pure plain white seamless background, soft even studio lighting, photorealistic 3D game asset render style, high detail, no shadow on ground, no other objects"
    }
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "description": "task accepted; poll the result via query_tool with this task_id",
  "query_tool": "ae_get_result",
  "status": "created",
  "task_id": "86bc19b4-30cf-4f85-a249-b06604ed8f4e"
}

This example shows part of the response. Copied content is valid JSON.