Skip to content

Enhance Image

Request

Description

Regenerate an image with sharper textures and richer details while doubling resolution, up to 10 megapixels output.

Note: this endpoint only supports async response mode - the API immediately returns a status URL to track progress.

Content Moderation

This endpoint includes granular content moderation controls to ensure safe usage across all stages of processing:

  • Input Image Moderation – Scans the uploaded image and stops processing if inappropriate or restricted content is detected.
  • Output Image Moderation – Evaluates the generated image and blocks the response if it violates safety guidelines.

Note: use Increase Resolution route to increase resolution without impacting details.

Security
api_token
Bodyapplication/jsonrequired
imagestringrequired

The source image to be handled by the API.
Supported input types:

  • Base64-encoded string
  • URL pointing to an image file that is publicly accessible and available at the time of processing.

Accepted formats: JPEG, JPG, PNG, WEBP.

seedinteger

Optional seed for controlling generation randomness. You can recreate the same result in the future by using the same seed with the same input parameters.

preserve_alphaboolean

Controls whether the alpha channel values from the input image are retained in the output, if the input includes an alpha channel.

Default:true
visual_input_content_moderationboolean

When enabled, applies content moderation to input visual.

Expected behavior:

  • Processing stops if the image fails moderation.
  • Returns a 422 error with details about which parameter failed.
Default:false
visual_output_content_moderationboolean

When enabled, applies content moderation to result visual.

Expected behavior:

  • If the modified image fails moderation, returns a 422 error.
Default:false
webhook_urlstring, (uri)

Optional URL for receiving the result via webhook when the async job completes. See webhooks.

POST
/enhance
from bria_client import BriaSyncClient

client = BriaSyncClient()  # reads BRIA_API_TOKEN

job = client.submit(
    endpoint="image/edit/enhance",
    payload={
        "image": "https://labs-assets.bria.ai/sandbox-example-inputs/enhance_image_example.jpg",
    },
)
result = client.poll(job, interval=2, timeout=120)
print(result.result.image_url)

Responses

Successful operation (Synchronous Success)

Bodyapplication/json
resultobject(result)required
request_idstringrequired
Response
{ "result": { "image_url": "string", "seed": "string" }, "request_id": "string" }