{"id":34964,"date":"2024-08-07T06:05:46","date_gmt":"2024-08-07T13:05:46","guid":{"rendered":"https:\/\/cloudinary.com\/blog\/?p=34964"},"modified":"2024-08-07T06:05:46","modified_gmt":"2024-08-07T13:05:46","slug":"genai-powered-background-replacement","status":"publish","type":"post","link":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement","title":{"rendered":"Change the World: Cutting-Edge, GenAI-Powered Background Replacement"},"content":{"rendered":"\n<p>The latest GenAI-powered feature from Cloudinary is here: the Generative Background Replace transformation. Seamlessly replacing or adding backgrounds in images is now faster, far less expensive, and an amazingly scalable way to enhance and customize visuals at scale. It&#8217;s perfect for an application that includes enhancing product listings and online store visuals for e-commerce, website content, and social media.<\/p>\n\n\n\n<p>Cloudinary\u2019s GenAI-based advanced editing capabilities are making manual, time-consuming editing work a thing of the past.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advanced Background Replacement at Scale<\/h2>\n\n\n\n<p>Advanced generative AI models power the Generative Background Replace feature. Core capabilities include:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Auto background detection and removal<\/strong>. Detect background elements about the core subject and remove the unnecessary pixels.<\/li>\n\n\n\n<li><strong>Auto background generation<\/strong>. Auto-generate a background based on LLM interpretation of the foreground elements without prompting.<\/li>\n\n\n\n<li><strong>Guiding via prompts<\/strong>. User-provided prompts auto-generate a background based on your hints and on the imagery in the foreground.<\/li>\n\n\n\n<li><strong>Seeding and variations<\/strong>. Generate background variations or return to previously generated variations using a seed parameter.<\/li>\n\n\n\n<li><strong>Flexibility and scale<\/strong>. This transformation works with all Cloudinary transformations. An explanation, with examples, of all Cloudinary transformations is available <a href=\"https:\/\/cloudinary.com\/blog\/combining-cloudinarys-generative-ai-transformations\">here<\/a>.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Subject-Aware Background Generation<\/h2>\n\n\n\n<p>Cloudinary&#8217;s Background Replace feature is intelligent enough to recognize the foreground subjects and build a new background around them. The powerful LLM and Diffusion models running behind the scenes make this possible.<\/p>\n\n\n\n<p>In this short video made from actual examples, you\u2019ll see how the model detects the watch and builds the surrounding background, even including reflections, when appropriate.<\/p>\n\n\n<cld-video-player\n      cloud-name='siedner'\n      public-id='q_auto\/f_auto:video\/mv3mcxj7frtyrikjtphw'\n      js-config='{\"playbackRates\":[0.5,1,1.5,2]}'\n      style='max-width: ;'\n      class='c-video-player'\n      poster-timestamp='2'\n      core-version='2.12.3'\n      player-version='1.7.0'\n      >\n      <video\n        id='_video-player69d59aa79ffa9'\n        data-cld-big-play-button='init'\n        data-cld-source-types='[\"hls\",\"webm\\\/vp9\",\"mp4\\\/h265\",\"mp4\"]'\n        controls\n        muted\n        class='cld-video-player cld-fluid wp-block-cloudinary-video-player  cld-video-player-skin-dark'\n      ><\/video>\n    <\/cld-video-player>\n\n\n<h2 class=\"wp-block-heading\">Supported Use Cases<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Advanced Editing at Scale<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Integrate a subject into any background that suits your needs without the manual effort or expensive reshoots.<\/li>\n\n\n\n<li>Test multiple versions of Background Replace using the seed parameter; creating variations at scale \u2013 a massive time saver when you need to get creative approval quickly.<\/li>\n\n\n\n<li>Background Replace virtually &#8220;scouts&#8221; locations as part of a pre-production workflow.<\/li>\n<\/ul>\n\n\n\n<p><strong>Example: <\/strong>A fashion retailer can use Generative Background Replace to create different seasonal backgrounds for product photos. A winter collection can be showcased with snowy, festive backgrounds, while the same products can be re-photographed with a summer theme without additional cost of a separate photo shoot. Quick adaptation to marketing campaigns and promotions throughout the year is another bonus.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Reusing Old Assets<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Switch out the backgrounds in existing images to breathe new life into old assets for new campaigns or audiences.<\/li>\n\n\n\n<li>Change the tone of existing assets by creating new backgrounds that match the foreground subject or product.<\/li>\n<\/ul>\n\n\n\n<p><strong>Example:<\/strong> A travel agency with a library of destination photos can update its promotional materials by changing the backgrounds to reflect different times of the year or specific themes. Meaning a beach scene can be transformed into a sunset image or a lively beach party background, making the images fresh and relevant for various marketing campaigns.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using Generative Background Replace<\/h2>\n\n\n\n<p>Replace your image&#8217;s background with an AI-generated one. If no prompt is specified, the background is based on the image&#8217;s contents. Otherwise, it\u2019s generated based on the specified natural language prompt. It also works with images with transparent backgrounds.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using Without a Prompt<\/h3>\n\n\n\n<p>In this example, you\u2019ll see what happens when you transform the image with and without a prompt.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example 1<\/h4>\n\n\n\n<script src=\"https:\/\/unpkg.com\/@cloudfour\/image-compare\/dist\/index.min.js\"><\/script>\n<style>.third {width: 100% !important; margin: auto; margin-top: 20px;}@media(max-width: 300px{.third{width: 50%;}})<\/style>\n<div class=\"third\">\n<image-compare style=\"--exposure: 50%;\">\n      <img decoding=\"async\" slot=\"image-1\" alt=\"2 women\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/pm\/group-2.jpg\">\n      <img decoding=\"async\" slot=\"image-2\" alt=\"2 women floral background\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/pm\/group-2.jpg\">\n<\/image-compare>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Original<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/pm\/group-2.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Transformed<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/pm\/group-2.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Example 2<\/h4>\n\n\n\n<div class=\"third\">\n<image-compare style=\"--exposure: 50%;\">\n      <img decoding=\"async\" slot=\"image-1\" alt=\"headset\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/pm\/object-4.jpg\">\n      <img decoding=\"async\" slot=\"image-2\" alt=\"headset green background\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/pm\/object-4.jpg\">\n<\/image-compare>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Original<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/pm\/object-4.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Transformed<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/pm\/object-4.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Using Prompts<\/h3>\n\n\n\n<p>Let&#8217;s look at the same image, but this time with a custom prompt. Let\u2019s try \u201cfashion show.\u201d<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example 1<\/h4>\n\n\n\n<div class=\"third\">\n<image-compare style=\"--exposure: 50%;\">\n      <img decoding=\"async\" slot=\"image-1\" alt=\"2 women\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/pm\/group-2.jpg\">\n      <img decoding=\"async\" slot=\"image-2\" alt=\"2 women fashion runway background\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace:prompt_fasion%20show\/pm\/group-2.jpg\">\n<\/image-compare>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Original<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/pm\/group-2.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Transformed<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace:prompt_fasion%20show\/pm\/group-2.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Example 2<\/h4>\n\n\n\n<div class=\"third\">\n<image-compare style=\"--exposure: 50%;\">\n      <img decoding=\"async\" slot=\"image-1\" alt=\"headset\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/pm\/object-4.jpg\">\n      <img decoding=\"async\" slot=\"image-2\" alt=\"headset granite background\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace:prompt_granite\/pm\/object-4.jpg\">\n<\/image-compare>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Original<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace:prompt_fasion%20show\/pm\/group-2.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Transformed<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace:prompt_granite\/pm\/object-4.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n<\/div>\n\n\n\n<p>As noted above, for images without transparency, the effect first determines the foreground elements and leaves those areas intact while replacing the background.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using Transparent Images<\/h3>\n\n\n\n<p>Transparent backgrounds aren\u2019t a problem, as the feature will contextualize the generated background based on the subject provided. Let&#8217;s take a look:<\/p>\n\n\n\n<div class=\"third\">\n<image-compare style=\"--exposure: 50%;\">\n      <img decoding=\"async\" slot=\"image-1\" alt=\"furniture blank background\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/pm\/furniture-4.jpg\">\n      <img decoding=\"async\" slot=\"image-2\" alt=\"furniture against wall\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/pm\/furniture-4.jpg\">\n<\/image-compare>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Original<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/pm\/furniture-4.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Transformed<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/pm\/furniture-4.jpg<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Seeding and Variants<\/h3>\n\n\n\n<p>You can also regenerate a background using different seeds if you&#8217;re not satisfied with the result. You can also use seeds to return a previously generated result if any other preceding transformation parameters are the same. See the following examples using the same prompts and original image but with different seed parameter values:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Seed 1 Example<\/h4>\n\n\n\n<div class=\"third\">\n<image-compare style=\"--exposure: 50%;\">\n      <img decoding=\"async\" slot=\"image-1\" alt=\"luxury car by ocean\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/docs\/luxury_car.png\">\n      <img decoding=\"async\" slot=\"image-2\" alt=\"luxury car by mountain\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace:seed_1\/docs\/luxury_car.png\">\n<\/image-compare>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Original<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/docs\/luxury_car.png<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Transformed<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-12\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace:seed_1\/docs\/luxury_car.png<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Seed 2 Example<\/h4>\n\n\n\n<div class=\"third\">\n<image-compare style=\"--exposure: 50%;\">\n      <img decoding=\"async\" slot=\"image-1\" alt=\"luxury car by ocean\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/docs\/luxury_car.png\">\n      <img decoding=\"async\" slot=\"image-2\" alt=\"luxury car by park\" src=\"https:\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace:seed_2\/docs\/luxury_car.png\">\n<\/image-compare>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Original<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-13\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace\/docs\/luxury_car.png<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-13\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center\"><strong>Transformed<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-14\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">https:<span class=\"hljs-comment\">\/\/res.cloudinary.com\/demo\/image\/upload\/e_gen_background_replace:seed_2\/docs\/luxury_car.png<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-14\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Try It Yourself<\/h3>\n\n\n\n<p>Cloudinary&#8217;s <a href=\"https:\/\/cloudinary.com\/demo\/generative-background-replace\">Generative Background Replace<\/a> is available for you try on our AI Playground.<\/p>\n\n\n\n<p>For more detailed information on usage, please see <a href=\"https:\/\/cloudinary.com\/documentation\/transformation_reference#e_gen_background_replace\">the documentation<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Cloudinary&#8217;s Generative Background Replace revolutionizes background editing and customization. Leveraging the power of generative AI technology, users can replace and enhance backgrounds, making their visuals more engaging and professional. Whether for e-commerce, marketing, or creative projects, this feature enables high-quality, scalable image transformations that save time and resources and breathe new life into old images.<\/p>\n\n\n\n<p>Interested in the feature? <a href=\"https:\/\/cloudinary.com\/\">Create an account<\/a> for free and test it out.<\/p>\n\n\n\n<style>\n    .faqs {padding: 30px 60px; margin-top: 40px;background: var(--color-background-offset);border-radius: 20px;}\n    #frequently_asked_questions {margin-bottom: 20px;}\n    .question {margin-bottom: 20px;}\n<\/style>\n\n\n<div class=\"faqs\">\n\n<h2>Notes and Limitations<\/h2>\nUsing generative AI means that results may be less than 100% accurate. There\u2019s a unique transformation count for the Generative Background Replace effect. If you get blurred results when using this feature, the built-in NSFW (not safe for work) check has likely detected something inappropriate. You can contact Support to disable this check if it\u2019s too sensitive. The Generative Background Replace effect is unsupported for animated images, fetched images, or incoming transformations. Initial transformation requests may result in a 423 error response while processing the transformation. You can prepare derived versions in advance using an eager transformation.\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The latest GenAI-powered feature from Cloudinary is here: the Generative Background Replace transformation. Seamlessly replacing or adding backgrounds in images is now faster, far less expensive, and an amazingly scalable way to enhance and customize visuals at scale. It&#8217;s perfect for an application that includes enhancing product listings and online store visuals for e-commerce, website [&hellip;]<\/p>\n","protected":false},"author":87,"featured_media":34970,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_cloudinary_featured_overwrite":false,"footnotes":""},"categories":[1],"tags":[409],"class_list":["post-34964","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-generative-ai"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.6 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Cloudinary Announces Generative Background Replace<\/title>\n<meta name=\"description\" content=\"GenAI-based advanced editing capabilities are making manual editing a thing of the past. Learn more about Cloudinary&#039;s new Background Replace.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change the World: Cutting-Edge, GenAI-Powered Background Replacement\" \/>\n<meta property=\"og:description\" content=\"GenAI-based advanced editing capabilities are making manual editing a thing of the past. Learn more about Cloudinary&#039;s new Background Replace.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement\" \/>\n<meta property=\"og:site_name\" content=\"Cloudinary Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-07T13:05:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog-jpg?_i=AA\" \/>\n\t<meta property=\"og:image:width\" content=\"2000\" \/>\n\t<meta property=\"og:image:height\" content=\"1100\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"melindapham\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"NewsArticle\",\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#article\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement\"},\"author\":{\"name\":\"melindapham\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/0d5ad601e4c3b5be89245dfb14be42d9\"},\"headline\":\"Change the World: Cutting-Edge, GenAI-Powered Background Replacement\",\"datePublished\":\"2024-08-07T13:05:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement\"},\"wordCount\":887,\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog.jpg?_i=AA\",\"keywords\":[\"Generative AI\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2024\",\"copyrightHolder\":{\"@id\":\"https:\/\/cloudinary.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement\",\"url\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement\",\"name\":\"Cloudinary Announces Generative Background Replace\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog.jpg?_i=AA\",\"datePublished\":\"2024-08-07T13:05:46+00:00\",\"description\":\"GenAI-based advanced editing capabilities are making manual editing a thing of the past. Learn more about Cloudinary's new Background Replace.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#primaryimage\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog.jpg?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog.jpg?_i=AA\",\"width\":2000,\"height\":1100},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudinary.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Change the World: Cutting-Edge, GenAI-Powered Background Replacement\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"name\":\"Cloudinary Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudinary.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\",\"name\":\"Cloudinary Blog\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"width\":312,\"height\":60,\"caption\":\"Cloudinary Blog\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/0d5ad601e4c3b5be89245dfb14be42d9\",\"name\":\"melindapham\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e6f989fa97fe94be61596259d8629c3df65aec4c7da5c0000f90d810f313d4f4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e6f989fa97fe94be61596259d8629c3df65aec4c7da5c0000f90d810f313d4f4?s=96&d=mm&r=g\",\"caption\":\"melindapham\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Cloudinary Announces Generative Background Replace","description":"GenAI-based advanced editing capabilities are making manual editing a thing of the past. Learn more about Cloudinary's new Background Replace.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement","og_locale":"en_US","og_type":"article","og_title":"Change the World: Cutting-Edge, GenAI-Powered Background Replacement","og_description":"GenAI-based advanced editing capabilities are making manual editing a thing of the past. Learn more about Cloudinary's new Background Replace.","og_url":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement","og_site_name":"Cloudinary Blog","article_published_time":"2024-08-07T13:05:46+00:00","og_image":[{"width":2000,"height":1100,"url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog-jpg?_i=AA","type":"image\/jpeg"}],"author":"melindapham","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#article","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement"},"author":{"name":"melindapham","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/0d5ad601e4c3b5be89245dfb14be42d9"},"headline":"Change the World: Cutting-Edge, GenAI-Powered Background Replacement","datePublished":"2024-08-07T13:05:46+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement"},"wordCount":887,"publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog.jpg?_i=AA","keywords":["Generative AI"],"inLanguage":"en-US","copyrightYear":"2024","copyrightHolder":{"@id":"https:\/\/cloudinary.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement","url":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement","name":"Cloudinary Announces Generative Background Replace","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#primaryimage"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog.jpg?_i=AA","datePublished":"2024-08-07T13:05:46+00:00","description":"GenAI-based advanced editing capabilities are making manual editing a thing of the past. Learn more about Cloudinary's new Background Replace.","breadcrumb":{"@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#primaryimage","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog.jpg?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog.jpg?_i=AA","width":2000,"height":1100},{"@type":"BreadcrumbList","@id":"https:\/\/cloudinary.com\/blog\/genai-powered-background-replacement#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudinary.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Change the World: Cutting-Edge, GenAI-Powered Background Replacement"}]},{"@type":"WebSite","@id":"https:\/\/cloudinary.com\/blog\/#website","url":"https:\/\/cloudinary.com\/blog\/","name":"Cloudinary Blog","description":"","publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudinary.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudinary.com\/blog\/#organization","name":"Cloudinary Blog","url":"https:\/\/cloudinary.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","width":312,"height":60,"caption":"Cloudinary Blog"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/0d5ad601e4c3b5be89245dfb14be42d9","name":"melindapham","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e6f989fa97fe94be61596259d8629c3df65aec4c7da5c0000f90d810f313d4f4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e6f989fa97fe94be61596259d8629c3df65aec4c7da5c0000f90d810f313d4f4?s=96&d=mm&r=g","caption":"melindapham"}}]}},"jetpack_featured_media_url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1722031615\/e_gen_background_replace-blog\/e_gen_background_replace-blog.jpg?_i=AA","_links":{"self":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/34964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/comments?post=34964"}],"version-history":[{"count":39,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/34964\/revisions"}],"predecessor-version":[{"id":35110,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/34964\/revisions\/35110"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media\/34970"}],"wp:attachment":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media?parent=34964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/categories?post=34964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/tags?post=34964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}