Bria AI Edit & Auto Download

Autonomously executes Bria AI operations, polls the status, and downloads the generated image

Reseason Image

AI-generated

Summary

Apply a seasonal transformation to an image via Bria AI, poll for generation completion, and return the resulting image binary with API metadata.

Inputs

  • imageUrl (required) — The URL of the image. Alternatively, you can pass a base64 encoded string.
  • instruction (required) — The text prompt describing the season or style to apply.
  • maxRetries — Maximum number of times to poll the status URL.
  • waitTime — Time to wait between polling attempts in milliseconds.

Output shape

Each returned item contains json (the full API response) and binary (the downloaded PNG image buffer). If generation does not complete within maxRetries, an error is thrown.

For the reseason operation, the request sends {image, season} to /v2/image/edit/reseason, polls the returned status_url, extracts the image_url from the result, and downloads the image via unauthenticated S3 pre-signed URL.

Links

Discussion