Skip to content

Ad Delayer

Image-to-Document • bria

View as MarkdownAgent setup

Model ID

Use with the Workers AI binding, the AI Gateway REST API, or the Unified API.

Calling the provider directly? Use the provider's model name instead, including with provider-native endpoints or the provider's own SDK. For example, Anthropic's name for anthropic/claude-opus-4.8 is claude-opus-4-8.

  • 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?