Luma Photon Flash Reframe

6.00 credits/megapixel
ae_luma_photon_flash_reframe

Reframe an image for a new aspect ratio, with optional prompt and positioning controls to guide the composition.

Image
6.00 credits/megapixel

Pricing

6.00 credits per megapixel processed for image reframing. Target framing and processing dimensions affect the total.

6.00 credits/megapixel

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.x_endinteger | unknownNoEnd X coordinate for reframing—
request_body.y_endinteger | unknownNoEnd Y coordinate for reframing—
request_body.promptstring | unknownNoOptional prompt for reframing—
request_body.x_startinteger | unknownNoStart X coordinate for reframing—
request_body.y_startinteger | unknownNoStart Y coordinate for reframing—
request_body.image_urlstringYesURL of the input image to reframe—
request_body.aspect_ratioenum (1:1 | 16:9 | 9:16 | 4:3 | 3:4 | 21:9 | 9:21)YesThe aspect ratio of the reframed image—
request_body.grid_position_xinteger | unknownNoX position of the grid for reframing—
request_body.grid_position_yinteger | unknownNoY position of the grid for reframing—

Invocation example

Parameter template

Generated from the parameter configuration. Replace the sample values before use.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_luma_photon_flash_reframe' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "image_url": "https://storage.googleapis.com/falserverless/gallery/example_inputs_liuyifei.png",
      "aspect_ratio": "16:9"
    }
  }
}'

No response example available yet.