Skip to content

Ad Delayer

Image-to-Document • bria

View as MarkdownAgent setup
  • Third-party

Ad Delayer turns a finished, flat ad image into an editable JSON layer document: a background plate, product and logo cutouts, live text with typography, and vector shapes, with each image layer hosted as its own file. It is designed for flat ads; results for ordinary photographs are not guaranteed. Bria trains it exclusively on licensed data.

Model Info
Terms and Licenselink ↗
More informationlink ↗
Pricing
  • Per image$0.30

Usage

const response = await env.AI.run(
  'bria/ad-delayer',
  { image: 'https://examples.aig.cloudflare.com/xai/grok-imagine-image-2.0/simple-generation.jpg' },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "bria/ad-delayer",
  "input": {
    "image": "https://examples.aig.cloudflare.com/xai/grok-imagine-image-2.0/simple-generation.jpg"
  }
}'
Constructed a layered ad.
{
  "state": "Completed",
  "result": {
    "layer_document": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster.json",
    "text": "Constructed a layered ad."
  }
}

Parameters

layer_document
stringformat: uriURL of the JSON layer document: the canvas size, font stylesheets, and z-ordered image, vector, and text layers. Image layers link to their extracted assets through `asset_path`. Bria hosts the document and assets for 30 days.
text
stringShort summary from Bria of the layers it built.

API Schemas (Raw)

Input
Output

Was this helpful?