Skip to content

meap158/bing_image_creator_dalle3_batch

Repository files navigation

Bing Image Creator DALL-E 3

Banner

Batch generate images with Bing Image Creator (powered by DALL-E 3) using Seleniumbase.

Open In Colab

Bing Image Creator DALL-E 3 allows you to pull prompts directly from Google Sheets, generate images with DALL-E 3 in Copilot Designer, and save them directly to your Google Drive.


How to Obtain Bing Cookie

To use Bing Image Creator, you need to obtain the necessary cookie value. Follow these steps:

  1. Navigate to Bing Image Creator: https://www.bing.com/images/create.
  2. Log in to your Bing account.
  3. Open the browser's developer tools:
    • Press F12 or right-click on the page and select "Inspect" or "Inspect Element."
  4. In the Developer Tools, go to the "Application" tab.
  5. Under "Cookies," find and select https://www.bing.com.
  6. Look for the _U cookie.
  7. Copy the value of the _U cookie.

image


Okay now I have the _U cookie, where do I put it?

Option 1. For single cookie use:

  1. Just input your _U cookie value into the bing_cookie parameter.

image

Option 2. For multi-cookie use (i.e., multiple accounts):

  1. Create a Secret named bing_cookies_yaml in the Secrets tab (the one with the key icon):

Screenshot 2024-02-18 163003

  1. Input your _U cookie value(s) into the Value column following this syntax (the names on the left side don't matter much as they're just for readability. You could just put the names of your accounts there):
    account1: {_U cookie value}
    
    account2: {_U cookie value}
    
  2. Enable Notebook access to the Secret. After this step, it should look something like this:

secret


How to Use

  1. Fill in the necessary parameters: spreadsheet_id_or_url, worksheet_name_or_index, and range_value, as per your Google Sheets setup. The values from this specified range will be fetched and used as prompts.

image

  1. Press Ctrl + F9 to run all cells.

Results

image