{ "model_id": "bria/ad-delayer", "provider_id": "bria", "name": "Ad Delayer", "description": "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.", "task": "Image-to-Document", "tags": [ "Design", "Advertising", "Layer Decomposition" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per image": 0.3 }, "examples": [ { "name": "Concert Poster", "description": "Split a flat concert poster into background, image, vector, and text layers. The input is the Grok Imagine Image 2.0 catalog example.", "input": { "image": "https://examples.aig.cloudflare.com/xai/grok-imagine-image-2.0/simple-generation.jpg" }, "output": { "document": { "canvas": { "width": 832, "height": 1248 }, "layers": [ { "id": "canvas_background", "type": "vector", "subtype": "background", "bbox": { "x": 0, "y": 0, "width": 832, "height": 1248 }, "z_order": 0 }, { "id": "background", "type": "image", "subtype": "background", "bbox": { "x": 0, "y": 0, "width": 832, "height": 1248 }, "z_order": 1, "style": { "background_color": "#030913" } }, { "id": "landscape", "type": "image", "subtype": "background", "bbox": { "x": 17, "y": 389, "width": 798, "height": 502 }, "z_order": 2, "asset_path": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster/landscape.png", "image_fit": { "object_fit": "contain" } }, { "id": "frame", "type": "image", "subtype": "decorative", "bbox": { "x": 0, "y": 0, "width": 832, "height": 1248 }, "z_order": 3, "asset_path": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster/frame.vector.png" }, { "id": "top_stripes", "type": "image", "subtype": "decorative", "bbox": { "x": 44, "y": 48, "width": 744, "height": 16 }, "z_order": 4, "asset_path": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster/top_stripes.vector.png" }, { "id": "tagline", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 170.3, "y": 39, "width": 520, "height": 31 }, "z_order": 5, "text": "ANALOG HEARTS. DIGITAL NIGHTS.", "text_style": { "color": "#D1599D", "font_family": "Oswald,sans-serif", "font_weight": 500, "font_size_px": 22, "letter_spacing_px": 6.6, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": false, "line_height": 1.4, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "nightdrive", "type": "image", "subtype": "logo", "bbox": { "x": 21, "y": 87, "width": 790, "height": 272 }, "z_order": 6, "asset_path": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster/nightdrive.png", "image_fit": { "object_fit": "contain" } }, { "id": "nightdrive_text", "type": "text", "subtype": "logo", "bbox": { "x": 21, "y": 87, "width": 790, "height": 180 }, "z_order": 7, "text": "NIGHTDRIVE", "text_style": { "font_family": "Impact,sans-serif", "font_size_px": 150, "uppercase": false, "underline": false, "no_wrap": false, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false }, "hidden": true }, { "id": "subtitle_rules", "type": "image", "subtype": "decorative", "bbox": { "x": 81, "y": 364, "width": 678, "height": 12 }, "z_order": 8, "asset_path": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster/subtitle_rules.vector.png" }, { "id": "subtitle", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 205.05, "y": 352, "width": 453, "height": 32 }, "z_order": 9, "text": "A SYNTHWAVE EXPERIENCE", "text_style": { "color": "#54C2D2", "font_family": "Oswald,sans-serif", "font_weight": 500, "font_size_px": 23, "letter_spacing_px": 8.1, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": true, "line_height": 1.4, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "details_rules", "type": "image", "subtype": "decorative", "bbox": { "x": 34, "y": 891, "width": 768, "height": 190 }, "z_order": 10, "asset_path": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster/details_rules.vector.png" }, { "id": "venue_stars", "type": "image", "subtype": "decorative", "bbox": { "x": 242, "y": 914, "width": 350, "height": 55 }, "z_order": 11, "asset_path": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster/venue_stars.vector.png" }, { "id": "day", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 35.5, "y": 906, "width": 177, "height": 28 }, "z_order": 12, "text": "SATURDAY", "text_style": { "color": "#D35B9D", "font_family": "Oswald,sans-serif", "font_weight": 500, "font_size_px": 19, "letter_spacing_px": 3, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": false, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "date", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 33, "y": 937, "width": 179, "height": 48 }, "z_order": 13, "text": "JUNE 21, 2025", "text_style": { "color": "#E5E2DF", "font_family": "'Six Caps',sans-serif", "font_weight": 400, "font_size_px": 44, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": false, "line_height": 1.1, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "time", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 35.5, "y": 993, "width": 179, "height": 24 }, "z_order": 14, "text": "DOORS 8PM \u2022 SHOW 9PM", "text_style": { "color": "#55BECD", "font_family": "Oswald,sans-serif", "font_size_px": 16, "letter_spacing_px": 1, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": true, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "venue", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 278, "y": 911, "width": 272, "height": 44 }, "z_order": 15, "text": "THE NEON CATHEDRAL", "text_style": { "color": "#57C0D0", "font_family": "'Instrument Serif',serif", "font_size_px": 38, "letter_spacing_px": -1.6, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": true, "line_height": 1.15, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "address", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 286.5, "y": 964, "width": 255, "height": 57 }, "z_order": 16, "text": "1120 E. 7TH STREET\nLOS ANGELES, CA 90021", "text_style": { "color": "#BCBEC7", "font_family": "Oswald,sans-serif", "font_size_px": 19, "letter_spacing_px": 3, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": false, "line_height": 1.5, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "tickets", "type": "text", "subtype": "cta", "bbox": { "x": 610.5, "y": 906, "width": 182, "height": 28 }, "z_order": 17, "text": "TICKETS", "text_style": { "color": "#D35B9D", "font_family": "Oswald,sans-serif", "font_weight": 500, "font_size_px": 19, "letter_spacing_px": 3, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": false, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "price", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 606, "y": 938, "width": 190, "height": 45 }, "z_order": 18, "text": "$25 ADV / $30 DOS", "text_style": { "color": "#E5E2DF", "font_family": "'Six Caps',sans-serif", "font_size_px": 41, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": false, "line_height": 1.1, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "url", "type": "text", "subtype": "cta", "bbox": { "x": 610.4, "y": 994, "width": 185, "height": 24 }, "z_order": 19, "text": "NIGHTDRIVE.BAND/TICKETS", "text_style": { "color": "#55BECD", "font_family": "Oswald,sans-serif", "font_size_px": 16, "letter_spacing_px": 0.8, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": false, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "support_intro", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 264.5, "y": 1046, "width": 309, "height": 28 }, "z_order": 20, "text": "WITH SUPPORT FROM", "text_style": { "color": "#9DADBF", "font_family": "Oswald,sans-serif", "font_weight": 500, "font_size_px": 19, "letter_spacing_px": 7, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": true, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "support_acts", "type": "text", "subtype": "secondary_copy", "bbox": { "x": 107.75, "y": 1079, "width": 631, "height": 34 }, "z_order": 21, "text": "VOID VISION \u2022 LASER HAZE \u2022 TV HEARTS", "text_style": { "color": "#D45B9D", "font_family": "Oswald,sans-serif", "font_weight": 500, "font_size_px": 23, "letter_spacing_px": 5.5, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": true, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false }, "text_runs": [ { "text": "VOID VISION " }, { "text": " \u2022 ", "style": { "color": "#4ABDD1", "uppercase": false, "underline": false, "no_wrap": false, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "text": " LASER HAZE " }, { "text": " \u2022 ", "style": { "color": "#4ABDD1", "uppercase": false, "underline": false, "no_wrap": false, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "text": " TV HEARTS" } ] }, { "id": "legal", "type": "text", "subtype": "compliance", "bbox": { "x": 46.75, "y": 1135, "width": 744, "height": 50 }, "z_order": 22, "text": "THIS PERFORMANCE WILL BE RECORDED IN ANALOG STEREO \u2022 NO AUDIO OR VIDEO RECORDING BY ATTENDEES.\nLASERS & STROBES WILL BE USED DURING THIS PERFORMANCE \u2022 MUST BE 18+ WITH VALID ID \u2022 NO REFUNDS.", "text_style": { "color": "#ADBDC7", "font_family": "Oswald,sans-serif", "font_size_px": 14, "letter_spacing_px": 1.5, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": false, "line_height": 1.8, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "copyright", "type": "text", "subtype": "compliance", "bbox": { "x": 259.75, "y": 1199, "width": 318, "height": 17 }, "z_order": 23, "text": "NIGHTDRIVE \u00a9 2025 \u2022 ALL RIGHTS RESERVED.", "text_style": { "color": "#CE609E", "font_family": "Oswald,sans-serif", "font_size_px": 12, "letter_spacing_px": 1.5, "text_align": "center", "uppercase": false, "underline": false, "no_wrap": false, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } }, { "id": "globe", "type": "image", "subtype": "decorative", "bbox": { "x": 640, "y": 1189, "width": 37, "height": 33 }, "z_order": 24, "asset_path": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster/globe.vector.png" }, { "id": "print_credit", "type": "text", "subtype": "compliance", "bbox": { "x": 685, "y": 1191, "width": 112, "height": 28 }, "z_order": 25, "text": "DESIGNED & PRINTED\nIN U.S.A.", "text_style": { "color": "#72B7C6", "font_family": "Oswald,sans-serif", "font_size_px": 10, "letter_spacing_px": 1.3, "uppercase": false, "underline": false, "no_wrap": false, "line_height": 1.4, "italic": false, "background_clip_text": false, "text_fill_transparent": false, "stroke_behind_fill": false } } ], "font_stylesheets": [ "https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&family=Six+Caps&family=Instrument+Serif&display=swap" ] }, "text": "Constructed a layered ad." }, "raw_response": { "state": "Completed", "result": { "layer_document": "https://examples.aig.cloudflare.com/bria/ad-delayer/concert-poster.json", "text": "Constructed a layered ad." } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'bria/ad-delayer',\n { image: 'https://examples.aig.cloudflare.com/xai/grok-imagine-image-2.0/simple-generation.jpg' },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"bria/ad-delayer\",\n \"input\": {\n \"image\": \"https://examples.aig.cloudflare.com/xai/grok-imagine-image-2.0/simple-generation.jpg\"\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": false, "zdr_comment": null, "external_info": "https://docs.bria.ai/ads/transformations/delayer-ad", "terms": "https://bria.ai/terms-of-use", "cover_image_url": null, "metadata": { "Input Formats": "PNG, JPEG, WEBP", "Maximum Input Dimensions": "1350 px per side", "Maximum Input Size": "10 MB", "Output": "JSON layer document", "Output Retention": "30 days" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "bria", "pricing": { "output_image_count": 0.3 } } ], "banner": null, "created_at": "2026-10-06 18:52:23", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "image": { "anyOf": [ { "type": "string", "format": "uri" }, { "type": "string", "pattern": "^data:image\\/(?:png|jpeg|webp);base64," } ], "description": "The finished ad to split into layers: a public URL or a `data:image/{png|jpeg|webp};base64,...` URI. PNG, JPEG, or WEBP, up to 10 MB and 1350 pixels per side." } }, "required": [ "image" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "layer_document": { "type": "string", "format": "uri", "description": "URL 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": { "description": "Short summary from Bria of the layers it built.", "type": "string" } }, "required": [ "layer_document" ], "additionalProperties": false } } }