Batch generate images with Bing Image Creator (powered by DALL-E 3) using Seleniumbase.
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.
To use Bing Image Creator, you need to obtain the necessary cookie value. Follow these steps:
- Navigate to Bing Image Creator: https://www.bing.com/images/create.
- Log in to your Bing account.
- Open the browser's developer tools:
- Press
F12
or right-click on the page and select "Inspect" or "Inspect Element."
- Press
- In the Developer Tools, go to the "Application" tab.
- Under "Cookies," find and select
https://www.bing.com
. - Look for the
_U
cookie. - Copy the value of the
_U
cookie.
- Just input your
_U
cookie value into thebing_cookie
parameter.
- Create a Secret named
bing_cookies_yaml
in the Secrets tab (the one with the key icon):
- 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}
- Enable Notebook access to the Secret. After this step, it should look something like this:
- Fill in the necessary parameters:
spreadsheet_id_or_url
,worksheet_name_or_index
, andrange_value
, as per your Google Sheets setup. The values from this specified range will be fetched and used as prompts.
- Press
Ctrl + F9
to run all cells.