Bria Expand
48 credits/call
ae_bria_expand
Expand an image’s canvas and generate matching content in the new areas.
48 credits/call
Pricing
48 credits/call
| Condition | Charge |
|---|---|
| Each call | 48 credits/call |
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 | You can choose whether you want your generated expension to be random or predictable. You can recreate the same result in the future by using the seed value of a result from the response. You can exclude this parameter if you are not interested in recreating your results. This parameter is optional. | — |
request_body.prompt | string | No | Text on which you wish to base the image expansion. This parameter is optional. Bria currently supports prompts in English only, excluding special characters. | "" |
request_body.image_url | string | Yes | The URL of the input image. | — |
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.canvas_size | array | Yes | The desired size of the final image, after the expansion. should have an area of less than 5000x5000 pixels. | — |
request_body.aspect_ratio | string | unknown | No | The desired aspect ratio of the final image. Will be used over original_image_size and original_image_location if provided. | — |
request_body.negative_prompt | string | No | The negative prompt you would like to use to generate images. | "" |
request_body.original_image_size | array | unknown | No | The desired size of the original image, inside the full canvas. Ensure that the ratio of input image foreground or main subject to the canvas area is greater than 15% to achieve optimal results. Will be ignored if aspect_ratio is provided. | — |
request_body.original_image_location | array | unknown | No | The desired location of the original image, inside the full canvas. Provide the location of the upper left corner of the original image. The location can also be outside the canvas (the original image will be cropped). Will be ignored if aspect_ratio is provided. | — |
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_bria_expand' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"canvas_size": [
2160,
1440
],
"image_url": "https://file.gw.xnetwk.net/file/a5740d35-f814-4a9c-bdd8-4c2848256913.jpg",
"original_image_location": [
0,
0
],
"original_image_size": [
959,
1440
],
"prompt": "Seamlessly extend the photograph to the right with open ocean: continue the same dark teal-green sea surface with the same wind chop, swell and foam texture, keep the straight horizon line at exactly the same height, continue the same pale grey overcast sky with soft thin clouds. The new right area is open water only: no islands, no land, no boats, no birds, no new rocks, except the natural continuation of the dark foreground rocks at the bottom right corner. Same moody overcast light, same muted color grade, perfectly continuous waves and cloud bands across the whole width."
}
}
}'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": "c260ebc3-4893-4983-8ef3-93c6be6ed272"
}



